Skip to content

Visualizer tool for understanding bandpass sampling

Notifications You must be signed in to change notification settings

BlankAdventure/bps_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

bps_demo

A small app to visually demonstrate the concept of bandpass sampling and alias regions.

Click here for live version

image

The default settings (shown above) depict the two-sided power spectrum for a real signal with an "RF" carrier of 3500 Hz and a lower and upper sideband occupying a bandwidth of 1000 Hz. In this case the maximum frequency is 4000 Hz and we start with a sampling rate of 12000 Hz, yielding a Nyquist frequency of 6000 Hz. Thus we are initially oversampling the signal.

The sampling rate slider can be adjusted to see the impact of different sampling rates on the reconstructed signal. The black line depics the original (oversampled) signal and the green line depicts the modified signal spectrum. The two dashed vertical lines indicate the location of the Nyquist frequency (i.e., +- Fs/2). The upper left legend lists the alias-free sampling rates, which are also indicated graphically by the green strips below the slider (the red strips indicate the aliased regions).

In this example the maximum frequency is 4000 Hz therefore anything above 8000 Hz would be considered oversampling. In the usual understanding of Nyquist sampling, one would consider that we must sample at 8000 Hz+ if we want to properly reconstruct the signal. Indeed, by positioning the slider below 8000 Hz, such aliasing artifacts appear as expected: image

However, for the case of bandpass signals, it turns out there are certain under-sampling rates that preserve the signal. Examples from the 3 valid zones are depicted below:

image image image

Whether or not these Nyquest zones are useful is another question. Notice the spectra may become inverted and they don't necessarily land at DC/0 Hz.

Two additional slides are provided to see how the carrier frequency and bandwidth affect the Nyquist zones.

About

Visualizer tool for understanding bandpass sampling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages