How would you test a sensor pipeline including calibration and fault handling?
Answer
Use traceable reference inputs across the operating range, boundaries, noise and environmental conditions. Verify raw conversion, units, filtering, calibration coefficients, saturation and drift, then inject open, short, stuck, implausible and intermittent readings. Confirm diagnostics, fallback behaviour and persistence of calibration across reset and firmware update.
Strong answer includes
- uses an independent traceable reference
- separates raw, converted and filtered values
- tests fault detection and safe fallback
Practical example
A temperature sensor pipeline is validated only against its own converted output on a bench. After a firmware update, a calibration-coefficient migration bug silently resets one channel's offset to zero, and readings drift by 8 degrees. Because no test compared the sensor against an independent traceable reference thermometer after the update, the regression reaches production.