Introduction: Dancing MicroBit Robot

About: I am a full stack developer and project manager. Coding/robotics teacher for primary school children (3rd-5th grade). On this channel I will try to publish all the works done with my students and beyond.

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

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

Step 1: Print the Parts

Print and clean the parts from any burrs or supporting structures.

Step 2: 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).

Step 3:

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

Step 4:

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

Step 5:

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.

Step 6:

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 !