ADS-B

From SingletonMillerWiki
Jump to: navigation, search


This project shows you how to build a cheap ADS-B Aircraft RADAR using a Raspberry Pi and a compatible USB TV tuner.

Contents

Equipment Required

  1. Raspberry Pi single board computer [1] [2]
  2. USB TV Tuner with RTL-2832U chipset [3]
  3. 5V Micro USB power rated to at least 1.2A, although more is probably better. I use one of these [4].

Software Installation

The following assumes you have a working Raspberry Pi running the Raspian OS. Setup:RPI_Raspian. The RPi must have access to a work internet connection and the current software is up to date. To update the pi run the following 2 commands

sudo apt-get update
sudo apt-get upgrade

Supporting utilites

Install the following support tools git git-core pkg-config cmake build-essential libusb-1.0-0-dev

sudo apt-get install git git-core pkg-config cmake build-essential libusb-1.0-0-dev 

RTL-2832U driver

Download and install the driver from http://git.osmocom.org/rtl-sdr/

git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr
mkdir build
cd build
cmake ../ -DINSTALL_UDEV_RULES=ON
make
sudo make install

Enable the udev rules for the device.

cd ~
sudo cp ./rtl-sdr/rtl-sdr.rules /etc/udev/rules.d/

Restart the RPi and connect the RTL-2832U based USB dongle to your RPi, you should see the light come on.

sudo reboot

Dump1090

Dump1090 is a simple Mode S decoder for RTLSDR devices [5] a recent fork [6] is also available. Original git clone git://github.com/antirez/dump1090.git, latest git clone git://github.com/MalcolmRobb/dump1090.git,

git clone git://github.com/MalcolmRobb/dump1090.git
cd  dump1090
make

Test the installation a the terminal with

cd ~/dump1090
./dump1090/dump1090  --interactive

you should see a live update of the available data like this:

ExampleOutputOfDump1090


A rather more impressive visualisation of the data can be seen via the network interface.

cd ~/dump1090
./dump1090 --quiet --net &

the & pushes the programme to the background and frees the terminal.

To see the graphical output first find your RPi IP address via

ifconfig | grep 'inet addr:'
inet addr:192.168.0.20  Bcast:192.168.0.255  Mask:255.255.255.0
inet addr:127.0.0.1  Mask:255.0.0.0

The default port is 8080 so point your webbrowser at 192.168.0.20:8080 and you should see:

Dump1090 Webpage

Running dump1090 as a Daemon

Based on the instructions here [7] this is readily achieved by creating an init file.

sudo nano /etc/init.d/dump1090.sh

Paste the example code from the above link, edit the file settings PROG_PATH PROG_ARGS

PROG_PATH="/home/pi/dump1090"
PROG_ARGS="--quiet --net"

Make the script executable

sudo chmod +x /etc/init.d/dump1090.sh

Create the runlevel shortcuts with the command:

sudo update-rc.d dump1090.sh defaults

The programme will run automatically on system power up.

To start or stop the new daemon use

sudo service dump1090.sh stop
sudo service dump1090.sh start

TODO

Broadcast your effort

To make the graphical webpage visible from outside your network, use the port forwarding of your router [TODO].

Contribute to the wider community

http://my.pinkfroot.com/page/share-data

Troubleshooting

Things to check.

  1. Does your RPi have enough power? Try a powered USB hub for the dongle?

References

  1. Farnell raspberry-pi
  2. RS raspberrypi
  3. DVB-T USB TV RTL-SDR FM+DAB Radio Tuner Receiver Stick Realtek RTL2832U+R820T
  4. apple-12w-usb-power-adapter
  5. http://git.osmocom.org/rtl-sdr/
  6. http://www.satsignal.eu/Radio/dump1090.html
  7. https://github.com/antirez/dump1090
  8. http://www.satsignal.eu/Radio/dump1090.html
Personal tools