Robot Isn't Moving
- Pesky motor switch! Make sure that is set to "run" and you have fresh batteries.
Robot Not Driving Forward
- If your motors are hooked up correctly and we have inverted both motors in
the code, try hitting the reset button on the micro:bit. This can happen after uploading when initially
powering the micro:bit up.
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.
Robot Waddles a Lot!
- Change the width of your line.
Robot Doesn't Detect Line
- If changing the width of your line doesn't help, remember line sensor
calibration settings can be very sensitive depending on your environment. Also, the code calibrates when
the micro:bot starts up. Make sure to have the sensors over a black line.
Experiment 4: Using the Accelerometer
Introduction
Now, what happens when something bumps into your robot? It just stays there and take it from this bully? No! It
should move out of the way, or do something. In this experiment you will use the accelerometer on the micro:bit to
trigger the robot to move out of the way. If you flip the robot on its back or stand it on end it will stop driving (play
dead)!
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
1x
4xAA Battery Holder
4x
AA Batteries
(Not Included with Kit)
Didn’t get the kit? Have no fear! Here are the parts you will need to complete this experiment. You may not need
everything though depending on what you have. Add it to your cart, read through the guide, and adjust the cart as
necessary.