Micro Bit
The device is described as half the size of a credit card and has an ARM Cortex-M0 processor, accelerometer and magnetometer sensors, Bluetooth and USB connectivity, a display consisting of 25 LEDs, two programmable buttons, and can be powered by either USB or an external battery pack. The device inputs and outputs are through five-ring connectors that form part of a larger 25-pin edge connector. In October 2020, a physically nearly identical v2 board was released that features a Cortex-M4F microcontroller, with more memory and other new features.
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