GLOBAL KNOWLEDGE ARK

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 chapter

After reading, you can

Turn counts into a declared joint or wheel measurement and distinguish homing repeatability, resolution and accuracy.

01

Fit count against an independent reference

Original constructed forward-approach pairs use the same installed sensor and reference method.

Fit count against an independent reference
CountReference / mmInferred 0.050(c−1000) / mm
10000.00.0
200050.150.0
3000100.0100.0
02

Choose the model and inspect what it leaves out

Endpoint scale is 100 mm/2000 counts=0.050 mm/count. The inverse model is x=0.050(c−1000) mm. At the middle pair, inferred minus reference is−0.1 mm. This residual can include reference error, installed sensor response and other conditions; it is not automatically pure encoder error.

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.

03

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=0.20 mm under this scale. That is observed spread in this tiny supplied set; it is not a confidence interval or proof that every future home lies in that span.

Calibration and held-out encoder checksFit data residual: (1000, 0); (2000, -0.1); (3000, 0). Held-out residual: (2500, -0.2). Horizontal axis Raw count / count; vertical axis Inferred − reference / mm. Straight segments join supplied samples; values between samples are not additional observations.1000-0.31500-0.22000-0.12500030000.1Raw count / countInferred − reference / mmFit data residualHeld-out residual
Fit data residual: (1000, 0); (2000, -0.1); (3000, 0). Held-out residual: (2500, -0.2). Horizontal axis Raw count / count; vertical axis Inferred − reference / mm. Straight segments join supplied samples; values between samples are not additional observations.
04

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=(1840−1000)×0.050=42.0 mm. One count corresponds to 0.050 mm, while the illustrative sum of the three stated bounds is 0.275 mm. Reporting 42.000 mm would add unsupported apparent precision.

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

  1. Counts 3000→2600 imply what displacement?

    Show the answer and reasoning

    −400×0.050=−20 mm under the same reference and sign.

  2. 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.

  3. 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.

  4. 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.

  1. NIST Technical Note 1297: Guidelines for Evaluating and Expressing the Uncertainty of NIST Measurement ResultsBarry N. Taylor, Chris E. KuyattMetrology technical note, web edition1994 Editionnist.govRead source
  2. Robotic Manipulation, Chapter 2: Let's get you a robotRuss TedrakeUniversity course working notes2020–2026 working notesmanipulation.mit.eduRead source