CONTENTS
CHAPTER 10

Seeing the spectrum

4 MIN READ

An SDR gives you a stream of millions of IQ samples per second. Staring at those numbers tells you nothing. To see what's happening, you need to turn "how the signal changes over time" into "which frequencies are present." That conversion is the Fourier transform, and the pictures it produces, the spectrum and the waterfall, are how RF people actually look at the world.

Concept deep dive: the Fourier transform

Play a chord on a piano. Your ear hears one combined sound, but a trained musician can name the three notes in it. The Fourier transform does this mathematically for any signal: it takes a wave that changes over time and tells you how much of each frequency it contains.

The intuition: for each candidate frequency, the transform multiplies your signal by a test wave at that frequency and adds up the result. If the signal contains that frequency, the products line up and the sum is large. If not, they wander randomly and mostly cancel. Do this for every frequency and you get a list of "how much of each frequency," which is the spectrum.

Computers use an efficient algorithm called the FFT (fast Fourier transform), published by Cooley and Tukey in 1965. It's one of the most important algorithms ever written, and it's why real-time spectrum analysis on cheap hardware is possible at all.

Two trade-offs come built in. If you feed the FFT N samples taken at a sample rate fs, the frequency resolution is fs / N. Want to tell apart two signals 1 kHz apart in a 10 MHz capture? You need at least 10,000 samples, which is 1 millisecond of data. Finer frequency detail requires a longer look, and a longer look blurs anything that changed during it. You can't have perfect time and frequency resolution at once. This isn't a hardware limit; it's math.

The spectrum plot

A spectrum plot (or PSD, power spectral density) shows frequency left to right and power (in dB) up and down. Signals show up as bumps above the noise floor. A narrow spike might be a simple carrier or a narrow voice radio; a wide flat-topped block might be Wi-Fi or a video link.

The waterfall

A single spectrum is a snapshot. Stack many in a row, color-coding power, and scroll them over time, and you get a waterfall or spectrogram: frequency across, time down, color for strength. It's the most useful single view in RF.

  frequency ->
  |   ||        ##            -              |   time
  |   ||        ##                  -        |    |
  |   ||                    -                |    v
  |   ||        ##                     -     |
  |   ||        ##         -                 |
  |   ||                          -          |
  |   ||        ##     -                     |
     constant    push-to-   frequency-hopping
     carrier     talk bursts    link

A sketch of a waterfall. A constant signal is a vertical stripe. A push-to-talk radio shows up as bursts. A frequency-hopping link is a scatter of short dashes that, to a trained eye, forms a recognizable pattern.

Experienced signals analysts can glance at a waterfall and say "that's a DMR (Digital Mobile Radio) handset," "that's a drone control link hopping," "that's a jammer sweeping." They're recognizing shapes: bandwidth, duration, hopping rhythm, how the energy is distributed. Hold onto that thought. If a human can recognize signals from a picture, a neural network trained on enough pictures might do it too. That's the basic idea behind much of the machine learning in Chapter 13.

Detection: deciding something is there

Before you can classify a signal, you need to notice it. The simplest method is energy detection: estimate the noise floor, and flag any time-frequency region that rises a set amount above it. It's crude but works on anything. It struggles when signals are faint, overlapping, very short, or spread out (like the spread-spectrum signals from Chapter 8). Smarter detectors look for structure, like the repeating patterns that every digital signal contains, to catch signals that energy detection misses.

The data problem

Here's the uncomfortable math. A sensor capturing 50 MHz of spectrum with complex samples produces 50 million IQ pairs per second. At 16 bits per number, that's about 200 megabytes per second, or over 700 gigabytes per hour, from one sensor. You can't send that over a tactical radio link, and no human can watch it.

That is the core engineering reason why "process at the edge" (on the sensor itself) matters so much. Instead of shipping raw samples, a sensor can detect, classify, and summarize locally and send just "QPSK signal, 433 MHz, 25 kHz wide, looks like drone telemetry, strength −92 dBm, at 14:03:21." That's a few hundred bytes. The same problem shows up in archives: an organization sitting on terabytes of old recordings faces it without the deadline, and the same detect-and-classify software can work through them.

Common confusion

A waterfall's colors are relative. The same signal can look bright or dim depending on the display's color scale and averaging settings. Comparing two screenshots from different tools or settings can be misleading. Always check the dB scale.

Key takeaways

The Fourier transform turns a signal over time into its frequency content, and the FFT makes that fast. A spectrum plot shows power versus frequency; a waterfall stacks spectra over time and is the main way people recognize signals by eye. Detection finds signals above the noise; classification identifies them. Raw RF data is enormous, so useful sensors process it locally and send summaries.