What are we going to do?
In this activity we are going to continue working on our our Humbot mi:sumo.
At the end of this activity, we'll be able to control our Humbot mi:sumo with a smartphone or tablet using Bluetooth communication.
Materials
Humbot mi:sumo
You'll need your Humbot mi:sumo from last activity.
micro:bit board
The micro:bit was designed to be classroom-friendly from day one. More approachable than just coding, it's a great way to achieve fun, practical results with motivated students. Buy from here starter kit (recommended) or board only.
micro USB cable
If your micro:bit board didn't came with a USB cable, any microUSB cable should do the trick
Computer
The code editor is web based, so any computer with a web browser (and Internet connectivity) will do
Instructions
1 Code
In this case, I give you the code. You just have to download it and send it to your micro:bit board. In any case, if you want to see the code or modify it, you can import it from your editor.
2 Upload to the board
Now, connect your micro:bit board to your computer using the micro USB cable. Your computer should now detect your micro:bit just as if it was an external drive. Search the HEX file you just downloaded and drag and drop them on your micro:bit drive. On windows you can right button on the HEX file and click send to MICROBIT.
3 Install app
If you still don't have it, you'll need Kitronik Move app
4 Pair
In order for the app to work with your micro:bit, you'll need to pair your device everytime you upload a new program or code.
Follow this video
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
What else?
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 mi:sumo?
When you finish the workshop, please take a minute to answer this survey (Catalan version). It will help me improve the course, thanks!