Skip to content

Sensor Processing Checkpoints

Knowledge check · self-test

Sensor Processing Checkpoints

Check errors where the application acts.

Back to the chapter →

Check errors where the application acts.

::: {.callout-tip} ## Physics Phoebe, Physics and measurement-foundations expertCheckpoint: Filter Choice {.depth-l0 data-narration="suspended-until-rerecord"} Choose a filter based on whether the unwanted error is random noise, an isolated spike, or a real changing signal that must remain responsive. An exponential moving average (EMA) is a running estimate: each new reading is blended with the estimate from the previous reading. In a Kalman filter, Q is the uncertainty assigned to changes in the state being tracked, while R is the uncertainty assigned to each measurement. You now know: - A causal N-sample moving average has group delay (N-1)/2 samples; for N=10 at 100 Hz, this is 45 ms. - EMA keeps only 1 float, or 4 bytes, while a 10-sample moving average stores 40 bytes. - Median filtering is the first stage for spikes, while Kalman filtering belongs where Q, R, and changing state are meaningful. :::::: {.callout-tip} ## Physics Phoebe, Physics and measurement-foundations expertCheckpoint: Calibration {.depth-l0 data-narration="suspended-until-rerecord"} Calibration estimates a correction from references and checks whether residual error meets the decision tolerance. You now know: - Two-point calibration uses a low and high reference so the firmware can correct both offset and gain. - The interactive example maps raw ADC endpoints 512 and 3584 onto actual values 0 and 100. - The soil example maps dry ADC 2988 and field-capacity ADC 1515 onto 0-60% moisture, then checks the 30% irrigation trigger. :::::: {.callout-tip} ## Physics Phoebe, Physics and measurement-foundations expertCheckpoint: Pipeline Readiness {.depth-l0 data-narration="suspended-until-rerecord"} A ready processing pipeline preserves valid samples, rejects impossible data, and records enough context to reproduce a decision. You now know: - A pipeline gathers readings, checks them, and prepares them for use. - The label quiz shows the steps from input to analysis. - Sampling comes first. Filtering and calibration cannot recover a signal that was missed. :::

Back to Sensor Processing: Filter Selection and Validation: Sensor Calibration