Part needed 2 x 9G servo motor 1 x microbit 1 x micro:mate(breakout board) 1 x Pan tilt kit 1 x stuffed toy bear Some scape materials (to be the base & raise the pan tilt kit higher)
Connections Tilt servo ( nod head Yes) Micro:mate
Brown Pin 1 Black
Red Pin 1 Red
Orange Pin 1 Blue
Pan servo (shake head No) Micro:mate
Brown Pin 0 Black
Red Pin 0 Red
Orange Pin 0 Blue
How it works? There are 2 possible answers. Either yes or no. We randomly generate the outcome when a button is pressed. When the answer is yes, the display will show Y & the tilt servo will response. When no, the display will show N and pan servo will response.
Using some scrape materials to raise the pan tilt kit and create the base.
Remove the thread at the bottom and the neck
The head must sit nicely on the tilt bracket
The code When running the program, you will find that when the power is supplied through the usb of the micro:bit, the power is not strong enough to drive the 2 servos. Just connect the power to the vin of the micro:mate instead.
How to make it better? Please feel free to make changes and share your thoughts. I wanted the bear to respond by sound. I tried using the analog sound sensor but I just can’t get it to work. No matter how I shouted at the microphone, the reading did not change. Another possible improvement is to add a button at the base of the feet instead of pressing A button.
This article takes a closer look at each of these devices, comparing them across key areas like Python support, ease of use, Python programming tools, pin design, and hardware projects.
Deciding between Scratch and Python for your child's coding journey? This article compares both languages based on learning background, goals, methods, and difficulty.