How to Monitor Airplane Traffic with a Raspberry Pi
Tags: raspberrypi, diy, docker, monitoring
Published: 2020-11-05 09:21:15

Let me start by saying I love airplanes. Since a little boy, I always stared at the sky in amazement and spent every waking minute researching everything about airplanes. Fast forward to 1996, I joined the US Air Force...as an electrician on you guessed it...Airplanes (F-15's to be exact).

My passion for airplanes oozes from my pores so much so that my young son is now just as enthused as I am and can call out planes now by sound. Recently, we witnessed the giant Russian Antonov land at a small airfield by our house in Switzerland.

![Antonov AN-124](https://dev-to-uploads.s3.amazonaws.com/i/3vtq4yh81lz51ucjx83k.png)

## Background about FlightAware Projects

It's not the first time I start a FlightAware RaspberryPi project. Actually, according to FlightAware, I first created my first deployment back in 2017. [Alex Ellis piqued my interest](https://blog.alexellis.io/track-flights-with-rpi/) when he began making his FlightAware project back in 2017.

What has changed from 2017 till now? It is light years easier to get up and running today. Previously, I was building Docker images and trying to make everything work with the USB Tuner and the container and loading data, etc. It was fascinating to do but very time-consuming.

FlightAware has streamlined the onboarding process considerably and made the PiAware software dead simple. Start by downloading a pre-made Raspberry Pi image with all the drivers, configuration, and getting you up and running in the time it takes to burn the PiAware image on an SD Card.

![Ground Station](https://dev-to-uploads.s3.amazonaws.com/i/rgs4zt7dhfbzedp3n2fs.png)
![Raspberry Pi](https://dev-to-uploads.s3.amazonaws.com/i/fs7vasbjrflc8hxvfsvu.png)
![DVB-T+FM+DAB-and-antenna](https://dev-to-uploads.s3.amazonaws.com/i/1kt6prujggj9yqoy7yt3.png)

# How does PiAware Work?

Aircraft determine their position using satellite (GNSS) and then broadcasts this signal outwards as an open/un-encrypted radio signal called [ADS-B](https://en.wikipedia.org/wiki/Automatic_dependent_surveillance_%E2%80%93_broadcast)  (Automatic dependent surveillance-broadcast). This signal is used by other aircraft and ground radar stations to determine where each plane is positioned and helps avoid navigation and collision avoidance.

FlightAware is the largest flight tracking and data platform. FlightAware collects flight information, metrics, and visualizes this information with its powerful live flight tracking map.  Well, FlightAware collects data from Air Traffic control systems and also crowdsources the info. Here is where our Raspberry Pi comes into the picture.

By creating a Raspberry Pi FlightAware ground station, we collect the ADS-B metrics and send the metrics to FlightAware for visualization. The Raspberry Pi runs the FlightAware software, which provides the interfaces to a USB TV tuner responsible for recording the ADS-B signals.
What you need to get started

The PiAware team provides a [bill of materials list](https://flightaware.com/adsb/piaware/build) to help you get started. You can either use your own Raspberry Pi and purchase a DVB-T (Digital Video Broadcasting - Terrestrial) USB tuner with a small antenna. Building the kit yourself will set you back about $45. If you opt for the more [expensive USB tuner and antenna](https://flightaware.com/adsb/prostick/), it will add $20-40 but significantly increase the range.

The process of getting started is simple.
1. Download the PiAware Raspberry Pi image
2. Copy the image to the SD Card
3. Add your configs so it can connect to your WiFi (Headless setup)
4. Start up the Raspberry PI and connect to the IP
5. Connect to FlightAware account
6. Start recording plane traffic

![PiAware Overview](https://dev-to-uploads.s3.amazonaws.com/i/dqsan3unghgrs8wshgsi.png)

## Benefits of being a FlightAware Feeder

![PiAware Map](https://dev-to-uploads.s3.amazonaws.com/i/8c1pmtze5jgohn8zto7g.png)

It is a cool project for the family to start tracking airplanes flying overhead, but you also contribute to the overall FlightAware project. Additionally, you receive a free [Enterprise Subscription worth $89](https://flightaware.com/commercial/premium/) per month to the FlightAware platform just for providing your data to FlightAware.
Every kid and sometimes parents in our neighborhood have found out about my Ground station and want to come to see. Fun for all!

You can view my Ground Station statistics here - [https://flightaware.com/adsb/stats/user/vegasbrianc](https://flightaware.com/adsb/stats/user/vegasbrianc) 
![FlightAware Stats](https://dev-to-uploads.s3.amazonaws.com/i/xbcbnrxqn75wt001e0om.png)

## Connect with me
Twitter - [idomyowntricks](https://twitter.com/idomyowntricks)