Radio from scratch · Chapter 10

AM, SSB and Morse

Before you startThis chapter uses:

An arrow has two things you can change to carry a message: its speed and its length. FM (chapter 9) uses the speed. This chapter is about using the length, which is how radio started a century ago, and two clever descendants: single sideband, which keeps only the useful part, and Morse code, which just switches the arrow on and off.

You'll hear all of them on a real radio: aircraft talk to airports in AM (that's why pilots sound the way they do), radio amateurs talk across continents in single sideband, and Morse code is still alive on the ham bands.

AM: the sound is in the length

Predict: an AM signal fades to half its strength under a bridge. What happens to the sound?

The sound is in the arrow's length, so anything that shortens the arrow, fading included, goes straight into the sound. (Chapter 11's automatic volume control tries to undo it.)

Amplitude modulation (AM) keeps the arrow's speed steady and makes its length follow the sound: longer when the speaker should push out, shorter when it should pull in. The demodulator is even simpler than FM's: measure each sample's length (chapter 2: the distance from the center), and remove the constant part (the carrier, explained below).

Now tick Signal fades, and compare with chapter 9's FM demodulator (↩). There, fading changed nothing, because FM only looks at angles. Here the fade goes straight into the sound: the yellow line no longer matches the green one. When the signal weakens, the arrow gets shorter, and an AM receiver can't tell "shorter because the signal faded" from "shorter because the music went quiet". That's the familiar flutter of AM radio under a bridge or a power line, and the reason music moved to FM.

The readout points out AM's other weakness. The arrow always has some length, even in silence: that steady part is called the carrier, and it carries no sound at all, yet it takes most of the transmitter's power.

Sidebands, and why half of them are spare

At the end of the previous section we saw that AM's steady carrier eats up at least two thirds of the transmitter's power without carrying any sound. When we look at an AM station in the spectrum (chapter 4), we find it's even more wasteful — and seeing why shows how to make a transmitter reach six times farther on the same battery.

Look at an AM station with chapter 4's winding machine. You see the carrier in the middle, and the sound twice: once above the carrier and once below it, as exact mirror images. These are the upper and lower sidebands.

An AM station on 710 kHz plays a steady 1 kHz tone. Where does the lower sideband's copy of that tone sit, in kHz?

1 kHz below the carrier: 709 kHz (and the upper copy at 711 kHz). Each tone appears as a mirror pair around the carrier.

Why two copies? It's chapter 5's fact again (↩): a plain up-and-down wave is two arrows spinning in opposite directions. AM changes the length with a plain wave (the sound), so every tone in the sound appears as an arrow above the carrier and its mirror twin below.

Since the two sidebands carry exactly the same information, a transmitter can send just one and drop the carrier entirely. That's single sideband (SSB). Even at full modulation, an AM signal spends two thirds of its power on the carrier and splits the rest between two identical sidebands, so only about a sixth of it is the sound you actually need. An SSB transmitter puts everything into that one sideband: on paper, it gets as far as an AM transmitter about six times as strong (with real speech the advantage is smaller, but still large), and it takes half the space on the dial. It's what radio amateurs and long-distance aviation use for voice.

AM puts the sound in the arrow's length, and every tone appears twice, as mirror-image sidebands. SSB sends one sideband and no carrier, so the receiver must put it back at exactly the right frequency.

Why does AM make two sidebands?
  1. Names: m is the modulation depth (the slider above: 1 means 100%), f_a the tone's frequency, f_c the carrier's.
  2. AM's arrow has length 1 + m · cos(2π f_a t) for a tone at f_a, and spins at the carrier frequency.
  3. A cosine is half an arrow spinning forwards at f_a plus half spinning backwards (chapter 5).
  4. Multiplying by the carrier's arrow adds angles: the forward half lands at f_c + f_a, the backward half at f_c − f_a, each m/2 long.
  5. Plus the steady 1, which stays at f_c: the carrier.
  6. So every tone appears twice, as mirror images, each with power (m/2)², against the carrier's 1: that's where 1/(1 + m²/2) comes from.
Where it breaks

AM's length can't go below zero, but the formula can. Modulate deeper than 100%, say m = 1.5, and at the tone's trough the length should be 1 − 1.5 = −0.5. An arrow can only point the other way, so the detector reads a length of 0.5: the trough folds upwards and the sound distorts badly. Transmitters limit their modulation to stay under 100% for this reason.

Receiving SSB, and the Donald Duck problem

To play SSB, the receiver puts the sideband back where the sound belongs: from 0 Hz up to about 3 kHz. With the station's exact frequency at 0 (chapter 5) and the sideband kept by a filter (chapter 6), the sound is simply the I part (one shadow) of the arrows: the mirror twin we'd need for "both shadows" doesn't exist any more, so it doesn't matter that one shadow can't tell directions apart.

