HOPE XII: Time Travel with Software Defined Radio

It’s easy to dismiss radio as little more than background noise while we drive.  At worst you might even think it’s just another method for advertisers to peddle their wares. But in reality it’s a snapshot of the culture of a particular time and place; a record of what was in the news, what music was popular, what the weather was like, basically what life was like. If it was important enough to be worth the expense and complexity of broadcasting it on the radio, it’s probably worth keeping for future reference.

But radio is fleeting, a 24/7 stream of content that’s never exactly the same twice. Yet while we obsessively document music and video, nobody’s bothering to record radio. You can easily hop online and watch a TV show that originally aired 50 years ago, but good luck finding a recording of what your local radio station was broadcasting last week. All that information, that rich tapestry of life, is gone and there’s nothing we can do about it.

Or can we? At HOPE XII, Thomas Witherspoon gave a talk called “Creating a Radio Time Machine: Software-Defined Radios and Time-Shifted Recordings”, an overview of the work he’s been doing recording and cataloging the broadcast radio spectrum. He demonstrated how anyone can use low cost SDR hardware to record, and later play back, whole chunks of the AM and shortwave bands. Rather than an audio file containing a single radio station, the method he describes allows you to interactively tune in to different stations and explore the airwaves as if it were live.

Modern Take on a Classic Technique

You might think that such radio trickery is a product of modern hardware and software, but in fact the methods Thomas and his group of radio archivists use have considerably more retro beginnings. As far back as the 1980’s DXers, radio hobbyists that look specifically for distant signals, found that if they connected the intermediate frequency (IF) output of their radio to a VCR they could capture whatever their antenna was picking up for later analysis. When the tape was played back through the antenna port of the radio, they could tune to individual frequencies and search for hard to hear signals.

Of course the utility of this method wasn’t limited to just weak signals. It allowed radio operators to do things that would otherwise be impossible, like going back and listening to different news broadcasts that were aired at the same time. A few DXers realized there was a potential historical value to such recordings, and some of these early tapes were saved and wound up becoming part of the collection Thomas has been building and offering up as a podcast.

The modern version of this technique replaces the AM or shortwave receiver with any one of a number of affordable SDR devices, and the VCR has become a piece of software that can dump the SDR’s output to a file. This file can then be loaded up in a compatible SDR interface program, such as HDSDR, in place of an actual radio.

Storing History

Thomas envisions a future where researchers will be able to sit down at a kiosk and browse through the radio broadcasts from a given time and place, the same way a microfilm machine is used to look at a newspaper from decades past. But while making these recordings is now cheaper and easier than ever before, there are still logistical issues that need to be solved before that can happen. Chief among them: how do you store it all?

Thomas mentions that a single day’s recording of the AM broadcast band will result in roughly 1 TB of data. Potentially some compression scheme could be developed which would scan the recordings to isolate the viable signals and delete the rest. Another approach would be a sort of ring buffer arrangement, where the system only retains the last few days of recordings unless the user commits them to long-term storage. If something deemed worthy of future study occurs, the ring buffer could be moved to permanent storage so the event as well as the preceding time could be preserved for historical purposes.

Until then, Thomas and his team will keep on recording during noteworthy events. As an example, they made extensive spectrum recordings during the 2016 US Presidential elections, believing it will be a moment future generations will likely want to have as much information on as possible.

Ham-designed Gear Used in Thailand Cave Rescue

Unless you live in a cave, you’ve probably heard a little about the thirteen people — mostly children — trapped in the Tham Luang Nang Non cave in Thailand. What you may have missed, though, is the hacker/ham radio connection. The British Cave Rescue Council (BCRC) was asked for their expert help. [Rick Stanton], [John Volanthen] and [Rob Harper] answered the call. They were equipped with HeyPhones. The HeyPhone is a 17-year-old design from [John Hey, G3TDZ]. Sadly, [G3TDZ] is now a silent key (ham radio parlance for deceased) so he didn’t get to see his design play a role in this high-profile rescue, although it has apparently been a part of many others in the past.

The HeyPhone is actually considered obsolete but is still in service with some teams. The radio uses USB (upper sideband, not universal serial bus) at 87 kHz. The low frequency can penetrate deep into the ground using either induction loop antennas like the older Molephone, or — more commonly — with electrodes injecting RF energy directly into the ground.

