A field team faces an unresolved physical question: Why can downsampling turn vibration into drift? They must answer it before changing downsample rate on the real device. Predict the direction first.
See the relationship before changing it
The figure reads from left to right. The blue card is downsample rate. The middle card applies this page's relationship. The green card is nyquist ceiling. Walk the arrows once: set the input, apply the rule, then read the result with its unit.
The retained audit below checks several chapter fixtures. This added model holds every other chapter fixture fixed, so the numeric fixture does not switch without explanation.
Derive the baseline in four named moves
- 1
Name the input. The chapter baseline for downsample rate is 20.
- 2
Name the relationship. fs,min=2(100)=200 Hz; 20/200=0.10x n=round(100/20)=5; falias=|100-5(20)|=0 Hz 2¹⁰=1,024; q=3.3/1,024=3.22 mV; qrms=0.930 mV; SNR=62.0 dB
- 3
Substitute the chapter fixture. Set downsample rate to 20. The page ledger gives nyquist ceiling as 10 Hz.
- 4
Read the result. Keep Hz beside the value. Use it only inside the technical boundary on this page.
Predict, then change downsample rate
Try Predict the direction of nyquist ceiling. Move one control, calculate, then check your prediction.
Observe The fold formula computes the visible result from the chosen grid. A low-pass filter must remove frequencies above the new Nyquist ceiling before decimation. Reset the control to 20 and compare nyquist ceiling.
Explain Only downsample rate moves here. The other chapter fixtures remain fixed.
Check yourself
What should you do before trusting a moved-control result?
What does this small model leave out?
1. Start with the sample grid
A sample is one point in time. To distinguish the fastest cycle, the grid needs at least two points per cycle. A rate change creates a new grid and must obey the rule again.
2. Name every algebra move
Double the fastest frequencyThe minimum safe rate is fs,min=2f.
Choose the nearest copyUse n=round(f/fs).
Measure the foldfalias=|f−nfs|.
Count ADC codesLevels=2ᴺ and q=Vref/2ᴺ.
Turn step into RMS noiseqrms=q/√12; ideal SNR=6.02N+1.76.
3. Reproduce the chapter case
n=round(100/20)=5; falias=|100−5(20)|=0 Hz
2¹⁰=1,024; q=3.3/1,024=3.22 mV; qrms=0.930 mV; SNR=62.0 dB
The vibration lands on the same phase every sample, so its changing part disappears and can be mistaken for a fixed offset.
4. Try the new sample rate
TryMove the downsample rate away from 20 Hz and watch the same 100 Hz input fold to a different apparent frequency.
ObserveAt 20 Hz, the 100 Hz input becomes 0 Hz. At 30 Hz it appears at 10 Hz. The ADC numbers stay fixed because timing loss and amplitude rounding are separate limits.
ExplainThe fold formula computes the visible result from the chosen grid. A low-pass filter must remove frequencies above the new Nyquist ceiling before decimation.
This compact engine follows one ideal tone and one ideal ADC.
- Tone
- Real vibration contains bands, transients, leakage, and sensor resonances
- Filter
- A real anti-alias filter needs transition width, attenuation, and phase limits
- ADC
- Ideal quantization omits thermal noise, nonlinearity, clipping, and reference error
Validate the real spectrum, filter response, converter, and rate-change chain.
5. Put operations in a safe order
Measure the input band, low-pass below the new ceiling, decimate, record the rate change, and only then smooth, impute, normalize, or aggregate.
6. Keep the preprocessing record
Store original and output rates, filter version, passband, stopband, converter range and bits, missing-data rule, timestamp policy, owner, and retest trigger.
7. Check yourself
Why is 200 Hz the minimum for a 100 Hz component?
Why does 100 Hz become DC at 20 Hz?
Can normalization recover the lost vibration?
The signal and downsample rates come from the chapter; the ADC is a labelled teaching assumption.
- 100 Hz and 20 Hz
- The chapter's vibration and downsample case
- 1 Hz
- The chapter's temperature-stream rate
- 10-bit, 3.3 V
- A catalog-typical low-cost data-logger example, not a chapter-specified converter
Correct, not complete: production preprocessing needs measured spectra and filter evidence.
Data Dora guides