Add the extension and plug in
mBlock needs the MBC Pro Sensors extension v2 first; then a "Controller" category appears in the block palette. Every block has a port menu: pick the number the sensor is really plugged into, and the extension uses the right pins for your board.
- Open mBlock 5 for PC, add mBot under "Devices" at the bottom left, and switch the mode toggle at the bottom right to Upload.
- Add the extension: once it is listed, search "MBC" in the "Extension Center" and add it. Before it is listed (under review), advanced users can sign in to ext.mblock.cc with their own Makeblock account → My extensions → Import data, upload
mbc_pro_sensors_2.0.0_import.mext(about 1 minute), click "Download" to get a.mext, and drag it into the mBlock window. - Six new categories appear: Pathfinder, Ranger, Controller, IMU gyro, Vision and MBC common.
- Controller → mBot adapter → mBot port 4; pick port 4 on the blocks too.
| Board | Usable ports | Notes |
|---|---|---|
| mBot (mCore) | 1, 2, 3, 4 | all four ports |
| mBot Ranger (Auriga) | 6 ~ 10 | 1 ~ 4 are red motor ports, 5 is the serial port |
| Orion | 3, 4, 6 | 1, 2 are red motor ports; 7, 8 are analog only |
| Ultimate 2.0 (MegaPi) | 6, 7, 8 | needs the RJ25 adapter board; 5 is the serial port |
| MegaPi Pro | 7, 8, 9, 10 | needs the RJ25 adapter board |
The simulator here covers the mBot only (ports 1 ~ 4). For another board, swap "when mBot starts up" for that board's start block and use one of its usable ports. mBot2 (CyberPi) has no RJ25 port and is not supported.