This guide explains how the robot can be connected to the computer for programming. We recommend method 1, which uses a MakeBlock dongle to connect wirelessly to the robot. However, we also list other methods for completeness. Moreover, the Color Vision Lesson plan will connect to the robot using the USB cable.
This guide assumes that you have installed mBlock or have access to it in a browser. If not, please refer to this guide. This guide also assumes that you have added the mBot to the mBlock software.
The mBlock software allows you to connect to the robot in four ways. Below, we provide an overview of the different connection methods and modes before detailing how to use them. Images of the various pieces of hardware mentioned are provided below.
<aside> ⚠️ Connection method 1 is the preferred method for working with the robot.
</aside>
A MakebBlock Bluetooth dongle.
The USB cable for connecting to the robot.
A 2.4 GHz module (black) and dongle (white)
A Bluetooth module
<aside> ❗ This method uses the mBlock Bluetooth dongle. This method is not the same as method 4, listed below. Method 1 is the preferred method for working with the robot.
</aside>
Here, we provide instructions for connecting to the robot using the MakeBlock Bluetooth dongle (see figure below). By default, this dongle is not included with the robot and has to be purchased separately.
Using these dongles requires the robot to be equipped with a Bluetooth module (left image below) in the slot provided on the control board (right image below). Recent versions of the robot are sold with the Bluetooth module in place. However, when in doubt, please check whether you can see the Bluetooth module.
The Bluetooth module needs to be installed on the robot.
This image shows the robot controller without the top plastic cover. The location for the Bluetooth module is indicated. Note that this slot might be occupied by a 2.4 Ghz module. If so, remove this module and install the Bluetooth module.
Robot with the Bluetooth module in place. See arrow.
You might want to reset the firmware before connecting to the robot using the makeblock dongle. You only need to do this once to ensure the robot is not operating in Upload
mode but in Live
mode. Instructions on how to reset the robot to Live
mode are listed here: Resetting the Robot to Live
mode. Information about the difference between Live
and Upload
mode is also provided there.