But there's no carrier to tell the receiver where "exactly 0" is. Tune slightly wrong, and every pitch moves by the same number of hertz:

Moving every pitch by the same number of hertz is not the same as moving them all up by the same musical interval. A voice's overtones sit at exact multiples of its base pitch (2×, 3×, …); shifted by a fixed amount, they stop being multiples, and the voice sounds like a cartoon duck. Ham radio operators tune SSB by ear until voices sound natural.

Morse code: on and off

Single sideband squeezed a human voice into 2.8 kHz so every watt counts. What if a signal across an ocean is so weak that even a 2.8 kHz voice is buried in the noise? We give up on voice and concentrate all of the transmitter's power into a single spinning arrow, switched on and off.

The simplest message of all: switch the arrow on and off. Short on is a dot, long on is a dash. Radio people call it CW ("continuous wave", because the arrow itself never changes while it's on).

There's a catch: an arrow that's on doesn't make any sound by itself. FM listens to speed changes and AM to length changes; Morse has neither. The trick is to tune the receiver slightly off the station, so that its arrow lands a few hundred hertz from 0 and spins at that speed: an audible tone, called the beat. That's exactly the SSB receiver with a deliberate tuning error. Each dot and dash becomes a beep, and you choose the pitch by choosing the error.

You tune 700 Hz away from a Morse signal. What pitch, in Hz, will each dot and dash beep at?

The arrow lands 700 Hz from 0 and spins at that speed: a 700 Hz beat. Choose the tuning offset and you choose the pitch. Spectrum Lab's CW mode uses exactly 700 Hz.

Morse needs the narrowest space on the dial of any mode (well under 100 Hz) and can be read by a trained ear even when it's buried in noise. That's why it's still used today.

Lab: real AM and narrow FM

The full receiver in other modes. Pick a preset (it sets the frequency and mode), then connect. The airport frequencies are only busy when planes are talking, so you may hear silence for a while; that's normal.

Listening to aircraft and weather broadcasts is legal in the US. (Ham SSB and Morse are mostly on shortwave, below 30 MHz, which this dongle's tuner can't reach.)

Writing it down

x(t)=(1+m·s(t))·ej2πfct carrier share of the power=11+m2/2

In code

Show the real code (optional: everything it does is explained above)

AM (AmDemod): the length of each sample, then a tiny filter that removes the steady carrier (it subtracts a slowly-following average; engineers call it a "DC blocker", because the steady part is the DC of chapter 4):

Names in this code: Math.hypot gives an arrow's length from its two shadows (Pythagoras). x1 and y1 are the previous input and output; 0.995 sets how slowly the subtracted average follows, so the steady carrier is removed and the sound isn't.

const x = Math.hypot(iq[2 * k], iq[2 * k + 1]);          // the arrow's length (chapter 2)
out[k] = this.y1 = x - this.x1 + 0.995 * this.y1;        // remove the constant part
this.x1 = x;

SSB (SsbDemod): shift the wanted sideband so it's centered on 0, filter away everything else (including the other sideband), shift it back, keep one shadow:

const shift = upper ? bw / 2 : -bw / 2;
this.down = new Mixer(fs, shift);                        // chapter 5
this.lp = new FirDecimator(firLowpass(bw / 2 / fs, bw / 4 / fs), 1, 2);   // chapter 6
this.up = new Mixer(fs, -shift);
// process: back = up(lp(down(iq))); out[k] = back[2 * k]   ← the I part only

Where this chapter's numbers come from. The numbers this chapter computes come from a short checking script behind this page, which also checks each claim and stops if one is wrong. Its output:

AM: recovered tone 599 Hz; at 30% signal strength the sound is 30% as loud
FM: at 30% signal strength the sound is 100% as loud
AM at 100% modulation: 67% of the power is in the carrier, which carries no sound
AM at 50% modulation: 89% of the power is in the carrier, which carries no sound
AM at 30% modulation: 96% of the power is in the carrier, which carries no sound
SSB: tuned right → 1000 Hz; tuned 150 Hz off → 1150 Hz (every pitch shifts by the same amount)
Morse with a 700 Hz beat: 698 Hz beep while keyed, silence between: true
all checks passed

Check yourself

Why does AM flutter under a bridge while FM stays steady?

AM reads the sound from the arrow's length, and a weaker signal makes the arrow shorter. FM reads only the angle, which doesn't change when the signal weakens.

Why can SSB drop one sideband without losing anything?

The two sidebands are mirror images of each other: they carry exactly the same information.

Why does a mistuned SSB voice sound like a duck, rather than just higher or lower?

Every pitch moves by the same number of hertz, so overtones stop being exact multiples of the base pitch. A real change of pitch would multiply all of them by the same factor instead.

Why is a Morse signal silent unless the receiver is tuned slightly off?

While it's on, the arrow is steady: no changing length or speed to turn into sound. Tuning off makes it spin at a few hundred hertz, which is audible.

Last updated