Robotics & Mechatronics · Robot sensors and calibration
Calibrate encoder scale, direction and reference
An encoder provides increments or codes. Turning them into a useful joint or wheel measurement requires a scale, sign and physical reference, together with evidence about the installed measurement.
All numerical tables, scenarios and records are original constructed teaching data unless a specific external dataset is named. No physical experiment is claimed. A worked simulation model is distinguished from an executed simulator.
Lesson preparation and course links
Use the local explanations and supplied units, diagrams, tables and examples; advanced chapters build on the named local chapters. External links are point-of-need depth, not a requirement to finish an entire map.
Back to the Robotics chapterAfter reading, you can
Turn counts into a declared joint or wheel measurement and distinguish homing repeatability, resolution and accuracy.
Fit count against an independent reference
Original constructed forward-approach pairs use the same installed sensor and reference method.
| Count | Reference / mm | Inferred 0.050(c−1000) / mm |
|---|---|---|
| 1000 | 0.0 | 0.0 |
| 2000 | 50.1 | 50.0 |
| 3000 | 100.0 | 100.0 |
Choose the model and inspect what it leaves out
Endpoint scale is 100 mm/2000 counts=
Resolution is the increment represented by one count in this model. Reference repeatability describes scatter when the reference procedure is repeated. Accuracy concerns agreement with the intended quantity and is not a numerical synonym for either. An uncertainty statement needs the measurement model and relevant contributions.
Use a point not used to choose the endpoint fit
A held-out count 2500 is paired with reference 75.2 mm. The model infers 75.0 mm, residual−0.2 mm. The check is inside the fitted range and uses the same approach direction. Its independence from fitting is useful, but it shares the reference method and may share systematic errors.
Suppose repeated homing counts are 998, 1000, 1002 relative to a common reference event. Their span is 4 counts=
Make the uncertainty account explicit
For a deliberately simple worst-case teaching account, suppose reference-reading bound is±0.10 mm, retained zero bound±0.15 mm and count quantisation bound±0.025 mm. Adding magnitudes gives±0.275 mm for those listed effects. This is a conservative interval sum under stipulated bounds, not a standard uncertainty or a complete budget. Calibration-scale uncertainty and other installed effects would need inclusion when material.
A physical calibration record retains instrument identity, conditions, reference procedure, raw counts, model coefficients, residuals, held-out checks and scope. A reset or sensor/transmission replacement can invalidate the reference relationship even when the code still multiplies by 0.050.
Check a count and a calibration claim
At count 1840, inferred x=
A proposed claim “accurate to one count” does not follow from the scale. The held-out−0.2 mm residual alone is four counts in magnitude, and the complete uncertainty scope remains to be established. Restrict the model to the checked range and conditions.
Try the reasoning
Counts 3000→2600 imply what displacement?
Show the answer and reasoning
−400×
0.050= −20 mm under the same reference and sign. Why is a held-out point useful but not independent of every systematic error?
Show the answer and reasoning
It was not used in fitting, but may use the same biased reference or installation.
Does a 4-count homing span establish a 4-count accuracy bound?
Show the answer and reasoning
No. It describes the supplied repeats; absolute reference error and broader variation remain.
What does adding 0.10+0.15+0.025 mm establish here?
Show the answer and reasoning
A±0.275 mm worst-case sum of those stipulated bounds only, not a complete probabilistic uncertainty statement.
What to carry forward
Keep scale, reference, resolution, repeatability and uncertainty as distinct parts of the installed encoder claim.
References
Sources supporting this lesson’s explanations and examples.
- NIST Technical Note 1297: Guidelines for Evaluating and Expressing the Uncertainty of NIST Measurement ResultsBarry N. Taylor, Chris E. KuyattMetrology technical note, web edition1994 Edition
- Robotic Manipulation, Chapter 2: Let's get you a robotRuss TedrakeUniversity course working notes2020–2026 working notes