For this project, we will need the following tools carrot BBC micro bit with battery tablet or laptop to alligator cables, a USB cable, and a knife or saw. If everything is in place the project can begin. If you have all the materials for the project, we can start programming. Turn on your laptop and go online to makecode.microbit.org. Click New Project then give the project a name. I named it carrot cutting, then click the Create button. The first step is to draw the happy face as your default face. Then we write the program itself.
Meanwhile, I will tell you that when you cut the carrot, the display will make a sad face. As you can see, it can be easily solved and the sound can also be easily programmed, which the beat releases during cutting
When the program is ready, save it to the Downloads folder. Then connect it to the computer with a USB cable and load the file in the downloads folder to the micro bit.
When we are done coding, connect one alligator cable to port one and the other alligator cable to the GND port then connect one alligator cable to the knife and the other to the carrot
Finally, connect the battery to the micro bit, all that remains is to try and laugh. Have fun