Low-Pass Filter Effect
Explore how cutoff frequency, filter order, noise, and sample rate change sensor signal conditioning.
Low-Pass Filter Effect
Watch a noisy sensor signal pass through a low-pass filter. The useful slow signal should survive, high-frequency noise should shrink, and the learner should notice the cost: lag and possible loss of real fast changes.
Goal
Choose a cutoff that removes high-frequency noise without flattening the real sensor behavior.
Try First
Use Temperature sensor, then lower the cutoff. Watch smoothing improve while response delay grows.
Watch
The waveform, spectrum bars, cutoff marker, and diagnosis update together from the same settings.
Why It Matters
Filtering before an ADC can reduce noise and aliasing, but a poor cutoff can hide real events.
Waveform View
The waveform view compares raw sensor input, filtered output, and the moving sample cursor.
Cutoff Rule
For a first-order RC filter, fc = 1 / (2 pi R C).
Cutoff should sit above the useful signal band.Response Rule
Butterworth magnitude: |H(f)| = 1 / sqrt(1 + (f/fc)^(2n)).
At f = fc, the gain is about 0.707, or -3 dB.Delay Rule
More smoothing usually means more delay.
A filter that hides noise can also hide fast events.Beginner Ramp
- Low-pass: slow changes pass through more easily than fast changes.
- Cutoff: the frequency where a Butterworth response is down about 3 dB.
- Noise: unwanted variation that may be faster than the real sensor signal.
- Lag: filtered output can respond later than the raw input.
Quick Reference
- Choose cutoff above useful signal bandwidth, not below it.
- Filter before the ADC when high-frequency analog noise could alias into the measurement.
- Higher order gives a sharper transition band but is not automatically better.
- Software filtering helps after sampling, but cannot undo aliasing already captured by the ADC.
Decision Pattern
- Identify the useful signal frequency range.
- Identify dominant noise frequencies.
- Pick a cutoff between signal and noise when possible.
- Check delay and step response.
- Verify with real data from the sensor and installation.
Common Mistakes
- Setting cutoff so low that real changes are flattened.
- Thinking a moving average before sampling prevents analog aliasing.
- Using a high-order filter without checking stability, delay, and implementation limits.
- Reading a smoother graph as a more accurate measurement without calibration evidence.
Technical Accuracy Notes
- The time trace uses cascaded EMA sections as a teaching approximation of low-pass smoothing.
- The frequency-response chart uses the Butterworth magnitude formula shown above.
- For a simple RC analog filter, tau = R C and fc = 1 / (2 pi tau).
- At least sample above twice the highest frequency that remains after analog filtering; practical systems need margin.
Application Notes
- Temperature and humidity sensors often need low cutoffs because the real world changes slowly.
- Vibration sensing needs much higher bandwidth, so an aggressive low cutoff can destroy the signal.
- Motor noise, power-line pickup, and switching supplies often require layout and shielding as well as filtering.
Practice 1
Select Temperature. Lower cutoff until the noise attenuation improves, then stop before delay becomes excessive.
Practice 2
Select Vibration. Raise signal frequency and notice why a low cutoff can remove real information.
Practice 3
Select Pressure step. Compare Waveform and Response views to explain smoothing versus response time.