Signal Conditioning Pipeline
Trace a raw sensor voltage through gain, filtering, anti-alias protection, and ADC sampling
Signal Conditioning Pipeline
Follow a weak, noisy sensor voltage as it is amplified, filtered, protected against aliasing, and sampled by an ADC. The goal is not a pretty waveform; the goal is data the microcontroller can trust.
Signal Conditioning Workbench
Pipeline Workbench
A weak sensor output needs gain before the ADC can use enough of its input range.
Learning Support
Gain uses the ADC range
A sensor may produce only millivolts. Gain expands that signal so ADC codes change enough to measure it.
Bias centers the signal
Many ADCs cannot read negative voltage. A mid-supply bias lets an AC-like sensor swing above and below a center point.
Filter before sampling
The anti-alias filter must be analog and before the ADC. Digital filtering after sampling cannot undo aliasing.
Watch for clipping
Too much gain can push the signal outside 0 to Vref. Once clipped, the original peak is lost.
Quick Reference
Amplifier output
v_adc = bias + gain x v_sensor
For a single-ended ADC, bias keeps the conditioned waveform inside the ADC input range.
ADC range check
0 V <= v_adc <= Vref
If the conditioned signal exceeds this range, the ADC clips to its minimum or maximum code.
Low-pass filter
|H(f)| = 1 / sqrt(1 + (f / fc)^(2n))
This page uses a Butterworth-style teaching model with filter order n = 2.
Nyquist limit
f_nyquist = sample_rate / 2
Analog frequencies above this limit can fold into the sampled data as false lower frequencies.
Anti-alias target
filter cutoff < sample_rate / 2
Practical systems leave transition-band margin because real filters do not cut off instantly.
ADC step size
LSB = Vref / 2^bits
The smaller the LSB, the smaller the voltage change represented by one ADC code step.
Useful range
range_used = signal_span / Vref
Too little range wastes ADC resolution. Too much range clips the waveform.
Stage order
sensor -> gain/bias -> analog filter -> ADC
The exact circuit can vary, but alias prevention must happen before the ADC samples.
Guided Practice
Use more range
Start at Weak sensor and raise gain until the range metric becomes useful without clipping.
Remove interference
Lower the cutoff and watch the interference bar shrink. Keep the signal frequency below the cutoff.
Trigger clipping
Use Clipping and reduce gain until the warning clears. Notice that high resolution cannot fix clipping.
Find aliasing risk
Use Aliasing risk and raise the ADC sample rate or lower the cutoff until the Nyquist warning clears.