Skip to content
If this is your first visit, please click here to learn about shipping and delivery.
If this is your first visit, please touch here to learn about shipping and delivery.
Robotics wheel with matching 12 V gearmotor and mounting hardware

Calibrating Robot Wheel Travel: Rolling Distance, Slip and Straight-Line Error

A robot instructed to travel one metre rarely becomes accurate simply because its software contains the wheel diameter printed on a listing. Tyre compression, assembly differences, wheel slip and the way rotation is measured all affect the result. A useful calibration connects wheel movement to measured travel under the conditions the robot will actually encounter.

The PMD Way 12 V gearmotor and wheel kit includes one wheel, motor and mounting hardware per pack, with selectable output-speed options. Its listing does not establish that an encoder is included. Plan separately how rotation will be observed or measured; a motor's catalogue RPM is not a distance sensor.

Start with the geometry and units

For an ideal wheel rolling without slip, one revolution covers its circumference: distance = π × diameter. A hypothetical 65 mm wheel would cover approximately 204 mm per revolution. Ten revolutions would therefore correspond to about 2.04 m. These dimensions are illustrative, not specifications for the pictured kit.

If wheel speed is measured in revolutions per minute, ideal linear speed is π × diameter × RPM ÷ 60. Use metres for diameter to obtain metres per second. This equation describes the rolling relationship; it does not guarantee that a loaded motor reaches its advertised speed.

Keep motor-shaft and wheel-shaft rotation distinct. An encoder fitted before a gearbox may report many motor turns for one wheel turn. Gear ratio and the software's counting convention must both be included in the conversion.

Inspect the hardware before adjusting software

Check that the wheel is seated properly, retained securely and not rubbing against a bracket. Rotate it slowly and look for wobble, tyre distortion or a hub moving independently of the shaft. Confirm that left and right wheels have the intended matching dimensions and tread.

Check the supporting caster or skid as well. A reluctant caster can steer a light robot during the beginning of a run. Uneven weight distribution can alter traction and tyre compression. Make these mechanical conditions consistent before collecting calibration data.

Do not force a gearbox backwards if it is not designed for back-driving. For rolling tests, use a freely rotating wheel arrangement where appropriate or drive the assembled robot slowly under controlled power.

Measure effective rolling distance

Mark a visible point on the wheel and a starting line on a flat test surface. Measure travel over several complete rotations rather than trying to judge a tiny fraction of one turn. Include the robot's normal battery and payload, and use the same surface intended for operation.

For example, suppose five measured wheel revolutions correspond to 1.005 m of travel. The effective rolling circumference for that test is 1.005 ÷ 5 = 0.201 m, corresponding to an effective diameter of about 64.0 mm. This is an original worked example, not a measurement of a store product.

Repeat the test. If results vary substantially, investigate slip, inaccurate revolution counting, starting alignment or changing load before averaging them into a calibration constant. A precise average of an unstable process can give false confidence.

Verify encoder conversion independently

If the robot has encoders, establish the counts actually reported for one complete wheel revolution. Encoder specifications may distinguish pulses, edges, channels and counts after quadrature decoding. Verify the convention used by the controller rather than multiplying by four automatically.

At low speed, compare observed wheel turns with logged count changes. Check direction signs on both sides and verify that a forward movement produces the intended positive distance. A reversed sign can look like an odometry algorithm fault even when the mathematics is correct.

After the count conversion is established, compare encoder-derived distance with an external measurement. Change the conversion factor only when the error is repeatable and consistent with a scale error. Keep the previous value and the evidence for the new one.

Separate distance error from steering error

A robot that travels straight but stops too early has a different problem from one that finishes the correct distance away along a curved path. Record both travel and heading. Use a reference point on the chassis rather than alternating between the front bumper and wheel axle.

Interpreting simple calibration runs
Repeatable result Possible area to investigate
Straight path, proportional distance error Wheel-distance conversion or effective circumference.
Consistent curve during equal wheel rotation Left-right rolling mismatch or mechanical alignment.
Variable error under hard acceleration Traction, load transfer or control behaviour.
Straight runs improve but turns remain wrong Wheel separation and turning model.

The ROS differential-drive controller documentation treats wheel radius, wheel separation and left-right radius correction as separate parameters. The same distinction is useful in a simple Arduino robot even if it does not use ROS. Avoid using one arbitrary steering trim to conceal several unrelated errors.

Calibrate turning after straight travel

For an ideal two-wheel differential drive, heading change in radians is the difference between right and left wheel travel divided by wheel separation. This assumes the relevant rolling model and consistent sign conventions. The ROS controller implementation provides a primary software reference for the corresponding wheel-speed relationships.

Measure wheel separation between the appropriate rolling centre lines, then compare slow turns with an external angle reference. Test both clockwise and anticlockwise directions. A skid-steer chassis or deformable tyres may require an effective turning parameter that differs from a simple ruler measurement, and that parameter can change with surface conditions.

Do not tune turning geometry while the basic wheel-distance conversion remains uncertain. Otherwise one adjustment may compensate for another error and fail when the manoeuvre changes.

Understand what wheel measurements cannot tell you

Encoders report rotation, not guaranteed movement over the floor. A spinning wheel can accumulate counts without corresponding chassis travel. A robot lifted briefly or pushed sideways can also leave its wheel-based estimate wrong.

The WPILib differential-drive odometry guide explains that position estimates using encoders and a gyro still drift. Where absolute position matters, assess suitable external references or additional sensing rather than expecting perfect calibration to eliminate all uncertainty.

Keep calibration tied to operating conditions

Retain a short record of wheel set, payload, surface, speed, acceleration settings, count convention and repeated test results. Recheck after replacing tyres, changing the gearbox or moving to a different floor.

When choosing from the robotics wheel collection, consider repeatable rolling behaviour and mounting as well as size. The most useful calibration is one that explains its assumptions and can be repeated by the next person working on the robot.

Previous article Battery Power for Arduino Projects: Voltage Range, Runtime and Regulator Heat