Sampling Theory and Aliasing
Sample a spinning wheel too slowly with a camera and it appears to spin backwards. Sample a radio signal too slowly and you hear phantom signals. Same physics.
In plain English
Sampling is like taking snapshots of a wave. If you take enough snapshots per second, you can reconstruct the original wave perfectly. Take too few, and the wave looks like something completely different. The Nyquist rule tells you the minimum number of snapshots you need — at least two per cycle of the highest frequency in your signal.
Sampling is the process of converting a continuous-time analog signal into a discrete sequence of numbers by measuring the signal's amplitude at regular time intervals. The rate of measurement is the sample rate (or sampling frequency), measured in samples per second (Hz). An ADC with a 1 MHz sample rate takes one measurement every microsecond, producing a million numbers per second.
The crucial question is: how fast must you sample to faithfully represent a given signal? Intuition says at least fast enough to capture the signal's highest-frequency content. The Nyquist–Shannon theorem makes this mathematically precise: to perfectly reconstruct a signal containing frequencies up to f_max, the sample rate must be at least f_s ≥ 2 × f_max. The minimum rate of 2 × f_max is the Nyquist rate. The corresponding maximum frequency representable at a given sample rate, f_s / 2, is the Nyquist frequency (also called the folding frequency).
When the sampling theorem is satisfied, perfect reconstruction is theoretically possible by passing the discrete samples through an ideal low-pass filter with cutoff at f_s/2. The filter interpolates between sample points, perfectly recovering the original continuous waveform. In practice, imperfect reconstruction filters leave some ripple, which is why oversampling (sampling well above the Nyquist rate) is common in high-quality audio and SDR systems.
Signal freq
5 Hz
Sample rate
18 Hz
Nyquist rate
10 Hz
Status
Correct
| Application | Signal BW | Min Sample Rate | Typical Rate Used |
|---|---|---|---|
| Telephone (PSTN) | 0–4 kHz | 8 kSPS | 8 kSPS (G.711) |
| CD Audio | 0–20 kHz | 40 kSPS | 44.1 kSPS |
| Studio Audio | 0–24 kHz | 48 kSPS | 96–192 kSPS |
| FM Broadcast (mono) | 0–15 kHz | 30 kSPS | ~200 kSPS (RTL-SDR) |
| Narrowband FM voice | ±2.5 kHz | 5 kSPS | 12.5–25 kSPS |
| WiFi 802.11b (11 Mbps) | 22 MHz | 44 MSPS | 44 MSPS (direct RF) |
| RTL-SDR receiver | Up to 2.4 MHz | 4.8 MSPS | 2.4 MSPS |
| HackRF One | Up to 20 MHz | 40 MSPS | 20 MSPS |