Tracking Aircraft with a Raspberry Pi and an SDR

DBK

LIFE MEMBER
Joined
Jan 9, 2013
Posts
18,663
Likes collected
51,372
Location
Plympton, Devon
Funster No
24,219
MH
PVC, Murvi Morocco
Exp
2013
SDRs (Software Defined Radios) can be bought for around £30 and connected to a PC and with a suitable antenna used to receive radio signals. I recently bought one to try and detect WSPR signals. WSPR (pronounced "whisper") are HF signals usually generated with very low power, sometimes just mW, and with the right equipment can be picked up thousands of miles away. Each signal gives the location of the transmitter. As you can probably guess from the absence of WSPR in this thread title I couldn't get it to work! I haven't given up and another bit of equipment arrives next week for a second try. While waiting I came across an interesting project which turned out to be amazingly simple and which gives amazing results. :) Take a look at this screenshot:

140520-3.jpg


The black dot near Plymouth is where I am and three aircraft are shown which have been picked up by my equipment and their positions plotted on the map. On the right you can see more than three aircraft listed. The ones not showing on the map are probably not broadcasting their positions, some don't. Sadly, this is not exactly the best time to be tracking aircraft, there are a distinct lack of them up there, but at least the screenshot shows it is working. :)

The equipment needed to make this happen is shown in this photograph.

IMG_20200514_103339.jpg


The red box is my old Raspberry Pi 2 and the black thing with the leads at each end is a NooElec NESDR Smart SDR bought for about £30 off Amazon. It is connected to the Pi with a USB extension cable as it didn't work for some reason when plugged in directly. I suspect the case prevented the SDR fitting all the way into the USB socket. This would be solvable with a craft knife but the USB cable works fine for now. The other end of the SDR is the coax cable going to a small whip antenna with a magnetic base.

The first step is to start with a working Pi with the Buster operating system installed. I won't go into how to set this up but you can buy a Pi with the OS already installed or alternatively download it and install it on the SD card with something like Win32DiskImager. However, a new program for creating Pi SD cards has recently been released called the Raspberry Pi Imager which I used for the first time for this project and it worked very well.

I run the Pi "headless" meaning it is not connected to a screen directly. The Pi logs into my wifi network and I access it using what's called SSH and a utility called PuTTY. A bit of Googling will soon find you descriptions of how to set up a Pi for headless running.

The software to make the magic with the aircraft happen comes from this website:


There are other ways to install PiAware but this way I found the simplest. Basically, using PuTTY you open up a command window on the Pi and then copy and paste line by line the commands shown in the website above. The first line is: (which I've edited to add a space between the // to prevent it showing as a URL)

wget https:/ /uk.flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_3.8.1_all.deb

Paste this in and press enter and after it has finished processing it you can enter the next line:

140520-2.jpg


And so on but finishing with this line:

sudo apt-get install dump1090-fa

Don't enter the dump978 line. This is because this is for a system running on 978MHz which is not used in Europe. Dump1090 is the specific software which runs the SDR at 1090MHz as used in Europe. You can enter the dump978 but you need a second SDR dongle as each can only run at one frequency at a time.

The really clever thing about this system is you don't have to do anything to make it work. You literally just turn the Pi on and it will automatically start listening for aircraft.

On the PiAware website above at stage 6 of the page it describes how you register on the FlightAware website. When you do this you need to have your Pi running and on the same wifi network as your PC. During the registration process FlightAware check for the presence of a suitable tracking device (your Pi) and if found creates an account. When all is working what you can see is as shown in the first screen shot above, your location and any aircraft in the area.

There is also a page where you can see your stats. I started this only yesterday afternoon and left it running overnight.

140520.jpg


It says it detected 47 aircraft today and 22 yesterday out to a maximum range of 150 to 200 miles although most were closer. This screenshot was taken about an hour ago and the total now is 59 for today. :)

The MH relevance is I can run this from our MH and this is what I did last night. The antenna is on the roof and the cable from it run through a skylight. The only snag was I couldn't get it to work when plugged into a USB socket in the van. This must be because the socket couldn't produce enough power for both the Pi and the SDR. I'll have a look at this in slower time. If I can get a 12 volt powered USB hub this might solve it but the moment because the van is on EHU I can run everything from a normal mains charger. It will be nice to go down to say Tarifa at the tip of Spain (where we were going this year) and see what is flying around the Straits of Gibraltar. :) Next year perhaps...
 
Last edited:
In this screenshot taken just now:

1589453514726.png


The "pink" aircraft is visible from here - I've just been out into the garden and spotted it to the north. Clicking on it gives more information. :)
 
Clicking on the same aircraft in the table on the right brings up a new page with more information about it. This one came from Dallas. :)

140520-4.jpg
 
Well done ..That all looks very hi tech .............all this aviation stuff goes over my head
It was very easy, all the clever programming has been done by other people, all I did was copy it. :)

Subscribers  do not see these advertisements

 
What is the difference between this and flight tracker 24? (Please keep it short to save your typing skills!)
I think the Flightradar 24 site does the same thing. The difference for me was to be able to set up the detection using my own Raspberry Pi. If anyone just wants to identify an aircraft going overhead Flightradar 24 is probably the easiest to use. :)