You can find a very detailed article about the radio from 2001 if you want more details. The system is somewhat dated, but apparently works well and that’s what counts.

What we find interesting is that in today’s world, people take wireless communications for granted and don’t realize that cell phones don’t work underground or in the face of widespread disasters. We would imagine most Hackaday readers know how cell phone towers use “cellular reuse” to support more than a handful of phones. Ask some non-technical friend if they know how a cell phone works and you’ll be surprised how few people understand this. Ham radio operators and hackers are vital to building and deploying specialized radio systems in times of disaster or — in this case — where people need rescuing from an odd environment.

We were glad to see a nod to some hacker gear in the popular press. But we almost wish there had been more reporting on the volunteer divers and their hacked radio gear.

We’ve talked about VLF radios before, but not for caving. Of course, in the old days, all radio was VLF and it might have even had some unintended consequences.

These Capacitors are a Cheap Gimmick

If you search through an electrical engineering textbook, you probably aren’t going to find the phrase “gimmick capacitor” but every old ham radio operator knows about them. They come in handy when you need a very small capacitor of unknown value. For example, if you are trying to balance the stray capacitance in a circuit, you might not know exactly what value you need, but you know it won’t be very much. That’s when you want a gimmick capacitor.

A gimmick capacitor is made by taking two strands of insulated wire and twisting them together; the length and the tightness of the twist determine the capacitance. Tightening or loosening the twist, or trimming some of the wire off, makes it tunable.

These are most commonly found in RF equipment or high-speed logic because of the small capacitance involved — usually about 1 to 2 pF per inch of twist or so. The thicker the insulation, the less capacitance you’ll get, so it is common to use magnet wire or something else with a thin insulating layer. You can take this one step further and decrease the spacing by stripping down one wire as long as it isn’t going to touch anything else.

Obviously, the insulation needs to be good enough for the voltage on them, an important consideration in tube circuits, for instance. But other than that, a gimmick capacitor is a straightforward tool to have in your box of design tricks. Can we take this further?

PC Board Gimmicks

You might wonder if the technique can be applied to PC boards. The answer is yes — sort of. Unless you use very thin boards, or thin layers in multilayer boards, it takes a lot of board real estate to get even a small capacitance. Also, typical PCB material can change over time with moisture or other effects. Practically, unless you use special board material and thicknesses, it isn’t very useful. There has been work on laying out linear capacitors on IC substrates using fractals, but we aren’t sure how that would translate into a PCB layout. We’ve seen lots of other PC trace components like antennas, shunt resistors, inductors, and transmission lines.

You can see I made a gimmick just bigger than two inches. I then went looking for something around the lab that had the ability to measure such a small capacitor. The component tester couldn’t. I have a nice digital multimeter that has a special plug-in for measuring capacitors and thermocouples, but it wouldn’t reliably read anything under 25 pF. I was thinking about building up a circuit to test when I realized I should search Hackaday first.

Hackaday Saves the Day

[Jonathan’s] capacitance meter is just what I needed and I even threw it out to an Arduino that was already hooked up using the Arduino Create web interface, so that was easy. I actually used the newer “Mark II” code but it works the same for the low values I was measuring. I calibrated with a garden variety 10 pF ceramic. It probably isn’t that accurate, but I really only wanted to see the change more than the actual value, so I thought this was sufficient.

The two inch (call it 6 cm) gimmick reads about 5.5 pF. That might not be totally accurate, but I was expecting about 4.5 pF and the magnet wire insulation is quite thin, so it’s in the right ballpark. Let’s take it as a baseline to measure change. I then cut about 1.5 cm of the capacitor away — about 25% — and the reading became 3.7 pF. Another centimeter brought it down to 2.6 pF.

Of course, hand-wound pitch isn’t very accurate, nor were my cuts or measurements, but that works out to just around 1 pF per centimeter. Obviously, your results are going to depend on your winding and the kind of wire you use. [Harry Lythall] suggests folding a single piece of wire, holding it with pliers, and twisting. Then you cut the loop when you are done.

That’s a Wrap

