1import numpy as np2t = np.arange(800) / 800003m = np.cos(2*np.pi*1000*t)4s = m * np.cos(2*np.pi*1e4*t)5S = np.abs(np.fft.rfft(s))6np.flatnonzero(S > 1) * 100mm
00.511.52-2-1012t (ms)voltsTIMEdashed: outline ±m(t)outline 1 + 0.5·m(t)y = s·c; dashed: m/2out = m(t)/2sA + sB on the airA, B, A, B · 62.5 µs slots05101520253000.250.50.751f (kHz)amplitude (V)SPECTRUM (DFT)baseband: near 0 Hzcarrier: one line9 and 11 kHz, 0.5 V each2 kHzno line at 10 kHzcarrier 1 V · sidebands 0.25 V1 kHz back, plus 19 and 21 kHzlow-passonly 1 kHz passesA at 1 kHz; B at 3, 7 kHzABguard band 2 kHzTDM: see the time plot
Coloured parts: what the current step is about; everything else rests in whiteBlocks: message, oscillators, mixers (×), antenna masts, low-pass filter, station B and a Python code cardPlots: the waveform in time and its spectrum, computed with a DFTRadio crests and signal tokens move in slow motion; crests take turns in the TDM stepA 1 kHz message is mixed onto a 10 kHz carrier (DSB-SC and AM), received by mixing again and low-pass filtering, then shares the air with a second station by frequency (FDM) or by time (TDM). The low-pass filter is ideal (it keeps every DFT line below 2.5 kHz and drops the rest). A real filter rolls off gradually, which is why stations leave guard bands.

Message and carrier

  1. Message A is a 1 kHz tone: m(t) = cos(2π·1000·t) volts. Its spectrum is one line at 1 kHz. A signal that sits near 0 Hz like this is called baseband.

Mixing: DSB-SC and AM

Getting the message back

Sharing the channel

Mixing in code

The working

# step 1/12 · message

m(t) = cos(2π·1000·t)   (volts, t in seconds)

spectrum: one line, 1 V at 1 kHz

baseband = the frequencies sit near 0 Hz
(speech: about 0.3 to 3.4 kHz)

to send it by radio, an antenna about a
quarter wavelength long works well:
λ = c / f = 3×10⁸ / 1000 = 300 km. Too big.

The frequencies are scaled down so the waves can be drawn: a 1 kHz message on a 10 kHz carrier. Real AM broadcast carriers sit between about 0.5 and 1.7 MHz. Every curve and spectrum line is computed from this model; the spectra are real DFTs. Tokens and radio crests move in slow motion and are not to scale; the plots show the true waves.