The default source block settings in the spectrometer_w_cal.grc GNU Radio program are for the Airspy R2 SDR. If a different SDR is used, changes in the source block, the samp_rate Variable block, and sometimes the freq Variable block may be needed. The settings for some common SDR’s used with the horn telescopes are described below.
Why
freqsometimes has to change too. The program records a bandsamp_ratewide, centred onfreq. The default isfreq1419 MHz withsamp_rate10e6, which records 1414 – 1424 MHz — the hydrogen line at 1420.4058 MHz sits comfortably inside. Narrow the sample rate without moving the centre and the band shrinks around 1419 MHz, and at some point the line falls off the end of it. Halve the sample rate to 2.4e6 and the band becomes 1417.8 – 1420.2 MHz: the line is 0.2 MHz outside it and the telescope records no hydrogen at all. That is why the RTL-SDR and Pluto settings below changefreqas well, and the Airspy Mini and Lime do not.A quick check: your band runs from
freq - samp_rate/2tofreq + samp_rate/2, and 1420.4058 MHz needs to be inside it with room to spare at both ends.
Options:
-
The Airspy Mini
-
Source block: the
osmocom Sourceblock is used; the “Device Arguments” are the same as for the Airspy R2. So no changes are needed in this block. -
samp_rate Variableblock: This block is in the upper left corner of the canvas in thespectrometer_w_cal.grcprogram next to theOptionsblock. Open this block by double-clicking it. Change the “Value” to “6e6” (which is 6 MHz).

freq Variableblock: leave it at 1419e6. The band becomes 1416 – 1422 MHz, which still holds the line.
-
-
RTL-SDR
Two changes are needed, not one. The
samp_ratechange alone moves the hydrogen line out of the recorded band — see the box above. Make both.- Source block: Change the “Device Argument” to: rtl=0, bias=1, pack=0, as shown:

samp_rate Variableblock: This block is in the upper left corner of the canvas in thespectrometer_w_cal.grcprogram next to theOptionsblock. Open this block by double-clicking it. Change the “Value” to “2.4e6” (which is 2.4 MHz).

-
freq Variableblock: next tosamp_rate. Change the “Value” to “1420.5e6”. The band then runs 1419.3 – 1421.7 MHz, with the line at 1420.4058 MHz inside it. -
Two things to know about an RTL-SDR at this sample rate, neither of them a fault you can fix in the flowgraph:
- The band is only ±230 km/s wide, so the faint wings of the line are clipped and there is no stretch of it guaranteed free of Galactic hydrogen to fit a baseline on. Maps are good for seeing where the Milky Way is; treat the intensity numbers as indicative.
- Every SDR of this type puts a spurious tone at the exact centre of
its band, which at this tuning is 0.1 MHz from the line.
map_h1_hdf5_drift.pyblanks a 120 kHz strip there, and because the strip is next to the line that costs roughly a quarter of the measured intensity. The comment onDC_MASK_HALFWIDTH_HZin that script has the measured figures and the two ways to improve it.
-
Lime
- Source block: the Lime uses the
LimeSDR Source (RX)block. Click on theosmocomblock and hit Delete. Then in the search window on the tool bar at the top, type “LimeSDR”. Grab theLimeSDR Source (RX)and drag it onto the canvas where theosmocomblock was. Then one-by-one connect the blue output of theLimeSDR Source (RX)block to theStream to Vectorblock, the threeDelayblocks, and theComplex to Real. The final connections should look like the following:

- Open the
LimeSDR Source (RX)block (by double-clicking) and set the following:- On the “General” tab, set “RF frequency” to “freq” [without the quotes], and check that the “Sample rate” is “samp_rate” [without the quotes]. “Channel” should be on “A” [without the quotes].

- The settings on the Channel A tab should be as shown:

-
samp_rate Variableblock: The Lime SDR can use a 10 MHz samp_rate; so no change is needed in this block. Leavefreqat 1419e6 as well — the band stays 1414 – 1424 MHz, the same as the Airspy R2. -
Install gr-limesdr - software needed for the Lime SDR block to run in GNU Radio.
-
Open a terminal window.
-
Type and enter:
sudo apt install gr-limesdr
-
-
POWER TO THE LNA: The Lime SDR does not power the LNA. Therefore, it is necessary to provide +5 V dc external power to the LNA through a bias-T, which is connected to the LNA and Lime as shown:

An SMA female to female connector/adapter will be needed for the connection from the bias-T to the LNA cable, as indicated in the diagram above.
- Source block: the Lime uses the
-
ADALM-PLUTO
-
The Adalm-Pluto SDR uses the
PlutoSDRSourceblock that will need to be installed. Complete the steps outlined here to install this block on your computer. -
Source block: the Adalm-Pluto uses the
PlutoSDRSourceblock. Click on theosmocomblock and hit Delete. Then in the search window on the tool bar at the top, type “PlutoSDR”. Grab thePlutoSDRSourceand drag it onto the canvas where theosmocomblock was. Then one-by-one connect the blue output of thePlutoSDRSourceblock to theStream to Vectorblock, the threeDelayblocks, and theComplex to Real. The final connections should look like the following:

- Open the
PlutoSDRSourceblock (by double-clicking) and set the following:- On the “General” tab, set the values as shown:

-
The
samp_rateandfreqVariable blocks should be set to the values shown —samp_rate3.5e6 andfreq1421e6. Both are needed: 3.5 MHz around the default 1419 MHz would stop at 1420.75 MHz and clip the line. At 1421 MHz the band is 1419.25 – 1422.75 MHz.

-
POWER TO THE LNA: The Pluto SDR does not power the LNA. Therefore, it is necessary to provide +5 V dc external power to the LNA through a bias-T, which is connected to the LNA and Pluto SDR as shown:

An SMA female to female connector/adapter will be needed for the connection from the bias-T to the LNA cable, as indicated in the diagram above.
-
Cable Hardware: A coaxial cable is needed to connect the LNA to the SDR. Typically a 10 ft length is adequate, but any length up to 25 ft should work fine.