It is easy to forget that any two conductors near each other will have capacitance. Another common makeshift capacitor is a length of coax with connections at one end and open at the other. RG-8, for example, is about 30 pF per foot of cable. There’s even an online calculator that will tell you how much coax you need for any given value. This varies by coax type, of course, so remember to cut a little long and trim!

The next time you need a small adjustable capacitor — especially in a lab setting — don’t forget about the gimmick. Be sure to experiment with different kinds of wire if you are trying for larger values. We’ve seen this trick used in RF filters. In the case of the gimmick, you may be thinking small, but when you are really looking for high voltage capacitors, you can make those, too.

Free E-Book: Software Defined Radio for Engineers

We really like when a vendor finds a great book on a topic — probably one they care about — and makes it available for free. Analog Devices does this regularly and one you should probably have a look at is Software Defined Radio for Engineers. The book goes for $100 or so on Amazon, and while a digital copy has pluses and minuses, it is hard to beat the $0 price.

The book by [Travis F. Collins], [Robin Getz], [Di Pu], and [Alexander M. Wyglinski] covers a range of topics in 11 chapters. There’s also a website with more information including video lectures and projects forthcoming that appear to use the Pluto SDR. We have a Pluto and have been meaning to write more about it including the hack to make it think it has a better RF chip inside. The hack may not result in meeting all the device specs, but it does work to increase the frequency range and bandwidth. However, the book isn’t tied to a specific piece of hardware.

Make no mistake, the book is a college-level textbook for engineers, so it isn’t going to go easy on the math. So if the equation below bugs you, this might not be the book you start with:

[Di Pu] and [Alexander Wyglinksi] have an older similar book, and it looks like the lecture videos are based on that book (see video below). The projects section on the website doesn’t appear to have any actual projects in it yet, although there are a couple of placeholders.

We have enjoyed Analog’s book selections in the past including The Scientist and Engineer’s Guide to Digital Signal Processing which is a classic. If you visit their library you’ll find lots of books along with classes and videos, too.

If you want something a bit less academic, there’s always [Ossmann’s] videos. Or if you’d rather just use an SDR, there are plenty of inexpensive options to choose from.

A cleverly concealed magnetic loop

We’re sure all radio amateurs must have encountered the problem faced by [Alexandre Grimberg PY1AHD] frequently enough that they nod their heads sagely. There you are, relaxing in the sun on the lounger next to the crystal-blue pool, and you fancy working a bit of DX. But the sheer horror of it all, a tower, rotator, and HF Yagi would ruin the aesthetic, so what can be done?

[Alexandre]’s solution is simple and elegant: conceal a circular magnetic loop antenna beneath the rim of a circular plastic poolside table. Construction is the usual copper pipe with a co-axial coupling loop and a large air-gapped variable capacitor, and tuning comes via a long plastic rod that emerges as a discreet knob on the opposite side of the table. It has a 10 MHz to 30 MHz bandwidth, and should provide a decent antenna for such a small space. We can’t help some concern about how easy to access that capacitor is, on these antennas there is induced a surprisingly large RF voltage across its vanes, and anyone unwary enough to sit at the table to enjoy a poolside drink might suffer a nasty RF burn to the knee. Perhaps we’d go for a remotely tuned model instead, for this reason.

[Alexandre] has many unusual loop projects under his belt, as well as producing commercial loops. Most interesting to us on his YouTube feed is this one with a capacitor formed from co-axial soft drink cans.

Thanks [Geekabit] for the tip.

Homebrew SDR Ham Radio in 9 parts

It used to be homebrew ham gear meant something simple. A couple of active devices that could send CW. Maybe a receiver with a VFO. But only the most advanced builders could tackle a wide range SSB transceiver. Today, that goal is still not trivial, but it is way easier due to specialty ICs, ready access to high-speed digital signal processing, and advances in software-defined radio techniques. [Charlie Morris] decided to build an SSB rig that incorporated these technologies and he shared the whole process from design to operation in a series of nine videos. You can see the first one below.

The NE612 is a child of the popular NE602 chip, which contains a Gilbert-cell mixer, and an oscillator that makes building a receiver much easier than it has been in the past. The chips are set up as direct conversion receivers and feed a Teensy which does the digital signal processing on the recovered audio.