I should add some of the data Flightradar 24 shows comes from individuals running receivers and uploading stuff from their home.

 
Last edited:
Flightradar 24 publish their own instructions on how to make your own receiver. It looks easier than the system I used. I might give it a go and see how I get on. :)

 
I think the Flightradar 24 site does the same thing. The difference for me was to be able to set up the detection using my own Raspberry Pi. If anyone just wants to identify an aircraft going overhead Flightradar 24 is probably the easiest to use. :)

I should add some of the data Flightradar 24 shows comes from individuals running receivers and uploading stuff from their home.


With flight radar24 we can track any aircraft in the world, not only overhead. For example when OH's Sister is flying from Turkey to us in Poland we can see it get airborne from Mugla, see its ETA here and plan our car trip to pick her up accordingly.

All available on our laptop in MH via our telephone tether.

And Flight Radar 24 is free.

Your set-up looks very clever technically but does not meet my KISS criteria.

Geoff
 
You're absolutely right of course, you can get the same information for nothing off various websites. I also have an app, Marine Traffic, which does the same for ships. Useful for spotting your ferry. ?

But picking up radio signals from an aircraft over a hundred miles away is fun. :)

Subscribers  do not see these advertisements

 
I thought it was about time I gave an update on this project. 🙄 I've mounted a removable antenna on the back of the van. It's a purpose made antenna from Pimoroni for the 1090MHz frequency aircraft use in Europe.

A short length of stainless steel tube has been fixed to the bike rack by two stainless steel jubilee clips. This stays on permanently. The antenna is fitted the same way to a slightly smaller tube which slides down inside the fixed tube. The cable from the antenna is run into the van through a small side window. The antenna is removed for travelling of course.

IMG_20200712_155003.jpg


I've now added a pre-amp and filter to the set-up which seems to do a good job. It was bought from a small UK company called Uputronics.

This all works well at home and I can usually see aircraft out to about 200 miles but I was interested to try it somewhere else with clearer views of the horizon.

The opportunity arose this weekend when we visited Treloan campsite on the Roseland Peninsula where our pitch has a good view east and south.

IMG_20200711_133256.jpg


I had hoped for a clear view west, over the Atlantic, but there is a low hill in the way. 😞

But I'm still pleased with the performance. Aircraft visible to the east of Paris and south deep into the Bay of Biscay. Maximum range about 350 miles and over 100 aircraft at busy times.

Screenshot_20200712-154226_Chrome.jpg


I just need to find another site now with clear views west. 😉
 
Last edited:
I admire your skills John and am interested to know if your set-up will track military as well as civi craft so long as they are transmitting?
 
  • Like
Reactions: DBK
I admire your skills John and am interested to know if your set-up will track military as well as civi craft so long as they are transmitting?
Some where in the remote recess of time I think the answer given was that Military Aircraft use a different system.?
 
  • Like
Reactions: DBK
Some where in the remote recess of time I think the answer given was that Military Aircraft use a different system.?
I mainy use Freedar which does show many military flights of various nations, unfortunately not the F15's from Lakenheath we get overhead most days.
 
  • Like
Reactions: DBK
I admire your skills John and am interested to know if your set-up will track military as well as civi craft so long as they are transmitting?
Sadly, it only picks up a few military helecopters in my experience so far.

Subscribers  do not see these advertisements

 
We can see the SAR Helio`s, but they are run by Civies (Bristow?) out of Humberside Airport Now.
 
Hi DBK, I'm always interesting in SDR although my radios are just a couple of AOR broadband scanning receivers. Have you since got results for receiving WSPR signals and if so what antenna are you using?
 
Sadly, it only picks up a few military helecopters in my experience so far.
I don't understand the technicalities of the various tracking sites but for some reason some sites filter out militart traffic although it's hardly top secret info. I guess the Russians, Chinese & yanks can track everything regardless of signals being broadcast.
 
  • Like
Reactions: DBK
Hi DBK, I'm always interesting in SDR although my radios are just a couple of AOR broadband scanning receivers. Have you since got results for receiving WSPR signals and if so what antenna are you using?
Yes, I've had a play with WSPR and wrote something here about it which you might find with a search. But I haven't taken it much further but I'm planning to by using a Raspberry Pi to make it all MH friendly.

Here it is.

 
It's amazing what some of these tracking sites pick-up...................



1594574983197.png

Subscribers  do not see these advertisements

 

Attachments

  • 1594574892351.png
    1594574892351.png
    495.8 KB · Views: 42
  • Funny
Reactions: DBK
I run Pilotaware in my plane on a Pi (either 2 or 3, can’t remember). It needs a 2.1A USB socket which is powered off 12V battery.

I have recently upgraded the socket to 3A, but that wasn’t necessary for the Pi.
 
In this screenshot taken just now:

View attachment 387829

The "pink" aircraft is visible from here - I've just been out into the garden and spotted it to the north. Clicking on it gives more information. :)
Clicking on the screenshot and enlarging it look at the difference in indicated airspeed and true airspeed. If mind boggling when you get to that altitude.
 
  • Like
Reactions: DBK
Living near Lakenheath and Mildenhall US bases, if I did this tracking stuff I’d probably get a stinger lobbed down the signal path.
Phil
 
  • Funny
Reactions: DBK

Join us or log in to post a reply.

To join in you must be a member of MotorhomeFun

Join MotorhomeFun

Join us, it quick and easy!

Log in

Already a member? Log in here.

Latest journal entries

Back
Top