GLOBAL KNOWLEDGE ARK

Robotics & Mechatronics · Robot sensors and calibration

Calibrate a robot range or threshold sensor

A threshold sensor makes a physical decision depend on target geometry and history. Calibrate the installed decision rather than assuming a nominal sensor range works for every surface.

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

Account for target geometry, mounting, environment and hysteresis in a sensor used for a physical decision.

01

Inspect target-dependent records

Constructed range readings at fixed reference distances. Targets differ only in their declared surface condition for this exercise.

Inspect target-dependent records
Reference / mmTarget A reading / mmTarget B reading / mm
100101108
200201212
300301319
02

Do not transfer a correction beyond its evidence

For A, the three readings have a consistent+1 mm difference, so subtracting 1 mm fits these points. For B, differences are+8, +12, +19 mm; a universal 1 mm correction is unsuitable. The record does not identify whether reflectivity, incidence, geometry or another sensor interaction causes it.

Record target size/material/orientation, mounting, environment, update timing and validity flags. A calibration for a broad flat target may not transfer to an edge, transparent object or angled surface. Use the actual sensor documentation for physical conditions; these numbers are not a product specification.

03

A switch can have different on and off boundaries

A supplied proximity switch asserts while approaching at reference 40 mm and releases while withdrawing at 46 mm. Distance decreases on approach. Its 6 mm hysteresis band is intentional in this example.

A switch can have different on and off boundaries
Previous stateDistance / mmNext state
Off39On
On43On
Off43Off
On47Off
04

Make a decision from the right variable

At 43 mm, the switch state depends on history. A controller that assumes a single 42 mm boundary will misread one of the cases. Hysteresis can reduce repeated transitions from small variations, but does not establish physical clearance or stop performance.

To test false transitions, retain repeated observations near the boundary with the same target and known direction. Compare with an alternate target condition. Distinguish a noisy reading, a legitimate release after withdrawal and an invalid sensor record. Missing returns must not silently become zero distance or “clear.”

Compare a threshold decision after calibration

Suppose an illustrative decision asserts when corrected A distance≤200 mm. Reading 201 mm corrects to 200 mm, exactly at the inclusive boundary, so it asserts. Reading 202 mm corrects to 201 mm and does not.

Using that same correction on B’s 212 mm reading at the 200 mm reference would give 211 mm and a missed threshold. The target-specific record challenges transfer of the calibration. It does not justify changing the threshold until the sensor model and task consequences are assessed.

Try the reasoning

  1. At 43 mm, can switch state be inferred without history?

    Show the answer and reasoning

    No. It lies between the 40 mm assert and 46 mm release boundaries.

  2. What is the supplied hysteresis width?

    Show the answer and reasoning

    46−40=6 mm.

  3. Why is subtracting 1 mm from all B readings unsupported?

    Show the answer and reasoning

    B’s differences vary with distance and differ from A’s installed response.

  4. A sensor has no valid return. Should the robot interpret it as an obstacle-free path?

    Show the answer and reasoning

    Not without an explicitly supported contract. Mark invalid and use the declared task response.

What to carry forward

Calibrate the installed measurement and decision under declared target conditions. Preserve direction, history and invalid-state behaviour.

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. Gazebo Jetty: SensorsGazebo contributorsOfficial simulation tutorialJetty versioned documentationgazebosim.orgRead source
  3. Robotic Manipulation, Chapter 2: Let's get you a robotRuss TedrakeUniversity course working notes2020–2026 working notesmanipulation.mit.eduRead source