ADC Sampling and Aliasing Demo

ADC Sampling and Aliasing Demo

animation
electronics
Try Keep Sampling Rate (Hz) at 100 and raise Signal Frequency (Hz) from 10 past half the sampling rate.
Observe The opening 10 Hz signal shows OK, a 50.0 Hz Nyquist frequency, and no aliasing artifact.
Explain Sampling Rate (Hz) divided by two sets the aliasing threshold; frequencies above it fold into the lower half of the sampling range.

Technical boundaries. The model assumes a pure sine wave and flags aliasing only strictly above the Nyquist frequency. The LSB card uses a fixed 3.3 V span, while plotted samples use twice the selected amplitude as their quantization span.

ADC Sampling and Aliasing Demo

Note

ADC Sampling and Aliasing Demo

Experiment with ADC sampling concepts: adjust signal frequency, sampling rate, and ADC resolution to see how they affect signal reconstruction and observe aliasing when the Nyquist criterion is violated.

How to Use This Demo:

  1. Start with defaults (10 Hz signal, 100 Hz sampling) - observe clean sampling
  2. Increase signal frequency past 50 Hz (half of sampling rate) to see aliasing occur
  3. Watch the aliased frequency - a 60 Hz signal sampled at 100 Hz appears as 40 Hz!
  4. Increase sampling rate to eliminate aliasing
  5. Change ADC resolution to see how quantization levels affect the sampled values

Key Observations:

  • Nyquist Rule: When signal frequency > sampling rate / 2, aliasing occurs
  • Aliased Frequency: The signal “folds back” into the [0, fs/2] range
  • Quantization: Higher bit resolution = more voltage levels = finer measurements
  • Status Indicators: The dashboard above turns red when the Nyquist criterion is violated

Try These Experiments:

Experiment Settings What to Observe
Nyquist Limit f=49 Hz, fs=100 Hz Just under limit - OK
Aliasing f=60 Hz, fs=100 Hz 60 Hz appears as 40 Hz
Severe Aliasing f=90 Hz, fs=100 Hz 90 Hz appears as 10 Hz
More Samples f=20 Hz, fs=200 Hz Clean reconstruction
Low Resolution Any, 8-bit Visible quantization steps
High Resolution Any, 12-bit Smoother quantization

Back to the chapter