RTL-SDR FM Receiver: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
No edit summary
Line 57: Line 57:


[[File:RTL_SDR_FM_basic_scanner_plots.png|500px]]
[[File:RTL_SDR_FM_basic_scanner_plots.png|500px]]
==FM Demodulator==

Revision as of 16:15, 18 May 2024

RTL-SDR Based FM Receiver

This tutorial describes how to receive broadcast commercial radio stations transmitting Frequency Modulated (FM) signals using the RTL-SDR receiver. The following hardware is needed for this tutorial:

  • RTL-SDR Receiver
  • VHF Antenna

Please connect the antenna to the RTL-SDR, and plug the RTL-SDR into the USB port on your computer.

Configure the RTL-SDR

Add the Soapy RTLSDR Source block to the flowgraph. Soapy [1] is a SDR support library which interfaces with different SDR hardware.

RTL SDR FM add rtlsdr block.png


The receiver needs to be configured with a proper sampling rate, center frequency and gain value. The RTL-SDR supports multiple sampling rates but in this tutorial the maximum sampling rate of 2.048 MHz is chosen. Update the samp_rate variable with the value 2048000:

RTL SDR FM set samp rate.png


RTL-SDR source block still has an undefined freq. The freq variable needs to be given a frequency associated with a radio station. This tutorial uses the frequency allocations within the United State of America, therefore you will need to modify them according to the allocation for your country. Within the USA, the smallest frequency of a radio station is 87.9 MHz and the largest frequency is 107.9 MHz [2], and each channel is separated by 200 kHz.

Add the QT GUI Range block into the flowgraph. The properties need to be changed in order to incorporate the frequency allocations for broadcast FM.

Open the properties and give it the name freq and the start frequency of 87.9 MHz, the stop frequency of 107.9 MHz and a step of 200 kHz:

RTL SDR FM qt gui range properties.png


The freq variable within the Soapy RTLSDR Source block is now defined. The flowgraph should look like the following:

RTL SDR FM flowgraph with qt gui range.png


Open the Soapy RTLSDR Source block properties. Navigate to the RF Options and enter True for AGC.

RTL SDR FM set AGC.png

Add Time & Frequency Plots

Drag in a QT GUI Time Sink and QT GUI Frequency Sink. Enable the auto-scaling in the QT GUI Time Sink block:

RTL SDR FM time sink autoscale.png


Open the QT GUI Frequency Sink and enter freq as the Center Frequency (Hz):

RTL SDR FM freq sink center freq.png


Connect the QT GUI Time Sink and QT GUI Freq Sink blocks:

RTL SDR FM basic scanner flowgraph.png


Run the flowgraph. A time plot and frequency plot will be displayed. This simple flowgraph represents a basic tuner application, such that dragging the slider bar or entering a frequency manually will retune the RTL-SDR and start producing sampled data.

RTL SDR FM basic scanner plots.png

FM Demodulator