Here is tutorial - Amplitude Modulation (AM) Demodulator using
Digilent Analog Discovery 2
Scope/Generator.
NOTE: For learning purpose we use very low and audible frequencies:
- Carrier frequency: 1 kHz
- Envelope frequency: 100 Hz
Real Medium Wave (MW) radio uses 1 MHz band for Radio Frequency (RF) wireless transmit and Audio signal up to around 4 kHz as Envelope.
However principle is same.
Required hardware
Required Software
-
- tested version: 3.18.1
Required wiring:
Pin A | Pin B |
---|---|
GND | CH1- |
GND | CH2- |
W1 | CH1+ |
W2 | CH2+ |
NOTE: The CH2/W2 wirings are required for later Direct Conversion Example.
- Interconnect channels as described in above "Required wiring" table.
- Open provided
Digilent WaveForms
Workspace file Henryk-AM.dwf3work - Select
Wavegen 1
Tab - check-on
Enable
- click on
Run
(orRun All
) - It should look like:
- select tab
Scope 1
- click on
Single
for single trigger - it should look like:
You will see 5 channels:
-
Yellow: Sine Carrier at frequency 1 kHz modulated with another Sine Envelope (transmitted information) at frequency 100 Hz
-
Red: Demodulated signal - emulating single Diode detector - only positive values passes through. This step is fundamental in demodulation, otherwise envelope will cancel-out (average is 0) and is base for crystal radio. Another popular demodulator is Direct Conversion, by mixing Oscillator with same frequency as Carrier - see section below for example.
-
Blue: Finally we will filter-out carrier frequency to get just envelope. In case of crystal radio, RC low-pass filter is often used. Please note that it is always trade-off - to filter out all carrier but do not smooth also Envelope - it is usual compromise.
-
Magenta compared to 2. Red - we demodulate signal using two-way detector (basically two diodes so both waves will be used).
-
Green: low-pass filter from Magenta - two-way detector. Notice 2 times higher amplitude than in case of single way rectifier (Red) which is handy.
Another way to demodulate signal is called "Direct Conversion" - when you mix original input AM signal (carrier modulated with envelope). If we mix again carrier with oscillator of same frequency and phase as carrier we will get back original envelope (there will be also additional high-frequency result that has to be filtered out).
Here is screenshot of Direct Conversion demodulator - note that this kind of Demodulator is called "Lock-In" in WaveForms software:
Here is Wavegen generator tab:
What we can see:
- Yellow: Wavegen1: AM Modulated signal - carrier modulated with envelope
- Blue: Wavegen2: Carrier only - must match carrier from modulated signal
- Red: Demodulated signal using "Lock-In" scope module.
Here is WaveForms Workspace file for Direct Conversion example:
- Workspace file Henryk-AM-DC.dwf3work
It is simply amazing how we can easily simulate sophisticated Hardware with such USB Tool!