What are we going to do?
We are finally going to start assembling the great Humbot mi:sumo robot. It uses two DC motors and a motor driver and it's controlled by the micro:bit board.
We'll provide 3d printed parts at the workshop but you can always print them if you have a 3D printer at home. You'll find the stl files for printing it on this link and also on the list of materials.
In this activity you'll need two micro:bit boards, one for the robot itself and another one will be used as a remote controller. So in this particular activity you'll need to find a partner and work in pairs.
As all this process is going to take longer than our usual activities, we're going to work for more than one session. Follow these steps in this particular order:
- First assemble the robot
- Then connect all components
- Finally, download and send the code to the boards (one on the robot and one as a remote controller)
Now it's your turn!
Now that you have tried the robot, you may have noticed that it doesn't turn right and left equally. That could be caused by the motors. If you have this problem, don't worry, you can fix it by changing the values that make each motor move. If you don't have this kind of problem, it's also interesting that you follow this instructions because you can change the speed at which your robot is moving. Either way, here you have the instructions:
- Open the robot code from your editor and take a look at the red blocks.
- Where it says analog write, followed by a pin number and a bigger number. That last bigger number is the one that we should change to make it go faster or slower.
- This number can be adjusted from 0 to 1023 (slower to faster).
- Make some changes and find the best speed to make it manageable
Now that we control the Humbot mi:sumo, are you ready for a battle?
You can draw a circle (with tape) on the floor and you can make some battles between robots. Who will be the master Humbot?