⚡ Spark Academy53 lessons

Sampling & Aliasing

Your ADC takes snapshots. Take them too slowly and the signal doesn't just blur — it lies, confidently, about its own frequency.

lesson 1 of 3 in this unit

Builds on: 11.2 Reading the Analog World5.1 Alternating Current

From continuous to snapshots

Lesson 11.2 chopped voltage into steps; this lesson is about chopping time. An ADC doesn’t watch a signal — it glances at it, fs times per second, and between glances it knows nothing. The question that founded digital audio, digital radio and digital everything: how often must you glance to truly know the signal?

f_s ≥ 2 · f_maxthe Nyquist–Shannon theorem: at least two samples per cycle of the fastest component

Sample at least twice per cycle and — remarkably — the samples contain everything: the original wave can be reconstructed perfectly, not approximately. That’s why 44.1 kHz became the CD standard: comfortably twice the 20 kHz edge of human hearing.

Aliasing: the confident lie

Break the rule and something worse than blur happens. A 900 Hz wave sampled at 1000 Hz produces samples that fall exactly on a 100 Hz sine. Not noise — a clean, plausible, completely fictional signal. This is aliasing, and you’ve seen it all your life: wagon wheels spinning backwards on film (24 frames/s undersampling the spokes), helicopter rotors frozen on video. The apparent frequency folds down like a reflection:

f_apparent = |f − k·f_s|for whichever integer k lands the result below f_s/2 — the “folding” frequency

The vicious part: once aliased, the damage is undetectable and irreversible — the 100 Hz phantom is indistinguishable from a real 100 Hz signal. The defence must happen before sampling: an analog anti-alias low-pass filter (Lesson 5.3, promoted to guard duty) removes everything above fs/2 so there is nothing left to fold. Every serious ADC input has one.

Remember this for the capstone

Your Pico oscilloscope will sample at a rate you choose. Point it at the 1.4 kHz PWM dimmer with fs too low and you will meet a slow, stately phantom wave that isn’t there. Now you’ll know its name.

⚡ Lab — The Wagon Wheel

A signal, a sample rate, and the wave the samples believe in.

  • Keep fs above 2f: the reconstruction (green) sits on the truth.
  • Set f = 900 Hz, fs = 1000 Hz: a 100 Hz phantom, drawn in red.
  • Find the eeriest setting: f exactly equal to fs — the samples see DC.
200 Hz
1 kHz
The law
capture at least two samples per cycle (fs ≥ 2f) or the signal lies to you
Try this
Set f = 900 Hz, fs = 1000 Hz: the samples trace a stately 100 Hz wave that does not exist

Check your understanding

Q1. To faithfully capture a 5 kHz signal you must sample at least at…

Q2. A 900 Hz tone sampled at 1000 Hz appears as…

Q3. Why must anti-alias filtering happen BEFORE the ADC?

Q4. Wagon wheels spinning backwards in old films are an example of…