Resources  /  TechTalk  /  Vol. 1 · Part 5

Minimum Number of Samples: The Nyquist-Shannon Theorem

How fast do you need to sample to capture a signal without distorting it?

A continuous-time (analog) signal can be stored in a computer as equally spaced discrete samples. The higher the sampling rate (sampling frequency, fs), the more accurate the stored information and the reconstruction of the signal. But a high sampling rate produces a large volume of data and requires a very fast analog-to-digital converter.

A signal rich in high-frequency components, such as music, clearly needs a much higher sampling rate than a slowly varying signal. So which minimum sampling frequency preserves a given signal and allows it to be reconstructed accurately? The Nyquist-Shannon sampling theorem answers that:

To avoid distorting the underlying information, a signal must be sampled at no less than twice the frequency of its highest frequency component.

fs ≥ 2 × fmax

A 20 kHz signal reconstructed from samples taken at 40 kHz and at 30 kHz

For the 20 kHz signal above, the minimum (Nyquist) sampling rate is 40 kHz. The figure shows the signal reconstructed from samples taken at 40 kHz and at 30 kHz. The 30 kHz reconstruction yields a completely different signal.

This is the second eye-opener that seriously affects the choice of sensors and the data processing peripherals, such as ADCs, that go with them.

Harry Nyquist (1889–1976)

Harry Nyquist's early theoretical work on the bandwidth needed to transmit information laid the foundations of information theory. He determined that the number of independent pulses that can be sent through a telegraph channel per unit time is limited to twice the channel's bandwidth, a rule now known as the Nyquist-Shannon sampling theorem.

Questions about frequency response or sampling?

Our engineers can help you match sensor bandwidth, electronics and sampling rate to the events you need to capture.