ECEdge

Exam: GATE 2027 exams are on 6, 7, 13, 14, 20 and 21 February 2027. Official GATE 2027 site

Sampling and aliasing demo: see the Nyquist theorem

Move the signal frequency and the sampling rate and see exactly when the samples start lying about the frequency.

How it works

  • A sampled signal can only show frequencies up to half the sampling rate: the Nyquist frequency fs / 2.
  • A frequency f above fs / 2 folds back and appears as |f − k·fs| for the nearest whole k.
  • That is why ADCs have an anti-aliasing filter: it removes frequencies above fs / 2 before sampling.

Try this

  1. Set the signal to 3 Hz and the sampling rate to 10 Hz: the samples follow the signal.
  2. Raise the signal to 9 Hz: the samples now trace a 1 Hz wave.
  3. Set the signal to exactly half the sampling rate and see why “2 × f” is not enough in practice.

Common questions

Why do car wheels in videos sometimes spin backwards?

The same thing: the camera samples the wheel 24–60 times a second, and a fast wheel aliases to a slow, or even negative, speed.

How fast should I sample in practice?

Several times the highest frequency you care about, with a filter before the ADC. Audio at 44.1 kHz covers sound up to about 20 kHz.

More simulators