Technology
Signal Sampling
Quick fact
The Nyquist-Shannon sampling theorem states that to accurately reconstruct a signal without distortion, the sampling rate must be at least twice the highest frequency component present in the signal. For CD-quality audio, that's 44,100 samples per second.
Why this is interesting
You've probably recorded audio on your phone without thinking about it. But did you know that the sound you hear from a digital recording is actually a series of snapshots taken thousands of times per second?
Read the full explanation
Understanding Signal Sampling
Imagine a movie: a film is just a sequence of still images shown rapidly. Signal sampling works similarly, but for continuous signals like sound or voltage. A sampler takes 'snapshots' of the signal's amplitude at regular intervals. The number of snapshots per second is the sampling rate, measured in hertz (Hz). If you sample too slowly, you miss important changes in the waveform, causing distortion. If you sample fast enough, you can perfectly reconstruct the original continuous signal from the samples. This is why your phone's microphone samples sound thousands of times every second.
A deeper explanation
The key principle behind signal sampling is the Nyquist-Shannon theorem, derived from Fourier analysis. Any continuous signal can be represented as a sum of sine waves of different frequencies. To capture a sine wave of frequency f, you need at least 2f samples per second. Sampling below this rate causes aliasing: high-frequency components are incorrectly 'folded' into lower frequencies, creating false artifacts. For example, a 7 kHz tone sampled at 8 kHz (below the Nyquist rate of 14 kHz) would appear as a 1 kHz tone. In practice, an anti-aliasing filter removes frequencies above half the sampling rate before sampling. This is critical in audio, images (pixels are spatial samples), video, and any system that digitizes analog data. Understanding sampling is essential for building accurate digital representations of the real world.