Modulation & Demodulation
AM, FM, PM, the superheterodyne receiver, and digital modulation schemes (ASK, FSK, PSK, QAM) โ the technology behind every wireless link.
1. Why Modulate?
Baseband signals (voice: 300โ3400 Hz, audio: 20โ20 kHz) have wavelengths too long for practical antennas. Modulation shifts information onto a high-frequency carrier \(c(t) = A_c\cos(2\pi f_c t + \phi_c)\), enabling efficient transmission. The three parameters โ amplitude \(A_c\), frequency \(f_c\), and phase \(\phi_c\)โ give rise to AM, FM, and PM respectively.
A quarter-wave antenna at 1 MHz would be 75 m long; at 2.4 GHz (Wi-Fi) it is just 3 cm. Modulation onto a carrier also allows frequency-division multiplexing โ many channels sharing a single medium by occupying different frequency bands.
2. Amplitude Modulation (AM)
DSB-SC
\[ s(t) = A_c m(t)\cos(2\pi f_c t) \]
Double sideband, suppressed carrier. Power-efficient but requires coherent detection.
DSB-LC (Standard AM)
\[ s(t) = A_c[1+m\,x(t)]\cos(2\pi f_c t) \]
Modulation index \(m \leq 1\) prevents over-modulation. Envelope detection possible โ simple receivers.
SSB
\[ s_{SSB}(t) = \tfrac{1}{2}m(t)\cos(2\pi f_c t) \]
Single sideband โ half bandwidth of DSB. Most bandwidth-efficient. Used in HF voice radio.
AM Waveform & Envelope
3. Frequency Modulation (FM)
In FM, the instantaneous frequency tracks the message:
\[ f_i(t) = f_c + k_f\,x(t) \qquad s(t) = A_c\cos\!\left(2\pi f_c t + 2\pi k_f \int_0^t x(\tau)\,d\tau\right) \]
The modulation index \(\beta = \Delta f / f_m = k_f A_m / f_m\) determines bandwidth. Carson's rule estimates the occupied bandwidth: \(B_{FM} \approx 2(\Delta f + f_m) = 2f_m(1+\beta)\).
FM provides noise immunity through the capture effect and FM improvement: above the threshold SNR, FM output SNR improves as \(3\beta^2(\beta+1)\) times the baseband SNR โ far better than AM for high-fidelity audio. Commercial FM uses \(\Delta f = 75\) kHz, \(f_m = 15\) kHz โ \(\beta = 5\).
4. Digital Modulation
QAM encodes bits in both amplitude and phase by placing symbols on a 2D constellation. QAM-16 uses 4ร4 = 16 points โ 4 bits/symbol. QAM-64 (6 bits/symbol) is used in LTE; QAM-256 (8 bits/symbol) in cable modems and 5G. Higher-order QAM demands better SNR:
\[ P_e \approx \frac{4(M-1)}{M\log_2 M} Q\!\left(\sqrt{\frac{3 E_s}{(M-1) N_0}}\right) \qquad \text{for M-QAM} \]
BER vs SNR โ the fundamental performance metric of any digital link
5. Superheterodyne Receiver
The superheterodyne architecture, invented by Edwin Armstrong in 1918, dominates radio receiver design. Instead of amplifying at the received frequency (which changes per station), the signal is mixed with a local oscillator (LO) to produce a fixed intermediate frequency (IF)where all filtering and amplification occurs.
The image frequency (at \(f_{LO} + f_{IF}\) or \(f_{LO} - f_{IF}\)) must be rejected by a pre-mixer bandpass filter. The IF is typically 455 kHz (AM) or 10.7 MHz (FM). Modern software-defined radios (SDR) digitize near the antenna and perform all mixing in software.
Python Simulation
AM-DSB-LC waveform with envelope, FM signal, AM/FM spectra, QAM-16 ideal constellation, and QAM-16 with AWGN noise at 18 dB SNR.
Click Run to execute the Python code
Code will be executed with Python 3 on the server