Skip to content

Search the documentation

Kit
Firmware

Firmware versions

The firmware is the software that is already on the robot’s board. It is what understands your Python program. There are two families of firmware: 2.x and 3.0. The current version is 3.0.2.

Version Day it was committed Family
3.0.2 30 November 2026 3.0
3.0.1 28 November 2026 3.0
3.0.0 27 November 2026 3.0
2.1.0 24 November 2026 2.x
2.0.0 30 September 2026 2.x

Firmware 3.0 is the current family. A robot that has not been updated may still run 2.x. When the IDE has not seen your robot, it writes code for 3.0. What changed in each version is in the changelog. To put new firmware on a robot, see Flashing firmware.

Firmware 3.0.0 gave the Python names in a program new names, and it kept none of the old ones. A program written for one family does not run on the other. A 3.0 robot does not know the 2.x names. A 2.x robot does not know the 3.0 names.

  • The robots are called robot. On 2.x they were mobotROBOTICS (Smart Car) and mobotMINI (Mini).
  • The Smart Home is called home. On 2.x it was mobotIOT.
  • Names are in snake_case, which means small letters with an underscore between the words, such as set_speed. On 2.x, many were camelCase, which means a capital letter starts each new word, such as setDirectionAndSpeed.
  • Parts are named by what they do, not by the chip. A line sensor is line_sensor, not irs.
  • One idea has one name on every kit. On 2.x the Smart Car’s forward was direction 1 and the Mini’s forward was direction 0. On 3.0 both are forward().
  • Colours are 0 to 255 on every kit. The Smart Home used percent.
  • play_song() plays once. On 2.x play() repeated by default.
  • Volume is in percent.
  • map_range comes from mobot: from mobot import map_range. On 2.x it was ble.map_range.

Here are some changes side by side.

What you do Firmware 2.x Firmware 3.0
Smart Car: a wheel forward at 60 mobotROBOTICS.left_motor.setDirectionAndSpeed(1, 60) robot.left_motor.forward(60)
Mini: a wheel forward at 60 mobotMINI.left_motor.set_direction_and_speed(0, 60) robot.left_motor.forward(60)
Read the line sensor mobotROBOTICS.irs.readAllIRs() robot.line_sensor.read()
Read the distance mobotROBOTICS.ultrasonic.get_distance_cm() robot.distance_sensor.distance_cm()
Switch on the servos mobotROBOTICS.init_servo() robot.enable_servos()
A Game Pad button mobotROBOTICS.ble.isPressed['a'] robot.gamepad.is_pressed("a")
Play a song mobotROBOTICS.buzzer.play(SONGS['demo']) robot.buzzer.play_song(SONGS['demo'], loop=True)
Convert a range mobotROBOTICS.ble.map_range(x, -128, 127, 0, 100) map_range(x, -128, 127, 0, 100)
Smart Home: write on the screen mobotIOT.oled.display_text(...) home.display.show_text(...)
Smart Home: temperature mobotIOT.dht11.read(0) home.temperature_sensor.temperature()
Smart Home: a colour mobotIOT.rgb_led.write(100, 50, 0) home.rgb_led.set_color(255, 128, 0)

The play_song line has loop=True because the 2.x play repeated the song. Leave it out and the song plays once.

Every old name and its new name is on From 2.x to 3.0 names. The names that 3.0 removed, with what to write instead, are there too.

  • Blocks. The IDE writes the code for the robot’s firmware. A .mobot project made before 3.0 is changed when you open it for a 3.0 robot. The IDE tells you once: “This project was made for firmware 2.x. Its blocks now write code for firmware 3.0.” Function blocks that you created yourself are your own code and are not changed.
  • Python. The IDE cannot safely rewrite your Python, but it can offer to. If it sees names of the other firmware, a bar says, for example, “This code uses firmware 2.x names (…). The robot runs firmware 3.0.” Press Show the new names. The IDE lists what it will change and says which lines you must change yourself. Nothing else in your code is touched.
  • Examples. Each Python example is written twice, once for each family. When you open one, the IDE picks the version for the robot you connected.
  • Errors. If your program uses a name the robot does not know, the robot prints MicroPython’s error, and the IDE adds a tip. For example: Tip: On firmware 3.0, mobotROBOTICS is called robot.

Any one of these tells you.

  1. The IDE’s Blocks editor. It shows one line about the firmware. With a robot connected, it reads, for example, “Code for firmware 3.0: the connected robot runs 3.0.2.” With no robot connected, it says which firmware it is writing code for and “Connect the robot to check.”
  2. The MoBot app. Open the robot’s Device screen and look at the Firmware row. A Smart Car or a Mini on firmware 2.0.0 always shows 1.0.0 there. From 2.1.0 on, the robot shows its real version.
  3. The names. A 3.0 robot has robot or home. A 2.x robot has mobotROBOTICS, mobotMINI or mobotIOT. The IDE reads the firmware this way when you press Run or save a program.

Besides the names, one more thing differs between the 2.x versions. On 2.0.0, every mode change restarts the robot, and a computer cannot stop the robot while it is in one of the app’s modes. On 2.1.0 and later, the robot normally changes mode without a restart, and the computer can stop it in any mode. See Modes and programs.