Radio from scratch · Chapter 1
Spinning arrows: the one picture behind all of radio
Every sound you've ever heard, every radio station on the dial, every Wi-Fi packet flying through your room can be described with one simple picture: an arrow spinning around a circle.
That sounds like an exaggeration. Look at the wave being drawn below. It has flat tops and steep sides, nothing like a smooth circle. And yet it's made of nothing but four arrows, each one spinning at its own steady speed, attached tip to tail.
By the end of this chapter you'll understand exactly how that works, and why a radio receiver is, at heart, a machine for finding one particular spinning arrow among millions. No formulas needed yet. We'll start with a single arrow.
A dot on a wheel draws a wave
Picture a wheel with a dot painted on its rim. The wheel turns at a steady speed. Now ignore everything about the dot except one thing: how high it is. (Shine a light from the side, and the dot's shadow on a wall goes up and down by exactly that height. That's why this course calls the height a shadow of the wheel.)
As the wheel turns, the dot rises, reaches the top, sinks, passes the middle, bottoms out, and comes back up. Let's record that height as time goes by. Every moment, we drop a mark at the dot's current height, and the older marks slide off to the right:
The yellow curve is a sine wave. That's all a sine wave is: the height of something going around in a circle, recorded over time. Once you see it this way, you can't unsee it.
Play with the three sliders. Each one changes the wave in exactly one way:
- Speed changes how tightly packed the wave is. One full turn of the wheel draws exactly one wave (one bump up, one bump down). So a wheel turning 3 times per second draws 3 waves per second. That number is the frequency, measured in turns per second, which has its own name: hertz (Hz).
- Size changes how tall the wave is. The length of the arrow is the amplitude: how strong the wave is.
- Start position slides the whole wave left or right without changing its shape. Where the dot starts on the rim is called the phase.
Frequency, amplitude, phase. Those three numbers completely describe any single wave. Radio engineers spend their whole careers talking about these three things, and you now know what each one looks like.
Every wheel casts two shadows
We've been watching the dot's height. Why would a radio receiver need anything more than that single wave? Because — as you'll prove for yourself in the game right below — a single shadow has a blind spot: it can't tell which way the wheel is spinning. In a radio that matters a lot. A radio looks at a slice of stations around the one you pick, and slows them all down (chapter 3 shows how). After that, a station a little above your pick spins one way and a station a little below it spins the other way: the spinning direction is the only thing that tells them apart. To cure that blind spot, we also watch the dot move sideways: left, right, left, right.
Below, the same arrow spins. Its height is traced to the right in yellow, like before. Its sideways position is traced downward, in green:
The green curve is the same kind of wave, just turned on its side and shifted by a quarter turn. When the arrow points straight right, the green trace is at its maximum and the yellow one is at zero. A quarter turn later it's the other way round. This sideways wave has its own name, cosine, but it isn't really a different thing: it's the second shadow of the same wheel.
So here's an important shift in thinking. A sine wave isn't really a wiggly line. It's a shadow of a circle. The circle is the real thing, and each wave is one view of it. You'll see why this matters in a minute.
A game: which way is it spinning?
Here's a wheel hidden under a cover. It's spinning either counter-clockwise (↺) or clockwise (↻), and your job is to tell which, using only its shadows. Start with just the green one.
Try a few rounds with one shadow. You'll find you're just guessing, and you'll stay at about 50% no matter how carefully you watch. That's not because you aren't paying attention: a wheel spinning ↺ and one spinning ↻ cast exactly the same sideways shadow. Both arrows sweep from the right edge to the left edge and back at the same pace. The only difference is whether they go over the top or under the bottom on the way, and the sideways shadow can't see "up" or "down".
Now turn on the second shadow. Suddenly it's easy: watch the moment green hits its far right, then see whether yellow goes up next (↺) or down next (↻). You'll get it right every time.
Arrows can be added
Why do we need more than one arrow in a radio? Two reasons: first, real sounds and digital data have sharp corners and rich shapes that a single sine wave can't draw; second, dozens of stations share the air at the same time, and your antenna wire only ever feels their sum. Before we can build the machine in chapter 4 that pulls one station out of that sum, let's see how arrows add together to build any wave — starting with the flat-topped wave from the beginning of this page.
Start with one arrow, then attach a second, smaller arrow to its tip. The second arrow spins at its own speed, carried along by the first, like a moon going around a planet that goes around a sun. Now watch the height of the very last tip:
Predict: the second arrow below spins 3 times as fast and is a third as long. With it added, what happens to the tops of the wave?
- They get taller and pointier
- They get flatter: the wave starts to look squarer
- Nothing changes at the tops
Set the second arrow's length to 0 and you get the plain sine wave from before. Bring it back and the wave develops bumps: the small fast arrow rides on top of the big slow one. The yellow wave is literally the sum of two sine waves, the height of arrow one plus the height of arrow two.
Now look again at the opening animation. It used four arrows: speeds 1, 3, 5 and 7, each shorter than the last (1, 1/3, 1/5, 1/7). Every extra arrow squares off the wave a little more. With enough arrows, you could draw any shape you like, a square wave, a heartbeat, your voice.
Turn that around and you get one of the most important ideas in all of science and engineering: any signal can be taken apart into spinning arrows. A chord on a piano is a few arrows. The noise of a crowd is millions of them. And the airwaves over New York City right now are an enormous pile of spinning arrows, from radio stations, phones, airplanes and Wi-Fi routers, all added together in the same air.
A wave is the shadow of an arrow spinning in a circle. Any signal is a sum of such arrows, and a radio station is one fast arrow whose speed carries the music.
Why can't one shadow tell the direction?
- Some names first (they're explained properly in Writing it down, below): θ, the Greek letter theta, is an angle; cos θ is the sideways shadow of an arrow at that angle and sin θ its height.
- A wheel turning counter-clockwise has, at some moment, its dot at angle θ: sideways cos θ, height sin θ.
- The same wheel turning clockwise at the same speed is, at that moment, at angle −θ.
- Its sideways shadow is cos(−θ), which equals cos θ: exactly the same as the other wheel's, at every moment.
- Its height is sin(−θ) = −sin θ: the opposite of the other wheel's.
- So the sideways shadow alone can't see the direction, and the height shadow can. A radio records both, I and Q, for exactly this.
Where it breaks
Arrows can draw any shape, but a sharp corner never comes out exactly. With the opening animation's four arrows (lengths 1, 1/3, 1/5, 1/7), the flat top sits at 0.785 and the wave overshoots next to each jump, to 0.930: 9.2% of the jump. With 50 arrows the bump gets narrower but not lower: still 9.0% (both computed by this chapter's checking script). That overshoot is why a sharp edge in a signal always needs many fast arrows, and why filters (chapter 6) and pulse shapes (chapter 21) are made smooth.
Taking a signal apart into its arrows is called the Fourier transform, and chapter 4 builds a machine that does it.
So what is a radio station?
A radio station is one arrow, spinning extremely fast. When you tune to 98.7 FM, you're asking for the arrow that turns 98.7 million times per second. That's the station's frequency. Every station in the city has its own speed, and that's how they share the same air without colliding: a receiver can pick out "the arrow turning 98.7 million times per second" and ignore all the others.
A word on units: hertz (Hz) is one turn per second, a kilohertz (kHz) is a thousand, a megahertz (MHz) a million, a gigahertz (GHz) a billion. "98.7 FM" is short for 98.7 MHz.
But an arrow spinning at a perfectly steady speed carries no information, just one steady tone. So where's the music?
On FM ("frequency modulation"), the music is put into tiny changes in the arrow's speed. When the music pushes up, the arrow spins a little faster; when it pulls down, a little slower. Below, the pink line is the music, and it's controlling how fast the arrow turns:
Look at the yellow wave: its height never changes. All its peaks are equally tall. But the peaks bunch together while the music is high and spread apart while it's low. The sound is hidden entirely in the spacing. Set the slider to 0 and the wave becomes perfectly regular: a station with silence on it.
So now we can say exactly what an FM radio has to do:
- Out of all the arrows in the air, find the one spinning near 98.7 million turns per second, and throw away everything else.
- Measure how its speed changes, moment by moment. That speed, going up and down, is the music.
Every chapter that follows is a piece of that machine.
Writing it down
Only now, after you've seen it, here's how people write this down. Every symbol below is something you already watched move. The colors match the animations.
- A: the arrow's length, the amplitude.
- f: turns per second, the frequency.
- t: time, in seconds. So f·t is "how many turns so far".
- 2π: converts turns into an angle. Mathematicians measure angles by the distance walked along a circle of radius 1. One full trip around is 2π ≈ 6.28 steps, so one turn = 2π. (This unit is called the radian.)
- φ (the Greek letter "phi"): where the dot started, the phase.
- sin: "take the height". Its partner cos means "take the sideways position", the green shadow.
That's it. The intimidating-looking formula just says: an arrow of length A, turning f times per second, that started at angle φ; give me its height at time t.
Check yourself
A wheel turns 3 times per second. How many peaks does its shadow draw in one second?
Three. Each turn draws exactly one wave, so the frequency of the wave is the turning speed of the wheel: 3 Hz.
You start the wheel a quarter turn (90°) earlier. What happens to the sine wave?
It becomes a cosine: the same wave, shifted left by a quarter of a wave. Sine and cosine are one wheel's two shadows, a quarter turn apart.
Why couldn't you win the game with only the sideways (green) shadow?
A wheel and its mirror image cast the same sideways shadow: both go right-left-right at the same pace, one over the top and one under the bottom. The sideways shadow can't see up or down. (In symbols: cos(−θ) = cos(θ).) The height shadow can, so with both you always know.
On FM, where is the music: in the height of the wave, or somewhere else?
Somewhere else: in the spacing of the peaks, i.e. in how the arrow's spinning speed changes over time. The height stays constant. (AM radio does the opposite: steady speed, changing height.)
Last updated