mBot Parts
Sensors & What They Do
Motor Movement Commands
Coding Logic
Troubleshooting mBot 1
100

This blue metal frame holds all the mBot’s parts together.

What is the chassis or body frame?

100

This tiny sensor on the mCore detects how bright the light around it is.

What is the light sensor?

100

This command makes both motors stop completely.

What is motor1.run(0) and motor2.run(0)?

100

This command makes the LED actually display the chosen color.

What is led.show()?

100

If mBot doesn’t move, check that these are firmly connected to M1 and M2.

What are the motor cables?

200

This small board is the “brain” of mBot 1 — it controls sensors and motors.

What is the mCore board?

200

This button on the mCore can be pressed to start or trigger a program.

What is the on/off button?

200

If one motor runs at 100 and the other –100, the robot does this.

What is spins or turns in place?

200

A short pause such as delay(50) is used for this reason.

What is to slow down the loop and prevent sensor overload (stabilize readings)?

200

If your mBot won’t connect to your computer, check this connection or module.

What is the USB cable or Bluetooth module?

300

These two components are used to drive the robot and make it move forwards and backwards.

What are the DC motors (left and right motor i.e. motor 1 & 2)?

300

This front sensor sends out sound waves to measure how far away an object is.

What is the ultrasonic sensor?

300

The “Follow Object” code uses these two motor directions to move toward a nearby box.

What are one forward and one backward (turn toward object)?

300

Code sections like if (distance <= 10) are examples of this kind of programming structure.

What is a conditional or if statement?

300

If the ultrasonic sensor gives wrong readings, check that it’s plugged into this type of port.

What is a digital port (like port 3 or 4)?

400

This small black round part makes beeping sounds when programmed.This small board gives the mBot wireless control

What is the buzzer?

400

These two black sensors under the robot are used to follow black lines on a white surface.

What is the line follower sensor?

400

In the “Avoid Obstacles” code, the robot moves backward for 400 ms when this happens.

What is when an object is ≤ 10 cm away?

400

The code uses both positive and negative speed values — negative makes the motors do this.

What is move backward?

400

If the lights or sounds work but motors don’t, this power source might be weak.

What are the batteries?

500

This built-in component glows in different colors and can be used for signaling or decoration.

What are the RGB LEDs?

500

This built-in part on mCore can receive signals from a remote control.

What is the infrared (IR) receiver?

500

In the infrared + ultrasonic code, when both sensors see black (0, 0), mBot performs this maneuver.

What is turning in place or spinning?

500

In the “LED Directional Signal” code, color changes are based on these sensor readings.

What are ultrasonic distance ranges?

500

Before uploading code from mBlock to mBot 1, make sure this is selected correctly.

What is the direct connection and mlink?