---
# System prepended metadata

title: Troubleshooting
tags: [' troubleshooting', robot]

---

---
tags: robot, troubleshooting
---
# Troubleshooting


<table>
<tr>
<td><b>If your robot won’t move...</b></td>
<td><b>Make sure you have power!</b> 

You should see a red blinking light on the moto:bit where it says “STAT” (status). If not, then...<ol>
<li> Check the STOP/RUN MOTORS switch -- should be set to RUN.</li>
<li> Make sure the barrel jack is completely plugged in.</li>
<li> Make sure your batteries are all oriented the right direction.</li>
<li> Try new batteries. (See information on Changing Batteries below).</li>
</ol>
<b>If you have power...</b>

Make sure your motors are hooked up correctly in the motor ports.
</td></tr>
<tr>
<td><b>The Moto:bit tools don’t show up in MakeCode...</b></td>
<td>Try installing them again from the add package option in MakeCode.</td></tr>
<tr>
<td><b>You don’t see the Micro:Bit on your computer when you go to transfer your code...</b></td>
<td><ol>
<li> Make sure that USB cable is inserted all the way into your micro:bit.</li>
<li> Try unplugging the USB cable and plugging it back in.</li>
</ol></td></tr>
<tr>
<td><b>Your robot is spinning in a circle or running in reverse...</b></td>
<td>Follow the steps under Diagnosing Motor Issues. -->> can we link this to the right section?</td> </tr>
<tr>
<td><b>Your robot isn’t driving in a straight line…</b></td>
<td>Look at the lines in the code where you tell each motor what to do: 

<b><code>move &lowbar;&lowbar;&lowbar;&lowbar;&lowbar; motor &lowbar;&lowbar;&lowbar;&lowbar;&lowbar; at&lowbar;&lowbar; %</code></b> 
This command tells the robot which motor to move (<code>RIGHT</code> or <code>LEFT</code>), which direction to move it (<code>FORWARD</code> or <code>REVERSE</code>), and at which throttle / power percentage to spin it (<code>0</code>-<code>100</code>).
<p>
</P>
</p>
<p>
By adjusting the throttle / power percentage of the two motors relative to each other  you can make one “stronger” than the other. So, for instance, if your robot lists to the left you can turn your right motor “down” to 90% power and leave your left motor at 100%. Play with the amounts to see how much correction your motors need.
</p>
</td></tr>
</table>

### Changing Batteries

When you find that you need to replace the batteries in the micro:bot, first unplug the battery pack from the moto:bit.

-> [![alt text](https://cdn.sparkfun.com/r/600-600/assets/learn_tutorials/1/2/0/4/image19.png)](https://cdn.sparkfun.com/assets/learn_tutorials/1/2/0/4/image19.png) <-

Turn the micro:bot over and push on the Battery Holder through the hole in the Bottom Chassis. This will cause the Battery Pack Clip to unsnap from the Bottom Chassis.

-> [![alt text](https://cdn.sparkfun.com/assets/learn_tutorials/1/2/0/4/image45.png)](https://cdn.sparkfun.com/assets/learn_tutorials/1/2/0/4/image45.png) <-

Slide the Battery Pack and Clip out from the back of the micro:bot.

-> [![alt text](https://cdn.sparkfun.com/assets/learn_tutorials/1/2/0/4/image39.jpg)](https://cdn.sparkfun.com/assets/learn_tutorials/1/2/0/4/image39.jpg) <-

Change the batteries, then follow the steps in the “Attach Battery Pack” section above to put the Battery Pack back in the micro:bot.