One nice thing about the Teensy is that it has an accessory audio board that makes it easy to connect audio inputs and outputs to the device. The DSP does work on the received audio and the transmit audio. There’s also a few other stock parts like an LCD, an encoder, a speaker, a microphone, and things like that. There’s also a digital clock generator (an Si5351), but again all that is common off-the-shelf stuff these days.

The first video is a bit introductory, but by video number two he jumps right into the wiring and why all the circuits work. By the third video, the receiver is actually working and it sounds pretty good. Because the receiver needs I and Q outputs, there are actually two NE612s operating out of phase with each other.

Posted

Temperature Sensor and Simple Oscillator Make a Value-Added HF Beacon

Sometimes the best projects are the simple, quick hits. Easily designed, fast to build, and bonus points for working right the first time. Such projects very often lead to bigger and better things, which appears to be where this low-power temperature beacon is heading.

In the world of ham radio, beacon stations are transmitters that generally operate unattended from a known location, usually at limited power (QRP). Intended for use by other hams to determine propagation conditions, most beacons just transmit the operator’s call sign, sometimes at varying power levels. Any ham that can receive the signal will know there’s a propagation path between the beacon and the receiver, which helps in making contacts. The beacon that [Dave Richards (AA7EE)] built is not a ham beacon, at least not yet; operating at 13.56 MHz, it takes advantage of FCC Part 15 regulations regarding low-power transmissions rather than the Part 97 rules for amateur radio. The circuit is very simple — a one-transistor Colpitts oscillator with no power amplifier, and thus very limited range. But as an added twist, the oscillator is keyed by an ATtiny13 hooked to an LM335 temperature sensor, sending out the Celsius and Fahrenheit temperature in Morse every 30 seconds or so. The circuit is executed in Manhattan style, which looks great and leaves plenty of room for expansion. [Dave] mentions adding a power amp and a low-pass filter to get rid of harmonics and make it legal in the ham bands.

Beacons are just one of the ways for hams to get on the air without talking. Another fun way to analyze propagation is WSPR, which is little like an IoT beacon.

 

SDR IF Experiments

The R820T tuner IC is used in the popular Airspy software defined radio (SDR) as well as many of the inexpensive RTL SDR dongles. [TLeconte] did some experiments on intermediate frequency (IF) configuration of the chip, and you’ll find his results interesting.

Using 5 million samples per second and the device’s real mode, the tests look at a what comes out when the IC reads a noise source. There are two registers that set the IF parameters, but the tests show the effects these registers have in precise terms.

According to the post, there are three things you can set:

  • Coarse IF filter bandwidth : narrow/mid/large
  • Manual fine tuning IF filter bandwidth from 0 (large) to 15 (narrow)
  • High pass filter frequency from 0 (high) to 15 (low)

Some of the settings don’t make sense — at least at the 5 MHz sample rate — because of aliasing. However, it is instructive to see what each setting does. [TLeconte] uses Octave to visualize the data.

If you want to know more about SDR in general, we have something to get you started. If you want to do your own testing, consider using GNU Radio.

An SSB Transceiver Using Only One Device? Surely not!

There are a multiplicity of transmission modes both new and old at the disposal of a radio amateur, but the leader of the pack is still single-sideband or SSB. An SSB transmitter emits the barest minimum of RF spectrum required to reconstitute an audio signal, only half of the mixer product between the audio and the RF carrier, and with the carrier removed. This makes SSB the most efficient of the analog voice modes, but at the expense of a complex piece of circuitry to generate it by analog means. Nevertheless, radio amateurs have produced some elegant designs for SSB transmitters, and this one for the 80m band from [VK3AJG] is a rather nice example even if it isn’t up-to-the-minute. What makes it rather special is that it relies on only one type of device, every one of its transistors is a BC547.

In design terms, it follows the lead set by other simple amateur transmitters, in that it has a 6 MHz crystal filter with a mixer at either end of it that switch roles on transmit or receive. It doesn’t use the bidirectional amplifiers popularised by VU2ESE’s Bitx design, instead, it selects transmit or receive using a set of diode switches. The power amplifier stretches the single-device ethos to the limit, by having multiple BC547s in parallel to deliver about half a watt.

While this transmitter specifies BC547s, it’s fair to say that many other devices could be substituted for this rather aged one. Radio amateurs have a tendency to stick with what they know and cling to obsolete devices, but within the appropriate specs a given bipolar transistor is very similar to any other bipolar transistor. Whatever device you use though, this design is simple enough that you don’t need to be a genius to build one.

Via [G4USP]. Thanks [2ftg] for the tip.

Review: LimeSDR Mini Software Defined Radio Transceiver

It’s fair to say that software-defined radio represents the most significant advance in affordable radio equipment that we have seen over the last decade or so. Moving signal processing from purpose-built analogue hardware into the realm of software has opened up so many exciting possibilities in terms of what can be done both with more traditional modes of radio communication and with newer ones made possible only by the new technology.

It’s also fair to say that radio enthusiasts seeking a high-performance SDR would also have to be prepared with a hefty bank balance, as some of the components required to deliver software defined radios have been rather expensive. Thus the budget end of the market has been the preserve of radios using the limited baseband bandwidth of an existing analogue interface such as a computer sound card, or of happy accidents in driver hacking such as the discovery that the cheap and now-ubiquitous RTL2832 chipset digital TV receivers could function as an SDR receiver. Transmitting has been, and still is, more expensive.

The LimeSDR Mini's chunky USB stick form factor.
The LimeSDR Mini’s chunky USB stick form factor.

A new generation of budget SDRs, as typified by today’s subject the LimeSDR Mini, have brought down the price of transmitting. This is the latest addition to the LimeSDR range of products, an SDR transceiver and FPGA development board in a USB stick format that uses the same Lime Microsystems LMS7002M at its heart as the existing LimeSDR USB, but with a lower specification. Chief among the changes are that there is only one receive and one transmit channel to the USB’s two each, the bandwidth of 30.72 MHz is halved, and the lower-end frequency range jumps from 100 kHz to 10 MHz. The most interesting lower figure associated with the Mini though is its price, with the early birds snapping it up for $99 — half that of its predecessor. (It’s now available on Kickstarter for $139.)

We were lucky enough to be sent a pre-production LimeSDR Mini for review by the MyriadRF folks — in fact we were sent two of them, after the first one proved to have a hardware fault suspected to involve a solder joint issue. We feel their pain, after all who hasn’t had pre-production boards springing faults at inconvenient moments!

The laser cut case that will be available for your Mini.
The laser cut case that will be available for your Mini.

The board itself is a PCB about 33 mm x 70 mm (1,25 ” x 2.75 “), with a USB 3 plug at one end and a pair of SMA sockets at the other, one for receive and the other for transmit. The integrated circuits are all on the top of the board, and though they have included footprints screening cans, they are not populated. There is a single multicolor status LED between the SMA sockets. It’s worth mentioning that there will be a laser-cut plastic case for the board, which is probably worth getting as it feels somewhat vulnerable as it is. Along with as the board, they supplied a pair of little rubber duck antennas for the 870 MHz band.

A couple of little 870MHz antennas are supplied with the board.
A couple of little 870MHz antennas are supplied with the board.

It is evident that the LimeSDR Mini is an extremely capable board that in the hands of a real expert in SDR and FPGA programming could have the potential for great things. It is also evident that as your Hackaday scribe I am not an SDR extreme power user. Despite holding an amateur radio licence for over three decades I have been a relative late comer to the world of SDRs, and have not progressed beyond RTL-SDRs or simple devices using a PC soundcard for baseband. But it’s probable that while many SDR programming experts will indeed buy this board, the majority of its customers will be similarly newcomers to the art. Therefore this review will be biased towards the SDR non-guru, the long-time radio enthusiast considering the LimeSDR Mini as a first transceiver.

The first task with any SDR will always be to install whatever software is required on the host machine. Here that means a copy of the latest Ubuntu distribution, but Windows and MacOS machines are also supported. There is a handy page of instructions, which in the case of Ubuntu require you to add a PPA repository for the drivers, then install the Lime Suite software and the SoapySDR abstraction layer. It is this final package that makes the LimeSDR an interesting prospect, by offloading software compatibility onto the widely used abstraction layer they hope to avoid some of the pain seen with other products.

