Introduction: FlightRadar on a Raspberry Pi
Track nearby flights with your own Raspberry Pi and an awesome webinterface.
Step 1: Equipment List
For your personal flight tracker you need the following equipment:
- Raspberry Pi
- Micro SD Card with Raspbian
- Ethernet Cable or WiFi Dongle (Pi 3 has WiFi inbuilt)
- Power Adapter
- Mini DVB-T Digital TV USB Dongle
Recommended:
Step 2: Construction
- Connect the DVB-T Dongle to your Raspberry Pi via USB
- Connect the antenna to the DVB-T Dongle
- Set up the Raspberry Pi
How to set up the Raspberry Pi?
Step 3: Install Drivers for the DVB-T Dongle
- Install all required packages
sudo apt-get install git build-essential cmake libusb-1.0-0-dev screen - Clone the following git repository
git clone git://git.osmocom.org/rtl-sdr.git - Create a new folder in 'rtl-sdr'
cd ~/rtl-sdrmkdir build
Execute 'cmake' in 'rtl-sdr/build'
cd build
cmake ../ -DINSTALL_UDEV_RULES=ONCompile the driver
sudo make install
sudo ldconfigGo back to your home directory
cd ~Copy rules for the driver to avoid 'device not found' errors
sudo cp ./rtl-sdr/rtl-sdr.rules /etc/udev/rules.d/Create a configuration file to block TV-Signals
cd /etc/modprobe.d/
sudo nano rtlsdr.confPaste the following line at the end of the file
blacklist dvb_usb_rtl28xxuReboot the Raspberry Pi
sudo rebootCheck the functionallity of the Dongle
rtl_test -t
Example Response:
Found 1 device(s):0: Realtek, RTL2838UHIDIR, SN: 00000001Using device 0: Generic RTL2832U OEM Found Rafael Micro R820T tuner Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6 [R82XX] PLL not locked! Sampling at 2048000 S/s. No E4000 tuner found, aborting.
Step 4: Install the FlightRadar Software
- Clone the following git repository
git clone https://github.com/PoscherAlexander/dump1090-flightradar.git - Compile the files
make - Create a Google Maps Javascript API Key and paste it in 'dump1090-flightradar/public_html/gmap.html' on line 161 instead of 'YOUR_API_KEY_HERE'
How to create a Google Maps Javascript API Key?
Step 5: Start the App and Watch Flights
Start the FlightRadar with the following command:
./dump1090 --interactive --aggressive --enable-agc --net
The FlightRadar is now available via the IP address of the Raspberry Pi and the port 8080
e.g. http://10.0.0.1:8080
Generally:
http://[IP_OF_THE_RASPBERRY_PI]:8080
That's it! Have fun with your personal Flight Radar!
If you have any questions don't hesitate to contact me.

Participated in the
IoT Challenge
16 Comments
11 months ago on Step 5
suggest to type
"sudo apt install pkg-config"
in first step
3 years ago
hi! did you use exactly the DVB that is in the link? I did my shopping list directly from your links. after several weeks of failed attemps and many forum visits (first time with raspberry) I´m strongly convinced that this particular DVB is not valid for this issue. could you confirm if you used this? thanks
https://forum.flightradar24.com/threads/11674-PLEASE-HELP!-RTL2832-problem-with-tracking!
Reply 3 years ago
The problem was in dongle chip as supposed. Working! Thks
Reply 3 years ago
Hi, thank you for your help! I will change the link immediately.
Reply 3 years ago
Hi! Thank you for your interest in my instructable.
Yes I have used this exact same model.
Where exactly does the problem occur? While installing the RTL-SDR driver?
If you like you can contact me via private message and we can work together in a TeamViewer session.
Reply 3 years ago
I always get "conected - no data" in flightradar status. After investigation in forums I think that the problem is with the DVBT sticks based on fc0012 chip instead of those based on R820T2. I have purchased one of this, when I'll receive it I'll tell you if it really was the problem.
thanks mate!
3 years ago
Hi I have mine working but the screen saver kicks in, how to stop that? Also, half the screen (lower 50%) is not maximised... any solution?
Reply 3 years ago
Hi meatfest,
Thanks for your interest in my FlightRadar.
To help you with your problem I need some more information:
Where exactly does the screen saver kick in?
On the Raspberry Pi or your PC?
What operating system are you using? Raspbian?
What do you mean with half the screen is not maximized?
Do you mean the webinterface?
You might find more help here: https://poscher.me/en/projects/flightradar/
Reply 3 years ago
this was installed on my Raspberry Pi and via a little CRT
Reply 3 years ago
Try to use Raspbian and then install it. A tutorial for setting up Raspbian is here: https://www.instructables.com/id/Install-Raspbian-on-Your-Raspberry-Pi/
Reply 3 years ago
hi have a look ...
Reply 3 years ago
here is a video of installation
Reply 3 years ago
Half the screen is showing in the browser view ...
sudo xset s offsudo xset -dpms
Reply 3 years ago
Hi,
Are you looking at the web interface on your PC or your Raspberry Pi?
Does the screen blank while looking at the web interface?
If possible, send me some screenshots so I can solve the problem faster.
3 years ago
Wow, this is so awesome. Thanks for the great explanation! I really like this nice website. Have you created this whole thing?
Reply 3 years ago
Hi johgerbauer, Thanks for the nice comment. I‘ve created the web interface. The decoder which tracks all the flights is already existing on github. There is an existing web interface, but I don’t really liked its design, so I thought, I create a new, modern and responsive one.