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:
- Track the minimum reading over a 24-hour window
- Assume this minimum represents the “baseline” reference value
- Automatically adjust offset to correct drift
- Add drift alarm if correction exceeds threshold