Skip to content

Search the documentation

Kit
Firmware

Getting started

MoBot robots and houses run MicroPython on their own board. MicroPython is a small version of the Python language, made for tiny computers. You write a program in the MoBot IDE, the program where you write code, send it to the board over a USB cable, and the board runs it.

This site is for the Python side of MoBot. It is written for children, for the teachers who work with them, and for makers.

Each kit has one main object that your program uses. You do not create it. The robot builds it while it switches on.

Kit The object in your program What it is
Smart Car robot A wheeled robot with a distance sensor, a line sensor, a colour sensor and a compass.
Mini robot A small wheeled robot with two lights, a colour light and a buzzer. It can also use a distance sensor or a line sensor. The IDE and the MoBot website call it the Smart Car Mini.
Smart Home home A house you build. It has sensors, a screen, a number display, a colour lamp, a fan and a door servo, and it is on Wi-Fi.

The Smart Car and the Mini share most of their words. For example, robot.left_motor.forward(50) means the same on both.

The firmware is the software that is already on the robot’s board. This site shows firmware 3.0 first, because it is the current family. A robot that has not been updated may still run firmware 2.x, which uses other names for the same things. Where the code differs, the page shows two tabs, 3.0 and 2.x.

Not sure which one your robot runs? See Firmware versions.

  • A MoBot kit, built, with its battery charged, switched on.
  • A USB cable that carries data. A charge-only cable powers the board but the computer cannot talk to it.
  • For a Mini: its programming module, which is sold separately. On the Mini, the USB link for programming and updating comes from that module. See Programming the Mini.
  • One of these programs to write and send your code:
    • the web IDE at ide.mobot.dz, in Chrome or Edge, with nothing to install;
    • the MoBot IDE for Windows, macOS and Linux, which you install once;
    • MoBot Blocks on an Android phone or tablet. It builds programs from blocks only, so it cannot open a Python project.

No robot yet? The IDE can run your program in a simulator. Look for Run in Simulator in the Device menu.

The IDE has two editors, Blocks and Code, and a way to switch between them. Blocks turn into Python, and the IDE can show you that Python. Hand-written Python goes further. The Smart Car’s compass, for example, has no block. You can only use it from Python.

  1. Connect your robot to the IDE.
  2. Run your first program.
  3. Learn how the robot object is built.
  4. Look up any name in the reference: Smart Car, Mini, Smart Home.
  5. Try the Python examples.

If something goes wrong, start at Troubleshooting.