LANDON MELLO

Mechanical Engineer



DART

Distributed Aperture RF Tracker


I have always been interested in radio direction finding, but with most advanced RFDF products being prohibitively expensive, it always seemed out of reach for me. Then I came across another open source project (https://panoradio-sdr.de/tdoa-transmitter-localization-with-rtl-sdrs/) which got me thinking, if I could figure out a way to get a synchronized clock on distributed RTL-SDR dongles I would be able to do successful TDOA RFDF without the need for a known transmitter. This increases the capability of a system immensely by allowing the system to maintain timing lock without needing to tune to a known transmitter making the collection of bursty signals significantly easier.


TDOA (time difference of arrival) works off a pretty simple idea. Radio travels at the speed of light, so a signal reaches a receiver that's closer a tiny bit before one that's farther away. If two receivers hear the same signal and you know exactly when each one heard it, the difference in arrival time tells you the difference in distance to the transmitter. That doesn't give you a single point, it gives you a curve where the transmitter could be. Add a third receiver and you get another curve, and at the point they cross is your transmitter!


The catch is the timing. Light covers about 30 cm every nanosecond, so 1 µs of clock error is already around 300 m of position error. Every receiver needs to agree on what time it is down to tens of nanoseconds, and that's the hard part, especially on cheap hardware. With expensive SDRs they often allow for a direct GPS CLK in to discipline the internal oscillator, however RTL-SDRs don’t1. To get around this, I decided to try and inject the GPS PPS (Pulse Per Second) signal directly into the RF path, while this might sound stupid, it has some advantages. First by using PPS instead of some GPS derived clock it allows for the use of extremely cheap GPS modules, in addition by injecting directly into the RF path it avoids any oddities in the async USB data transfer process.


1 (side note, while the v3 and up modules do have clk in, it requires a 2.4 MHz signal and has some other limitations)


Due to how critical an accurate clock is for TDOA. A lot of the beginning dev time for this project revolved around testing this PPS injection pipeline and getting it as accurate as possible.


GPS timing RF path struggles


 ┌──────────────┐
 │              │
 │ Wideband     ├──────────────────────────────────┐
 │ Discone      │                                  │
 └──────────────┘                                  │
                                                   │
                                                   │
                                                   ▼
 ┌──────────────┐                           ┌──────────────┐       ┌──────────────┐
 │              │                           │              │       │              │
 │ 1pps GPS CLK ├────{-60dB Attenuation}───►│ Resistive    ├──────►│ RTL-SDR v3   │
 │              │                           │ Combiner     │       │              │
 └──────────────┘                           └──────────────┘       └──────────────┘

Getting the GPS PPS signal into the IQ stream took some thought, the PPS pin runs on a 3.3V logic level, which is huge for RF standards (around +23 dBm into 50 Ω, while the RTL-SDR frontend is only rated for +10 dBm). The solution for this is an attenuator on the PPS line before the resistive combiner: about 59 dB of resistive pad plus the combiner's 6 dB puts the pulse at roughly −42 dBm at the SDR, well clear of the frontend limit while still sticking far above the noise. The level does matter though. The timestamp is taken where the pulse first reaches 50% of its peak, interpolated between samples, so if the peak clips and flattens out that 50% point moves, and with it the timestamp.


Laptop running GPS software beside an RTL-SDR, PPS injector board and GPS module during bench testing
GPS PPS injection bench bed test

power envelope
5 Second Timing Sample with Pulse Shape

Software on each node keeps a rolling 30 second buffer of IQ while time stamping every PPS pulse, the end result is an extremely accurate shared clock across multiple independent nodes, allowing for TDOA on 30 dollar SDRs without needing a reference transmitter! The one catch is that the click fades out above about 100 MHz. So when listening above 70 MHz, each station hops down to 70 MHz every 30 seconds or so (randomized by ±10 s), catches a single click, and hops back, keeping time in between from its measured sample rate.


Getting data back without any infrastructure


One of my design ideas with DART is that I wanted to avoid the use of existing infrastructure when at all possible, this means I needed a way to communicate with the nodes without using something like Wi-Fi or cellular, the somewhat obvious choice for this is LoRa, with the downside being the extremely low bandwidth of a LoRa link, (around 120 B/s at higher spreading factors) so the entire system is made to limit the amount of data sent over the wire. Collect requests going out specify the frequency, bandwidth, window time, and global second + sample offset, so the nodes only return the minimum amount of raw IQ required.


Even with compression sending raw IQ over a slow Reticulum link still takes a while, around 10 seconds per node. Unfortunately this is just a limit of the infrastructure but it is more than good enough for my own use cases.


Node hardware


Inside a DART node, showing the RTL-SDR, Raspberry Pi and Pi hat
Inside a DART node

PartCost
RTL-SDR Blog V3$34.95
Heltec WiFi LoRa 32 V3 (RNode)$29.97
Raspberry Pi 3 A+$25.00
Wideband Discone antenna$10
Tripod (6.5 ft light stand)$14.90
GPS module (NEO-M8N clone)$14.00
Attenuator & Resistive Combiner PCB$6.00
PI Breakout Board PCB$11.42
microSD card$8.00
XT60 panel connector$0.80
Battery$22.50
Total (priced parts)~$176.68

Each node runs on a Raspberry Pi 3 A+ giving a whopping 512 MB of RAM to play with! (This is the main limiting factor for DVR length! A rolling 30 second buffer of IQ already takes up around 300 MB) However they are only 25 bucks, which with the current price of compute hardware is hard to beat! Each node also has a Heltec V3 running RNode for comms along with an RTL-SDR v3 and a GT-U7 (Chinese NEO-M8N GPS clone)


A custom Pi Hat PCB provides a 5V 3A power supply, battery ADC, and an environmental sensor, and was one of the more complicated pieces of hardware for this project. For the power supply it was essential to design around low EMF, given that it would be right next to the recording SDR, and efficiency due to the battery powered deployable nature of the project.


Custom DART Pi hat mounted on a Raspberry Pi 3 A+
Custom Pi hat mounted on the Raspberry Pi

Schematic of the DART Pi PSU and breakout hat
Pi PSU & Breakout Hat schematic (click for full PDF)

On the topic of battery power, the nodes can take anywhere from 8 to 17V, meaning they can run on either the 18650 packs from my existing STINGRAY project or from custom 4S LiFePO4 batteries made specifically for this project.


Enclosure & Antenna


Each node has a 3D printed case designed for outdoor use with all the I/O at the base for water resistance. Between the SDR, LoRa transceiver, and the Pi the insides tend to get toasty, so a big focus on the case was maximizing airflow while still providing some protection from the elements.


DART node in its 3D printed enclosure on a stand
Node in its 3D printed enclosure

The antenna for the nodes was talked about in a previous blog post HERE but is a wideband discone made for between 150 to 1600 MHz with the express goal of being as low cost as possible.


DART node and discone antenna on a mast, decorated with tinsel
Node and discone antenna, festively decorated

Main hardware


Laptop running DART on a hilltop during a LoRa range test
LoRa range test

The hardware for the main operating station is split into two. The first is an identical RF chain to the nodes, Wideband discone to resistive combiner to an RTL-SDR on the laptop. This allows main to be used as its own TDOA source for solutions meaning at minimum only 2 nodes are required to get a location fix.


Main station GPS module and PPS injector board with combiner and 60 dB attenuator in a 3D printed enclosure
Main's GPS + PPS combiner

The second part of the hardware is another RTL-SDR attached to a simple wideband antenna that feeds the survey and classifier program [coming soon], two RF paths are used here to both keep the TDOA path the same as that on the nodes and allow the survey program to have full control to sweep and dwell on its own schedule.


Main software


Main runs on the operator laptop and is the brain of the whole system. It holds the GPS timing lock on its own dongle, keeps its own IQ ring buffer like the nodes do, and shows a waterfall of the operator band so you can actually see what's going on.


DART main station software showing node status, waterfall, TDOA results and survey panel
Main station software (click for full size)

When something interesting shows up, either on the waterfall, from main's burst detector, or from a survey event, clicking it sets up a collect. Main sends the time window and frequency out over LoRa, each node pulls that slice of iq out of its 30 second buffer, compresses it, and sends it back.


Once the IQ is back, main cross-correlates every pair of stations to get the time differences, using the PPS timestamps to line everything up on the same clock.


Preliminary Results


From bench testing listening to a 90.1 MHz FM broadcast station with the two stations about 6 m apart. Over 18 collects, the timing error between the stations came out to 306 ns rms, which is about 92 m of range difference error. My goal for the system is anything under 300 m, so this is already well inside it. The PPS edges themselves are timed to about 53–60 ns rms from expected. Overall I am extremely satisfied with the result given the extremly low cost hardware.


Status


DART is still a work in progress. A follow-up page covering the software and results is coming soon.