Turn LEGO Wheel Rotations Into a Travel Distance
Published
If a LEGO robot must travel to a marked line, start with how far its wheel moves in one rotation. A time command depends on how fast the motor turns during that interval. A rotation target gives you a geometric starting point that you can compare with the robot's actual travel.
LEGO Education's Going the Distance lesson uses this approach and encourages rotations or degrees rather than seconds when calculating a driving distance. It is still a starting estimate, not a promise that tires will roll without slipping on every surface.
Calculate the wheel's circumference
For a circular wheel, circumference is π multiplied by diameter. Use the tire's outside diameter, since the tire meets the surface, rather than the smaller wheel hub.
LEGO's lesson uses a wheel with a 5.6-centimetre diameter. Its circumference is about 17.6 centimetres, so one complete wheel rotation corresponds to approximately that much travel if the wheel rolls without slipping.
| Wheel rotations | Calculated travel with that wheel |
|---|---|
| 1 | About 17.6 cm |
| 2 | About 35.2 cm |
| 5 | About 88 cm |
Those figures belong to that diameter. Switching to a different tire changes the distance per wheel rotation even if the rest of the robot stays the same.
Work backward from the target
Divide the desired travel by the circumference. For a 50-centimetre target and the 17.6-centimetre estimate, the calculation is 50 ÷ 17.6, or about 2.84 wheel rotations.
If your control uses degrees, multiply by 360: 2.84 rotations is about 1,023 degrees when calculated from the unrounded division. Keep a little precision during the calculation and round the final command sensibly. Treat those figures as a first command to check on your model.
Check whether the command measures the motor or the wheel
A motor rotation isn't always a wheel rotation. With a direct drive, they may match. With gears between them, follow the transmission before entering the command.
For example, if the motor must turn three times for the wheel to turn once, the 2.84-wheel-rotation target requires about 8.52 motor rotations. That is a hypothetical three-to-one reduction used to show the conversion. Check the arrangement in your own robot rather than borrowing the number.
Apply the same care to an encoder display: identify which axle its reading describes. A correct circumference calculation can still produce the wrong command when it is applied to the wrong rotating part.
Compare calculation with travel
Mark a consistent starting point on the robot and measure from that same point after the run. Use a flat, clear surface and repeat the run from the same position. That makes the difference easier to interpret than measuring once from the front bumper and next from the rear.
If the result differs, recheck the diameter and drive relationship before changing the command. Then observe whether the tires slip or the robot changes direction. Changing speed, surface and wheel type together makes it harder to identify what altered the result.
LEGO Education's Going the Distance provides the 5.6-centimetre example, while Driving Around connects circumference with driving-base motion. Use the calculation to choose your first target, then keep the conditions consistent while checking how your particular model travels.