Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Snapshots of a moving world
In films, car wheels sometimes seem to spin backwards. The camera takes snapshots too slowly to follow the fast-turning spokes, so it gets fooled into seeing a slower, backwards motion. Every digital sensor faces the same danger. Sample fast enough (more than twice the fastest wiggle) and you lose nothing. Sample too slowly and fast motion disguises itself as slow motion. That’s aliasing.
IMUs, accelerometers, cameras, ADCs on spacecraft buses and audio all sample. An aliased vibration can look like a real low-frequency signal and fool a controller or a fault detector, and nothing done after sampling can separate it out. The protection must be designed into the hardware: anti-alias filters and adequate sample rates.
- 1. Backward-spinning wheels in films are caused by…
- 2. To capture a signal faithfully, sample faster than…
- 3. Can software remove aliasing after sampling?
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.The sampling theorem
If has no content above Hz and , then
(Whittaker, Kotelnikov, Nyquist, Shannon). is the Nyquist frequency and the Nyquist rate.
Aliasing
Sampling makes the spectrum periodic with period . A tone at appears at for the nearest integer k. For example, 3.2 kHz sampled at 1 kHz appears at 200 Hz.
Quantization
An N-bit ADC adds roughly uniform error with step , which has variance . For a full-scale sine, dB.
- 1. Nyquist rate for a signal band-limited to 20 kHz:
- 2. 3.2 kHz sampled at 1 kHz aliases to…
- 3. Ideal SNR of a 16-bit ADC:
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.Anti-alias filters
Before the ADC, an analog low-pass must attenuate everything above below the noise floor. An n-th order Butterworth falls at dB/decade ( dB/octave): . Real filters need a transition band, so systems sample at 2.5–10× the signal bandwidth.
Reconstruction
The ideal sinc interpolator is non-causal and infinitely long. Practical DACs output a zero-order hold staircase, whose spectrum is shaped by and contains images. A reconstruction (smoothing) filter removes them.
Oversampling and decimation
Sample at the required rate. Quantization noise is spread over times more bandwidth. A digital low-pass then removes the out-of-band part before decimating by . The gain is dB (half a bit per doubling), and the analog anti-alias filter can be gentle. Sigma-delta ADCs push this further with noise shaping.
- 1. A 4th-order Butterworth rolls off at…
- 2. Oversampling by 4 with ideal decimation gains…
- 3. A DAC's staircase output contains…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Why sinc interpolation works
Sampling multiplies by an impulse train, whose spectrum is an impulse train at multiples of . So the sampled spectrum is . If vanishes outside , the copies don’t overlap. An ideal low-pass of that width keeps exactly , and in time that filter’s impulse response is the sinc. ∎
Quantization SNR
The error is uniform on with variance . Full scale ±A with , and sine power , give , i.e. dB. ∎
Oversampling gain
White quantization noise of total power spread over : only a fraction lies in the signal band after filtering. ∎ Dither keeps the error white for small or slowly varying signals.
Exercise 3.1: Butterworth attenuation needed
A 12-bit system needs out-of-band tones below −74 dB. At 3 octaves above the cutoff, a 4th-order filter gives about −72 dB, just short. A 5th-order filter (−90 dB) or a higher sample rate fixes it.
- 1. Sampling in time corresponds in frequency to…
- 2. Uniform quantization error variance:
- 3. Each doubling of the oversampling ratio (no noise shaping) gains…
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.Front end for a vibration monitor
A machine-health accelerometer needs 0–400 Hz at 1 kHz. A coolant pump produces a strong 3.2 kHz harmonic. Unfiltered, it aliases to 200 Hz, right in the band, where it would be indistinguishable from a real bearing fault. A 4th-order Butterworth anti-alias filter at 400 Hz attenuates it by 72 dB (8th order: 144 dB). Alternatively, sample at 8 kHz with a gentler analog filter, then low-pass and decimate digitally. That yields about 9 dB (1.5 bits) less in-band quantization noise from the same 10-bit ADC. That’s the design logic of modern IMU and accelerometer front ends.
Sampling in AI, robotics and aerospace
- Inertial sensors: MEMS IMUs use sigma-delta ADCs with internal decimation filters, and configurable output data rate and bandwidth.
- Vibration and health monitoring: anti-alias design for spacecraft structures and rotating machinery.
- Cameras: rolling-shutter and temporal aliasing of propellers; optical anti-alias filters before Bayer sensors.
- Learning: CNN downsampling aliases unless blurred first (anti-aliased CNNs; Zhang, 2019).
References
- C. Shannon (1949). “Communication in the presence of noise.” Proc. IRE, 37(1).
- H. Nyquist (1928). “Certain topics in telegraph transmission theory.” Trans. AIEE, 47.
- W. Kester (ed.) (2005). The Data Conversion Handbook. Analog Devices / Newnes.
- R. Schreier, G. Temes (2005). Understanding Delta-Sigma Data Converters. Wiley-IEEE.
- A. Oppenheim, R. Schafer (2010). Discrete-Time Signal Processing, 3rd ed. Pearson. Ch. 4.
- R. Zhang (2019). “Making convolutional networks shift-invariant again.” ICML.
- M. Unser (2000). “Sampling: 50 years after Shannon.” Proceedings of the IEEE, 88(4).