Automatic Drift Compensation

Automatic Drift Compensation

animation
sensing
calibration

Automatic Drift Compensation

A sensor can drift as it ages or its surroundings change. A baseline rule can adjust the offset only if the assumed reference really occurs. If it does not, the rule can add error instead.

Note

Goal: Implement automatic baseline drift correction for long-term deployments.

Background: A baseline method assumes the sensor sees a known value from time to time. For example, some CO2 sensors use a clean-air baseline. Check that this assumption holds at the site before using it.

Tasks:

  1. Track the minimum reading over a 24-hour window
  2. Assume this minimum represents the “baseline” reference value
  3. Automatically adjust offset to correct drift
  4. Add drift alarm if correction exceeds threshold

Back to the chapter