Calibration Records and Practice

Calibration Records and Practice

animation
sensors
Try In the calibration Code Challenge, select gain and offset expressions using the raw reference values 410 and 3280, then press Check Code.
Observe Check Code starts disabled until both dropdowns are filled; after submission it marks each choice and supplies the correct expression for a mistake.
Explain Check Code accepts gain as the reference difference divided by the raw difference and offset as the low reference minus gain times the low raw value.

Technical boundaries. The code exercise assumes a straight-line correction between raw values 410 and 3280 and reference values 0.0 and 100.0. It compares selected expressions with stored answers; it does not execute a calibration or validate a new sensor reading.

TipPhysics Phoebe, Physics and measurement-foundations expertCheckpoint: Production Evidence

You now know:

  • A calibration record needs the sensor ID, date, scale, offset, reference instrument, validation error, and next calibration date.
  • The greenhouse example uses 20 DHT22 sensors and chooses 45.0°C because it is inside the operating range.
  • Validation is separate from fitting: 21.45 * 1.0817 - 2.38 = 20.82°C, which misses 22.5°C by 1.68°C.

Knowledge Check: Match Calibration Concepts

Match each calibration concept to the evidence or correction it requires.

Order: Two-Point Calibration Steps

The ice-water and warm-bath examples below apply to immersion-rated temperature probes. For the DHT22 above, place it and the reference air probe together in dry, temperature-controlled air.

Label the Diagram

Follow the raw reading through the correction and independent validation steps.

Note

Code Challenge

Apply the stored coefficients in the right units and check the result against a reference.

Note
TipPhysics Phoebe, Physics and measurement-foundations expertCheckpoint: Choose the Smallest Defensible Method

You now know:

  • One point can correct a constant offset when independent checks support that model.
  • Two points fit offset and scale.
  • More points may be justified by a curved error. Time depends on the device, reference and procedure.

Try It Yourself.

Practice the arithmetic, then ask whether the correction holds at a new point.

Tip

Beginner: You have a DHT22 that reads 23.8°C while your reference thermometer reads 22.0°C. Calculate the offset and write one line of code to apply it. Then check: if the DHT22 reads 30.5°C, what is the corrected temperature?

Intermediate: For the two-point method above, calibrate the DHT22 in controlled air at reference temperatures 0°C and 40°C. Your raw readings average 1.5°C at the low point and 38.9°C at the high point. Calculate the scale and offset, then predict the corrected reading if the sensor outputs 25.0°C.

Advanced: A hypothetical gas sensor gives these readings at known CO₂ concentrations: (400 ppm, raw=120), (800 ppm, raw=280), (1200 ppm, raw=390), (1600 ppm, raw=460), (2000 ppm, raw=505). Assume other gases are controlled; a cross-sensitive sensor cannot establish selective CO₂ measurement from this fit alone. Plot these points – is the relationship linear? Fit a quadratic polynomial and calculate the predicted concentration when the sensor outputs raw=350.

Back to the chapter