CONTENTS
Receivers and software-defined radio
For most of radio's history, a receiver was a box of analog circuits built to do one job: an FM radio decoded FM, a police scanner decoded its bands, a military intercept receiver did whatever its designers wired it for. Changing what it did meant building new hardware.
A software-defined radio (SDR) flips that around. The hardware does the minimum, which is catching the signal and turning it into numbers as early as possible. Everything else, including demodulation, filtering, decoding, and analysis, happens in software. Change the software and the same box becomes a different radio. This is the single biggest reason a small team can now build capable RF sensors from commercial parts, and it's the foundation every system in Part II builds on.
The receive chain, step by step
- Antenna. Catches the wave and produces a tiny voltage.
- Filter. Throws away frequencies far from what you care about, so huge out-of-band signals don't overwhelm the electronics.
- Low-noise amplifier (LNA). Boosts the signal while adding as little noise as possible.
- Mixer and local oscillator. Shifts the band of interest from its high RF frequency down to near zero. This is called downconversion (explained below).
- Analog-to-digital converter (ADC). Measures the voltage millions of times per second, turning the signal into a stream of numbers.
- Software. Everything else.
Why shift the frequency down?
To capture a signal digitally, you have to sample it fast enough. The rule (the Nyquist criterion) says you need to sample at least twice as fast as the highest frequency in what you're capturing, or the signal gets scrambled into false lower frequencies, an effect called aliasing. Sampling a 2.4 GHz signal directly would take a converter running at almost 5 billion samples per second. Those exist, but they're expensive and power-hungry, and they produce a flood of data.
The trick: you don't care about the carrier itself, only the information riding on it, which is maybe 20 MHz wide. So you mix the incoming signal with a locally generated wave (the local oscillator). Mixing two waves produces new waves at their sum and difference frequencies. Set the local oscillator to 2.4 GHz and the 2.4 GHz signal lands near 0 Hz, called baseband. Now you only need to sample fast enough to cover the 20 MHz of interesting content.
Tuning an SDR to a different frequency means changing the local oscillator. Turning the dial on an old analog radio did the same thing.
Concept deep dive: IQ samples, and why radio data is made of complex numbers
When you start working with SDR data, the first surprise is that every sample is a pair of numbers, called I and Q, often stored as a complex number
I + jQ. Here's why.After downconversion, a signal near baseband can be slightly above the local oscillator's frequency or slightly below it. With a single stream of real-valued samples, those two cases look identical: you can't tell +1 MHz from −1 MHz. You also can't directly see phase, which is where QPSK and QAM hide their data.
The fix is to mix the incoming signal with two copies of the local oscillator, one shifted by a quarter cycle (90°) from the other. You get two outputs: the in-phase part, I, and the quadrature part, Q (quadrature just means "90° apart"). Sample both. Each pair (I, Q) is a point on a plane, which is exactly the constellation plane from Chapter 8. The point's distance from the origin is the amplitude at that instant. Its angle is the phase. And the direction it rotates over time tells you whether the frequency is above or below the tuning point.
So an IQ stream is a recording of the wave's amplitude and phase over time, relative to the frequency you tuned to. Writing each pair as a complex number is a mathematical convenience: complex multiplication happens to describe rotation, so frequency shifts, filtering, and demodulation all become clean arithmetic. Nothing imaginary is transmitted; the physical wave is real. The complex number is a bookkeeping device.
One practical consequence: with complex IQ samples, a sample rate of 20 million samples per second covers a full 20 MHz of spectrum (from −10 to +10 MHz around the tuned frequency). This is why SDR specs quote "instantaneous bandwidth" roughly equal to the sample rate.
The free online book PySDR by Marc Lichtman has an excellent chapter on this with Python examples, if you want to go further.
What SDR hardware looks like
SDRs range from about $30 USB sticks to lab instruments costing tens of thousands of dollars. The specs that matter most for a sensor are:
- Tuning range: which frequencies it can reach at all. A cheap RTL-SDR dongle covers roughly 25 MHz to 1.7 GHz; mid-range devices commonly cover 70 MHz to 6 GHz.
- Instantaneous bandwidth: how wide a slice it can capture at once, set by the sample rate. A couple of megahertz for the cheapest dongles, tens of megahertz for mid-range, hundreds for high-end.
- Dynamic range: how well it can hear a weak signal right next to a strong one without being overwhelmed. Usually tied to the ADC's bit depth and the quality of its analog front end.
- Size, weight, and power: the military abbreviates this SWaP, or SWaP-C when cost is included. For a sensor strapped to a drone or left in a field on a battery, SWaP-C often matters more than raw performance.
A field sensor built for this job typically pairs a commercial SDR module with a small embedded computer in a ruggedized case. Built that way, a unit can weigh well under a kilogram and cost a few thousand dollars in parts. That's cheap enough to buy by the hundred, which changes how you use them (Chapter 11).
Common confusion
"Software-defined" doesn't mean "software only." You still need an antenna, filters, amplifiers, and a converter, and those analog parts set hard limits: an SDR can't hear frequencies outside its tuning range or capture more bandwidth than its sample rate allows. Software can do remarkable things with the samples, but it can't recover what the hardware never captured.
Key takeaways
A receiver filters, amplifies, shifts the signal down to baseband with a mixer and local oscillator, and digitizes it. A software-defined radio does as much as possible of the rest in software, so one piece of hardware can become many kinds of radio. Samples come as I/Q pairs that record amplitude and phase relative to the tuned frequency. Tuning range, instantaneous bandwidth, dynamic range, and SWaP-C are the hardware specs that matter.