Connecting to sources…

How to build Makeblock mBot2 (formerly mBot Neo)

7 steps to build Makeblock mBot2 (formerly mBot Neo), with the source documents.

Single robot $149.99, 3 robots $449.99, 6-robot classroom kit $1,199.99 (Makeblock US store, 2026‑10‑31; the page offers free shipping to the contiguous US and says nothing about tax). CyberPi's hardware is open but no BOM cost is given

Software

  • Install the ESP32 board package

    Search for and install esp32 in the Arduino IDE's Boards Manager.

  • Copy the platform configuration file

    Copy "lib/cyberpi/platform.local.txt" to Arduino IDE's resources folder "/packages/esp32/hardware/esp32/1.0.4/".

  • Copy the CyberPi library

    Copy "lib/cyberpi" to "Documents/Arduino/libraries".

  • Use the complete PlatformIO project

    The git repo is a full project with pio.

  • Copy the library to the PlatformIO project

    Copy "lib/cyberpi" to your pio project.

  • Set the CyberPi upload port

    Modify "upload_port" in the file "platform.ini" to the connected cyberpi board.

  • Use the CyberPi example program

    The example includes "cyberpi.h", creates a CyberPi object, calls cyber.begin() in setup(), and uses cyber.set_rgb() in the loop to set RGB values.

Common problems

  • Arduino IDE ESP32 setup lacks dependencies, preventing examples from compiling #1 #2
  • Incorrect I2C address or pin configuration causes devices to reboot repeatedly #3 #5

Parts

  • CyberPi: ESP32‑WROVER‑B (dual-core Xtensa LX6 at 240 MHz), 8 MB flash + 8 MB PSRAM, Wi‑Fi and dual-mode Bluetooth, 84×35×13 mm, 36 g
  • mBot2 Shield: GD32F403 with a built-in 3.7V 2500 mAh Li-ion battery, 2 encoder-motor, 2 DC-motor, 2 servo and 2 multi-function ports
  • 180 optical encoder motors: 1–200 RPM, 1,500 g·cm torque, ≤5° angle accuracy, metal output shaft, 39.6 reduction
  • Ultrasonic Sensor 2 and Quad RGB sensor
  • Aluminium chassis, mini wheel, slick tyres and hubs, USB cable, screwdriver, line-following map and screw pack; top speed 20 cm/s
  • 2.5–5 hours of runtime, 1–2 hours to charge (operation guide); options include the AI Camera 2.0, Bluetooth controller, Rover and Smart World add-on packs

Tools

  • Screwdriver and USB cable included
  • Coding needs a computer, Chromebook or tablet; versions shipped with a wireless adapter connect to mBlock 5 without a cable, and the 6-robot classroom kit includes 6 Bluetooth dongles

Skills

  • mBlock 5 block coding (Live and Upload modes)
  • MicroPython / Python with the cyberpi library
  • Arduino C/C++ (CyberPi Arduino SDK)
  • mBlock machine learning: image, audio and pose recognition

Software

  • mBlock 5: PC client, web version (ide.makeblock.com) and mobile app
  • mBlock‑Python editor (python.makeblock.com)
  • Makeblock app for remote control and the Extension Builder (ext.mblock.cc)
  • CyberPi-Library-for-Arduino (GPL‑3.0, no commits since 2024‑04)

Documents