Testing it Out

A British DAB digital radio multiplex, as seen through a LimeSDR.
A British DAB digital radio multiplex, as seen through a LimeSDR.

Once the drivers have been installed, it is time to decide which software to run first. The Lime Suite GUI supplied with the driver packages will be the first port of call to test the board, but I am told that the version in the PPA at the time of writing with the Mini not having been released is written with the LimeSDR USB in mind and therefore I should use GQRX. In the case of Ubuntu this can be installed through the graphical software installer, but as luck would have it I already had it on my machine. Selecting “other” as my SDR and pasting driver=lime,soapy=0 as my device string soon had the familiar interface in front of me, and with a suitable antenna in no time I was listening to my local BBC Radio 4 FM transmitter.

A simple FM transmitter, derived from this example by [Gyaresu].
A simple FM transmitter, derived from this example by [Gyaresu].

Two things are immediately apparent to an owner of an RTL-SDR, gone are the huge number of spurious peaks, and the noise floor is much lower. Reading GQRX with different front ends is an inexact and even slightly meaningless way to take measurements, but with all-automatic AGC, the RTL has a -60 dB noise floor and the LimeSDR has one below -90 dB. Just looking at the FM band, there are stations poking out of the noise that simply don’t exist with the RTL. It’s unsurprising that a piece of dedicated SDR hardware would outperform a $10 TV stick running a hack to make it an SDR, but if you are an RTL-SDR user then you will be pleasantly surprised by the Mini when you see it in action.

Fortunately there is nothing too sensitive controlled by this 433MHz waveform that I have just revealed to the world.
Fortunately there is nothing too sensitive controlled by this 433MHz waveform that I have just revealed to the world.

To have a board like the Mini and simply use it for GQRX is to waste so much of its potential. We are promised a library of tailor-made applications via Snappy Ubuntu Core, but this isn’t yet available pre-release. Your next stop would then probably follow ours with GNU Radio, and in particular its drag-and-drop GUI application GNU Radio Companion. This is nuts-and-bolts homebrew radio for the SDR age, just as analogue radio amateur homebrewers would solder their own radios while others bought shiny transceivers, so the SDR homebrewer can build their own devices using GNU Radio. It’s a package that’s beyond the scope of this review, but as an example when playing with the Mini it was fairly easy to cobble together a little GNU Radio receiver to pull in and extract the signals from a 433 MHz remote control transmitter we have in the house, and then regurgitate them through a 433MHz Baofeng antenna for the satisfying sight of a table lamp at the other end of the bench turning itself on. The Mini itself doesn’t intrude into this process beyond simply doing what it’s told once its communication with GNU Radio has been achieved, so experimenting further into the mechanics of decoding the bitstream itself became a matter of working through a set of tutorials and burning the midnight oil. The steep learning curve is amply offset by the satisfaction of playing with the instant gratification of radio building blocks without the pain of reworking any intricate soldering.

In transmission terms the maximum 100 mW output power is fairly modest for anyone used to amateur radio. But given that many applications for this board will involve the likes of sniffing for and responding to more local devices rather than seeking contacts from other continents this is something likely only to trouble radio amateurs without the wherewithal for a power amplifier. The twin antenna connectors will be somewhat annoying if you are used to a single one on a simplex transceiver, unless you are transmitting and receiving on different frequencies, of course.

A review of an SDR over a short period can not hope to cover all its many capabilities, so this one has been an impression of the Mini as a platform for experimentation and learning about how to use an SDR transceiver. But in just the time that it has been on the bench here, the Mini has opened a significant new vista over an RTL-SDR, and given a few months in which to play with GNU Radio will I am sure provide both some useful radio applications and a seriously interesting learning process.

Previous SDRs at the budget end of the market such as the HackRF have all remained somewhat expensive purchases, ones a typical radio amateur might have had difficulty concealing from their partner in the family accounts. With a price point that is almost edging into the realm of an impulse purchase, the Mini has the potential to become an SDR transceiver for everyone. If you have been holding back because of the price, maybe it’s time you gave it a look.