Set up a software-defined FM radio
ActivitiesProjects
Connect a receive-only USB radio and use software to tune and play an ordinary FM broadcast.
Plug a receive-only USB dongle and an antenna into a computer, open receiver software, tune a local broadcast FM station, and you can hear live audio decoded entirely in code. One low-cost way to start grew out of a discovery around 2010 that inexpensive DVB-T television dongles containing the RTL2832U chip could stream raw I/Q radio samples—paired measurements capturing a signal's amplitude and phase—over USB for software to process. Inside that dongle, the RTL2832U serves as the 8-bit analog-to-digital converter and USB controller, while a paired RF tuner chip—such as an R820T, R828D, or E4000—selects the radio frequency range and determines which frequencies the receiver can cover.
Tuning in with desktop receiver software
A software-defined receiver is not plug-and-play. Expect to unzip archives, install software, move and copy files, and learn a new interface before you hear a broadcast. Once the dongle is set up, desktop receiver programs provide the fastest path to a working FM radio.
In SDR++ on Windows, you select RTL-SDR as the source, start the receiver, tune using the frequency control or by clicking directly within the spectrum display, adjust source gain, and pick a demodulation mode from the Radio menu. Other applications expose different controls: in HDSDR, listening to typical wideband broadcast FM involves tuning to a station, choosing FM mode, adjusting the FM bandwidth, and selecting a 192,000 Hz output sampling rate—a setting specific to HDSDR rather than a universal audio-sink requirement.
Inside the wideband FM signal chain
Moving from a ready-made desktop app to building your own receiver chain means working directly with the stages that turn digitized radio samples into sound. In GNU Radio's wideband FM receiver block, complex downconverted baseband samples—the radio signal shifted down from its carrier frequency to near zero—go in and floating-point audio comes out. Between input and output, the block runs quadrature FM demodulation, passes the signal through a decimating FIR audio filter (which filters the audio while reducing its sample rate), and applies FM de-emphasis. The block defaults to a 75-microsecond de-emphasis constant—used for broadcast FM in the United States and South Korea—whereas broadcasts elsewhere use 50 microseconds. Within the block, the output audio rate equals the input quadrature rate divided by an integer audio-decimation factor.
USB throughput sets another boundary when choosing rates. Typical RTL-SDR hardware supports sample-rate ranges of 230–300 kHz and 900 kHz–3.2 MHz, though higher rates—especially above 2.4 MHz—can drop samples over USB. Picking a rate such as 2 million samples per second stays below that threshold on those dongles, though other software radios have different limits.
Antennas, gain, and isolating hardware issues
If a newly configured receiver produces only noise, check the antenna connections and gain early before troubleshooting the software decoder. The RTL-SDR Blog guide recommends placing its dipole antenna high and outdoors in good weather, and notes that poor indoor reception or a disconnected stock-antenna connection can weaken or block stations. Gain also needs attention. Some applications, including SDR#, start with RF gain at zero, leaving signals buried until you raise it. Automatic gain adjusts to incoming signals so the 8-bit converter's range is used without saturating it, whereas manual gain holds a constant setting; the available gain steps depend on the receiver.
On Linux, you can check whether the dongle captures samples before troubleshooting FM audio playback by running:
```bash rtl_sdr /tmp/recording.iq -s 2e6 -f 100e6 -n 1e6 ```
That command records one million I/Q samples centered at 100 MHz at two million samples per second, testing raw capture rather than audible demodulation. If it succeeds with `sudo` but fails as an ordinary user, the problem points to udev permissions; if the device is not found even with elevated privileges, Linux may not be seeing the dongle at all.
