Mark Gilbert's Blog

Science and technology, served light and fluffy.

Stratoballoon Radio Details

Towards the end of our last podcast, I did a bit of hand-waving when it came to how we sent and received the test beacon data over the radio.  I quickly walked through the setup of the major pieces of software involved, but skipped over all of the details.  Today, I’ll be walking through those weeds.

On the transmission side, we have the second sample sketch available from the UKHAS site (link: ) running on the Arduino sending the test beacon data through the NTX2 transmitter.

On the receiving side, there are actually three pieces of software at work:

  1. SDR#, pronounced "SDR-sharp", which is used to pull the raw radio signals off of the NooElec receiver
  2. dl-fldigi, which is used to translate the audio signals back into data
  3. VB-Audio Virtual Cable, which as the name implies is a virtual audio cable between SDR# and dl-fldigi

When I first got the SDR in the mail, I didn’t try transmitting the test beacon data right away.  My first test was actually to get the base software installed and try tuning in a local radio station.  For that test, I found some extremely helpful comments on the Amazon page that I purchased it from.  Those instructions involved going to NooElec’s site, downloading the Zadig driver installer and SDR# from there.  I did, and was in very short order up and running.  Here are the exact steps I took:

  • Went to NooElec’s site, and the product page for the R820T SDR Receiver:
  • Went to Downloads, and downloaded the SDR# AutoInstaller
  • Extracted the downloader, and ran the Install.bat that came with it
  • Plugged in the USB stick. When Windows prompted me to install drivers, I cancelled it.  I can’t remember if it asked me to do this more than once, but if it did, I cancelled both attempts.
  • I ran Zadig.exe.  This is one of the EXEs that was installed to the /sdrsharp folder created by Install.bat.  It should have had WinUSB selected by default. I clicked "Install Drivers".  I closed Zadig when it finished.
  • I plugged in the antenna.
  • I ran SDR#.
  • To initially test it, I first selected "RTL-SDR / USB" from the drop down (my device), then clicked "Configure".

And configured it as follows:

I think the key things that I tweaked on this dialog were the Sample Rate and the RF Gain.

  • I clicked Close to return to the main screen.
  • I set the frequency to 107.7 MHz, a local rock station, checked "WFM" (Wide FM) and hit "Play". 


That worked – I could hear the radio station coming in fairly clearly, even in my basement, and I could then use the mouse wheel to change frequencies to other radio stations.  I could also change it manually.

Now that I had the receiver and SDR# working, it was time to try it out with the NTX2.  To decode the data, we would be using dl-fldigi, which was a free download.  While the source code is available off of Github, there are installers and binaries available off of the UKHAS site here:  Once that was installed, I fired it up.

I initially spent 15 minutes or so trying to figure out a way to feed the output of SDR# directly the input of dl-fldigi, but didn’t have any luck.  I began to wonder if I needed something else to bridge the gap.  I found yet another page on the UKHAS site that described just such a bridge: VB-Audio

After I installed this, I rebooted my machine, and then followed the rest of the instructions found here:

  • Go into Control Panel / Hardware and Sound / Sound / Recording
  • You should see an input called Virtual Audio Cable.  Click properties and rename it to SDR.


  • Click the "Listen" tab
  • Check the "Listen to This Device" checkbox


  • Close the dialog
  • Stop SDR# and under the Audio section select "[MME] CABLE Input (VB-Audio Virtual C".  (I also played around with the main settings, and ultimately landed on a Filter Type of "Blackman-Harris 7" and a Filter bandwidth of "2400".  I honestly don’t know how much of a difference this makes yet.)


  • I clicked start, but had to do a couple of things before I could hear the test beacon through my speakers:
    • I had to change the receiver from WFM mode to USB, or "Upper Side Band"


    • I had to position the red line just to the left of the signal, otherwise it wouldn’t work.


    • Even though the NTX2 reports that it was transmitting at 434.650 MHZ, I could only really pick up the signal if I tuned the receiver to 434.635 MHZ.
  • Next, I started dl-fldigi again.  I clicked Op Mode / RTTY / Custom / Audio / PortAudio / Capture, and selected "CABLE Output (VB-Audio Virtual" from the drop down.  I clicked Close to return to the main screen.


Before I could actually see the test beacon correctly, I had to be sure that dl-fldigi was configured to decode it.  The instructions for this are described in, and the actual configuration is done under Op Mode / RTTY / Custom / Modems:


Finally, once I had everything configured, I had to adjust where the two red "data" lines appeared in the waterfall trace by tuning SDRSharp.  Once I could see that, I could match the two red "tuning" lines with the data lines, and actually start seeing data appear in the data box.


I found a few different ways that the tuning lines and the data lines wouldn’t match up:

First, if the two in the latter were too far apart, they wouldn’t match up with the data lines in the waterfall trace.

To fix that, I needed to adjust the carrier shift (otherwise, I wouldn’t see the data coming through).



Second, if the red lines were lined up with the signal in the waterfall, I would only see gibberish in the data window.


To fix that, I simply clicked the left data line in the waterfall to force the tuning line to match it.  The other line would stay in lockstep, always the same distance away (as determined by the carrier shift).

Finally, I also found that as I tuned SDR# up or down, the data lines in dl-fldigi would slide left or right.  If I let the signal slide away from the SDR# band completely, it would disappear from the waterfall trace in dl-fldigi.  This is something I need to keep in mind if I have problems getting the data to come in properly when we were out in the field trying to track the balloon while it was in flight.

There you have it.  The basic setup for our transmission and receiving station.  We still have a long way to go to getting the NTX2 fully incorporated into the instrument cluster, but Katherine and I feel we at least have a good foundation now.


May 8, 2014 - Posted by | Science

Sorry, the comment form is closed at this time.

%d bloggers like this: