Dancing MicroBit Robot
by igorboccafoli in Circuits > Microcontrollers
1631 Views, 5 Favorites, 0 Comments
Dancing MicroBit Robot
There are many instructions for creating robots with controllers such as Raspberry or similar.
This version is controlled by a Micro: bit which I think is very powerful, like many others, but much easier to program for children.
Supplies
- Servo SG90 (11)
- PCA9685 (1)
- Battery holder 4 X AAA (1)
- LED (2)
- Microswitch (1) or similar
- Micro Bit Breakout - with pin 19 and 20 (1)
- DCDC Converter 3,3V (NOT 3V BUT 3,3V)
- hot glue
my passion is electronics and programming, assembling, building ... you have to use your energy for fun things, for this reason the drawing of the robot parts was taken from: Drawing of the robot
Print the Parts
Print and clean the parts from any burrs or supporting structures.
Fix Servo
Fix the SG90, it is necessary to find the end position. For example, the right arm will be fixed with a limit switch at 0 degrees, while the left arm at 180, being inverted with each other.
The same thing goes for the legs.
Better not to tighten the screw until the correct position is found. Use glue to secure (or small screws).
fix the battery holder and the PCA9685 module on the back with a few screws.
in the second image you can see where I inserted the microswitch
This is the wiring diagram and the links are as follows:
PCA9685 PORT 0 = HEAD
PCA9685 PORT1 = LEFT SHOULDER
PCA9685 PORT2 = LEFT ELBOW
PCA9685 PORT3 = HIP - LEFT
PCA9685 PORT4 = LEFT KNEE
PCA9685 PORT5 = LEFT FOOT
PCA9685 PORT6 = RIGHT SHOULDER
PCA9685 PORT7 = RIGHT ELBOW
PCA9685 PORT8 = RIGHT HIP
PCA9685 PORT9 = RIGHT KNEE
PCA9685 PORT10 = RIGHT FOOT
Now you can make the connections inside the robot, connect the speaker and the LED eyes.
The edge connector is fixed with hot glue, insert two screws into the connector and fasten them to the sides.
finally the HEX code, you can open the editor directly from the following link.
https://makecode.microbit.org/_1aUCbeWT9ipK
I hope I have not forgotten anything. Have fun !