set the robot on end with it sitting on its tail with the micro:bit logo pointing up. To run the program again, return the
robot to its wheels right side up and smack it again.
Go Further:
You can use the idea of detecting a bump in different ways. Try to write a program that giving
your robot a nudge or tap starts it to drive forward for a bit, then you need to nudge it again a bit.
Troubleshooting
Robot Doesn't Move
- Double check to make sure you have uploaded the new code to your board. Also,
make sure your motor switch is set to the "RUN MOTORS" position.
Moving in Reverse?!
- There are two options if you notice the micro:bot moving in the wrong direction. As
explained above, you can flip the wiring of your motors or use the
set ____ motor invert to ____
block in
your
on start
block to change what is forward vs. reverse.
Experiment 5: Controlling a Servo - Battle Bot
Introduction
Your robot should do something more than just drive around! Maybe control a small robotic arm, a gripper or even
a weapon of some kind. In this experiment you will integrate servo motors with your robot to build a Battle Bot with
Jousting Lances. This experiment combines all the elements you've learned so far in this tutorial.
Parts Needed
You will need the following parts:
1x
micro:bit board
(Not Included with Kit)
1x
Micro-B USB Cable
(Not Included with Kit)
1x
moto:bit Carrier Board
2x
Wheels
1x
Assembled Shadow Chassis
2x
Hobby Gear Motors