Software-defined radio
How software-defined radio digitizes radio signals and handles modulation, filtering and demodulation in software, with practical guidance on hardware, sampling, impairments and legal use.
What it is
A software-defined radio (SDR) is a radio system in which functions that were traditionally implemented in analog hardware, such as filtering, mixing, modulation and demodulation, are performed by software on a computer, embedded processor or FPGA. A minimal SDR consists of an antenna, a radio-frequency (RF) front end that amplifies, filters and converts the signal, analog-to-digital and digital-to-analog converters (ADC, DAC), and a digital processing platform. Changing from receiving FM radio to decoding aircraft transponders, satellite weather images or a custom protocol becomes a matter of loading different software, not building new circuits. Low-cost SDRs (from about 30 USD) have made radio experimentation widely accessible. They are used in wireless research and teaching, spectrum monitoring, radio astronomy, satellite reception, IoT and LoRa prototyping, radar and GNSS research, amateur radio and test equipment.
It answers questions such as: What signals are present in this band, and how strong are they? How can a new modulation scheme be tested on real hardware? Can this transmission be decoded and its quality measured? How does a communication algorithm perform over the air, compared with simulation (see MIMO-OFDM simulation)? SDR trades the performance of dedicated radios for flexibility.
Fundamentals
Architecture, I/Q signals and sampling
In the most common direct-conversion (zero-IF) receiver, the incoming RF signal passes through a low-noise amplifier and filter and is mixed with a local oscillator at the tuning frequency, shifting the band of interest to be centered at zero frequency. Two mixers using oscillator signals 90° apart produce the in-phase (I) and quadrature (Q) components, which together form a complex baseband signal s(t) = I(t) + jQ(t). Complex samples capture both amplitude and phase, and distinguish positive from negative frequency offsets, so the sample rate fs needed equals the bandwidth B (for real signals the Nyquist rate would be 2B). The ADC resolution sets the dynamic range: an ideal N-bit converter gives about 6.02N + 1.76 dB, so 8-bit devices give about 50 dB and 12-bit about 74 dB, which determines how weak a signal can be seen in the presence of strong ones. Transmitting reverses the chain: baseband samples go to the DAC, are upconverted by the mixer, and amplified.
Hardware choices
- RTL-SDR dongles: receive-only, about 24 to 1,700 MHz, up to roughly 2.4 MS/s with 8-bit samples; very cheap, ideal for learning, FM and aircraft (ADS-B at 1,090 MHz), weather satellites and spectrum monitoring.
- HackRF One: transmit and receive (half-duplex), 1 MHz to 6 GHz, up to 20 MS/s, 8-bit; versatile for experiments.
- ADALM-Pluto (PlutoSDR): full-duplex, about 325 MHz to 3.8 GHz, 12-bit, around 20 MHz bandwidth, good for education.
- USRP (Ettus Research), LimeSDR, BladeRF: higher performance and wider bandwidth (tens of MHz), multiple channels (MIMO), used in research, with FPGA processing options.
Selection depends on frequency range, instantaneous bandwidth, ADC bits, noise figure, transmit capability and the connection (USB 2 limits the sample rate; USB 3 or Ethernet allows more). The antenna and filters are as important as the SDR: a suitable antenna for the band, bandpass filters to reject strong out-of-band signals, and a low-noise amplifier when needed.
Software and signal processing
GNU Radio (with the graphical GNU Radio Companion) builds receivers and transmitters as flowgraphs of blocks, such as filters, resamplers, demodulators and sinks, in C++ and Python. Typical processing chain for reception: tune and set the sample rate and gain; filter and decimate to the signal bandwidth; compute a spectrum or waterfall with the FFT (see digital signal processing); demodulate (AM from the magnitude |s|, FM from the derivative of the phase, PSK and QAM with carrier and symbol timing recovery); decode bits and protocol frames. Relationships to remember: frequency resolution of an FFT is fs/N, and each decimation reduces the rate while improving signal-to-noise ratio for narrowband signals.
Impairments, performance issues and legal use
Real SDRs have imperfections. Frequency offset: crystal oscillators are accurate to a few to tens of parts per million (ppm), which at 1 GHz means kilohertz errors (1 ppm = 1 kHz), so receivers must estimate and correct carrier offset, and low-cost devices drift with temperature. DC spike at the center from the zero-IF mixer, avoided by tuning slightly off the signal. Overload and ADC clipping from strong nearby signals (FM broadcast, cellular) cause false signals and desensitization; reduce gain, add filters or attenuators. Dropped samples appear when the computer or USB link cannot keep up. Aliasing occurs if out-of-band signals are not filtered before sampling. Regulation is critical: receiving is generally permitted, but transmitting requires adherence to the rules of your country: use licensed amateur bands only with an amateur radio license, ISM bands within power and duty-cycle limits, or shielded setups with attenuators and dummy loads; never transmit on aviation, emergency, cellular, GNSS or other protected bands, because interference can endanger lives. Laws on intercepting and disclosing private communications vary, so decoding some transmissions can be illegal. Respect privacy and local regulations.
Typical applications and limits
Limits: low-cost devices have limited bandwidth, dynamic range and frequency stability; real-time processing of wide bandwidths needs strong computing or FPGAs; and latency makes software processing unsuitable for some tight protocols.
Basic operation
- Choose hardware and antenna. Match the SDR and antenna to the frequency, bandwidth and whether transmit is needed.
- Install drivers and software. Set up the SDR with GNU Radio, GQRX or a Python library.
- Tune and set the sample rate and gain. Avoid overload and keep samples from dropping.
- Observe the spectrum. View the FFT and waterfall, and locate the signal.
- Filter and decimate. Reduce to the signal bandwidth.
- Demodulate and decode. Apply the demodulator and recover bits or audio.
- Measure and calibrate. Check frequency offset, signal level and error rates.
- Collect the output. You obtain recorded I/Q data, spectra and decoded information; synchronization and impairment correction are covered in the video.
Good practice
- Receive first. Learn with receive-only tests before any transmission.
- Control gain. Avoid ADC overload from strong signals.
- Use proper filtering. Preselect the band to reject out-of-band signals.
- Calibrate frequency. Correct for oscillator offset.
- Record raw I/Q. Save data and settings for reproducible analysis.
- Transmit only legally. Obtain the required license, stay within permitted bands and power, test with dummy loads or shielded setups, never interfere with safety or emergency services, and respect privacy laws on intercepted communications.
Key terms
- I/Q samples — complex baseband samples carrying amplitude and phase.
- RF front end — the analog stage that amplifies, filters and converts the radio signal.
- Sample rate — the number of samples per second, which sets the observable bandwidth.
- Decimation — lowering the sample rate after filtering.
- Zero-IF (direct conversion) — a receiver design that converts the band directly to baseband.
- Dynamic range — the span between the weakest and strongest signals that can be handled.
- GNU Radio — an open-source toolkit for building signal-processing flowgraphs.
Video coming soon
About five minutes on Software-defined radio: how it works in detail, how the data is acquired, and how it is analyzed.
More in 4.5 Signal Processing, Control and Embedded Systems
