How to: Use the mBot default program

View all subject updates

The mBot comes with a default program uploaded so you can start playing with your mBot as soon as it is built. This default program has three modes, which allow you to explore different functionalities.

The three default modes

Mode A – Remote control driving You can use the arrow buttons on the remote to drive the robot forward and backward as well as turn left or right. The number buttons correspond to different sounds the mBot can make using its buzzer. In mode A, the mBot’s LEDs are white.

Mode B – Obstacle avoidance The mBot drives forward on its own until it detects an obstacle, such as a wall. If it detects an obstacle, it turns then continues driving forward. In mode B, the mBot’s LEDs are green.

Mode C – Line following The mBot will drive forward while following a black line. In mode C, the mBot’s LEDs are blue.

Switching between the modes

The mBot starts off in mode A, and there are two ways to switch between the modes:

  1. Select the mode by pressing the A, B, or C button on the remote.
  2. Press the onboard button on the mBot (located at the front end of the mCore).

Did you know?

You can always return the mBot to the default program, even after you have uploaded other programs.

Returning mBot to the default program

You can always return the mBot to the default program, even after you have uploaded other programs. This may be helpful if you want to use the mBot with a new group of students or if you want to test that the mBot is working.

  1. Connect the mBot to the computer using the USB cable and turn on power to the mBot.
  2. Open mBlock and connect to the mBot. Click the Connect menu -> Serial Port and select the last port.
  3. Next, click the Connect menu -> Reset Default Program. The default program will upload to the mBot.
  4. When the upload is finished, you can disconnect the mBot and use the modes of the default program.
activity age bookmark-fill icon bookmark boy-girl calendar chevron-down icon close icon compass cross icon download encounter-live facebook gallery icon instagram icon Instagram icon linkedin links icon location mail icon map next play previous professional-development right-arrow icon search share single image social-media speaker spinner icon students subject-update teacher-resources tick icon time twitter user video-lesson video youtube