The tool’s interface below is still in French. The interface is being translated by Google Translate.
mBot: precise distances and angles
The mBot has no encoders: it drives “for a time.” Two measurements are enough to convert centimeters and degrees into seconds.
Étalonnage du robot
Pour étalonner : posez le robot sur le sol où il roulera, batteries chargées, et lancez « avancer à la puissance 50 % pendant 2 secondes », puis « tourner à droite pendant 1 seconde ». Mesurez, reportez ici. Refaites la mesure si vous changez de sol ou de piles.
Trajectoire et programme
How to use the mBot path calculator
Calibrate your mBot’s speed in two measurements, describe a route and get the exact durations, the mBlock script and the Arduino code.
-
Calibrate
Distance in 2 s, angle in 1 s.
-
Write the route
forward 30, right 90…
-
Get the program
Blocks, code and a path preview.
About the mBot path calculator
The mBot has no encoders on its wheels: it does not know how far it has gone. Centimeters and degrees are therefore converted into durations, based on its measured speed.
The preview draws the path and shows whether the shape closes; four sample routes are provided.
Frequently asked questions about the mBot path calculator
Why doesn’t my square close?
Speed depends on the floor and on the battery charge: redo the calibration under real conditions.
Do I need a robot to use the tool?
No. It exists precisely to prepare or test a program before loading it onto the mBot.
Are the blocks identical to those in mBlock?
Labels may differ slightly depending on the mBlock version; the logic and the Arduino code stay the same.