Wheels, Encoders and Precise Motion
Measure how far Alvik really travels, discover why the wheels never turn exactly as commanded, and calibrate the robot so its motion becomes repeatable.
What students learn
Students learn how a DC motor with an encoder closes the loop between commanded and actual motion. They convert wheel rotations into distance using circumference, measure real error, and calibrate a correction factor.
The science behind this experiment
- Alvik uses two 6 V DC gear motors with quadrature encoders, rated at up to 96 rpm, driving 34 mm rubber wheels.
- One wheel rotation moves the robot forward by its circumference: C = π × d = π × 3.4 cm ≈ 10.7 cm.
- Closed-loop control compares the encoder count with the target and stops when they match; open-loop control just runs the motors for a set time and hopes.
- Battery voltage falls as it discharges, so the same open-loop command produces less distance later in a lesson — closed loop is immune to this.
- Wheel slip means the encoder can report a rotation that did not move the robot, so even closed-loop odometry drifts on slippery surfaces.
Key relation: C = π × d = π × 3.4 cm ≈ 10.68 cm per wheel rotation. Rotations for distance s: n = s ÷ C. Correction factor k = commanded ÷ measured.
Equipment used
- Arduino® Alvik robot
- Metre rule or 2 m tape measure
- Masking tape for the start line
- Stopwatch (or phone timer)
- Calculator
- A carpet tile or cloth for the second surface
Questions for students
- Odometry drifts, but it is cheap and always available. What would you add to Alvik to correct that drift, and what would it cost in money, power or complexity?
- A car odometer counts wheel rotations. If you fitted larger tyres, would the reading be too high or too low, and by roughly what percentage for a 5% larger diameter?
What to expect
The closed-loop move(50) lands within roughly 1–3 cm of target and repeats well. The open-loop timed run drifts much more between repetitions, especially as the battery discharges. Encoders turn a motor command into measurable motion, and closed-loop control keeps that motion consistent when the battery, the floor or the load changes. Calibration removes the systematic part of the error; wheel slip and mechanical scatter leave the rest, which is why real robots eventually need sensors that look at the world.
Run this experiment in your classroom
This experiment is part of ATP Volta — a self-contained mobile science lab that turns an ordinary classroom into a working STEM laboratory, with over 200 experiments in physics, chemistry, biology, robotics and engineering. Gali, the AI tutor built into ATP Connect, guides students through each step and answers their questions at the bench.
See the ATP Volta mobile science labTalk to our team