B200-B205mini FM Receiver

From GNU Radio
Jump to navigation Jump to search

B200B/B205mini FM Receiver

This tutorial describes how to receive broadcast commercial radio stations transmitting Frequency Modulated (FM) signals using the Ettus Research B200/B205 mini receiver. The following hardware is needed for this tutorial:

  • B200/B205mini Receiver
  • VHF Antenna

It is likely (but not guaranteed) that the Ettus Research B210/B200 will also work for this tutorial with no other modifications.

Please connect the antenna to the B200/B205mini, and plug the B200/B205 mini into the USB port on your computer.

Configure the USRP

Start by dragging in the UHD: USRP Source block into the flowgraph. UHD is a library for communicating with the family of USRP radio receivers and the USRP Source simplifies and abstracts communication with all of the USRP radio receivers using a single block.

B200mini FM Receiver add usrp block.png

First change the samp_rate to 2 MHz, which will be the sampling rate for the USRP.

B200mini FM Receiver change samp rate.png

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 [1], and each channel is separated by 200 kHz. A QT GUI Range block will be used to define different radio station frequencies for the USRP. Drag in a QT GUI Range block, 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:

B200mini FM Receiver qt gui range freq.png

Open the UHD: USRP Source block properties. Navigate to RF Options and then enter freq as the Center Frequency. Enable AGC.

B200mini FM Receiver usrp freq.png

The flowgraph should now look like the following. Note that the USRP block displays an updated sampling rate of 2 MHz, a center frequency of 87.9 MHz ,and an enabled AGC:

B200mini FM Receiver updated freq samp rate.png

Add Time & Frequency Plots

Drag and drop a QT Time Sink and QT GUI Sink block into the flowgraph. Open the properties of the QT GUI Time Sink and enable autoscaling:

B200mini FM Receiver time sink autoscale.png

Open the properties of the QT GUI Freq Sink and enter freq as the Center Frequency:

B200mini FM Receiver freq sink freq.png

The flowgraph should now look like the following:

B200mini FM Receiver basic scanner flowgraph.png

Run the flowgraph. A display window will show the time domain and frequency domain plots. The spectrum can be scanned by sliding the bar at the top of the screen or by entering a frequency manually.

B200mini FM Receiver basic scanner output.png

FM Demodulator

Drag in an Audio Source block. Open the properties. Note there are only a couple of options to select for the audio sampling rate. Select 48 kHz.

B200mini FM Receiver audio sink samp rate.png

The flowgraph should now look like the following:

B200mini FM Receiver flowgraph audio sink.png

The question is how to get from the output of the USRP which is complex IQ sampled at 2 MHz to the input of the Audio Sink block which requires real samples at a sampling rate of 48 kHz? The rest of this tutorial will work backwards from the Audio Sink and establishing blocks and connections towards the output of the USRP.

The next block that is needed is the an FM demodulator. Drag in the WBFM Receive block, which takes complex IQ as an input, demodulates the FM thereby producing real output samples and also performs a decimation.

B200mini FM Receiver flowgraph wbfm receive.png

Recall from earlier in the tutorial that FM broadcast channels allocated 200 kHz, therefore we want to process as much of that bandwidth as possible with the FM demodulator. The WBFM Receive block can perform a decimation from a larger input sampling rate to the required Audio Sink input of 48 kHz. The decimation factor must be an integer, and 4*48 kHz = 192 kHz which is close to the total bandwidth of the frequency allocation.

Open the WBFM Receive properties and enter in the quadrature rate of 192 kHz and an audio decimation of 4. Note that the quadrature rate must be evenly divisible by the audio decimation factor, and that the audio decimation must be an integer.

B200mini FM Receiver wbfm receive properties.png

The flowgraph should now look like the following:

B200mini FM Receiver flowgraph wbfm set properties.png