Raspberry Pi + RTL-SDR Working

First, I used parts of this gist by floehopper to set up rtl-sdr utilities on the Raspberry Pi (already running Raspbian with a 8 GB flash card at its disposal):

pi@raspberrypi ~ $ sudo apt-get update
pi@raspberrypi ~ $ sudo apt-get upgrade
pi@raspberrypi ~ $ vi no-rtl.conf

blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830

pi@raspberrypi ~ $ sudo mv no-rtl.conf /etc/modprobe.d/

pi@raspberrypi ~ $ sudo apt-get install git-core
pi@raspberrypi ~ $ sudo apt-get install git
pi@raspberrypi ~ $ sudo apt-get install cmake
pi@raspberrypi ~ $ sudo apt-get install libusb-1.0-0-dev
pi@raspberrypi ~ $ sudo apt-get install build-essential

pi@raspberrypi ~ $ git clone git://git.osmocom.org/rtl-sdr.git
pi@raspberrypi ~ $ cd rtl-sdr/
pi@raspberrypi ~/rtl-sdr $ mkdir build
pi@raspberrypi ~/rtl-sdr $ cd build
pi@raspberrypi ~/rtl-sdr/build $ cmake ../ -DINSTALL_UDEV_RULES=ON
pi@raspberrypi ~/rtl-sdr/build $ make
pi@raspberrypi ~/rtl-sdr/build $ sudo make install
pi@raspberrypi ~/rtl-sdr/build $ sudo ldconfig
pi@raspberrypi ~/rtl-sdr/build $ cd ~
pi@raspberrypi ~ $ sudo cp ./rtl-sdr/rtl-sdr.rules /etc/udev/rules.d/
pi@raspberrypi ~ $ sudo reboot

Then, I added sox (to get the play command):

pi@raspberrypi ~ $ sudo apt-get install sox libsox-fmt-all

I hooked up a speaker to the Raspberry Pi audio port and then tuned and listened to Puget Sound’s favorite packet frequency:

rtl_fm -f 144390000 -M fm -s 12k - | play -r 12k -t s16 -L -c 1 -

Worked nicely. Need to add squelch argument and combine this with the demodulator I’ve been working on.  Satellite tracking with automatic recording of space station packets is the ultimate goal.

Advertisements

Published by

Allen

Husband. Father. Proud Virginia Tech alum. Software Developer. Hardware Whisperer. Amateur Radio operator. Motorcyclist. Coffee lover. Stuff.

2 thoughts on “Raspberry Pi + RTL-SDR Working”

  1. Hello, this is Peter living in France – Strasburg but originally bavarian. I try to make work sdr radio with the famous USB key, and i have a SDR-play.
    But I get crazy (not beeing expert in Rapberry Pi2) Debian updated, dh installed, upgraded.
    Since I found your Raspberry PI + RTL-SDR Working I try to install, but no chance each time I come to “git clone git://giz.osmocom.org/rtl-sdr.git” no chance ther is the server but a few minutes later still nothing.
    Normally i am specialised in network-planning, but since some years retired and have an idea to realise a measurement by drone to analyse defaults on broadcast antennas.
    Wher is my mistake ? can you help ?

    Like

    1. Double check your command there – it should be git not giz, i.e.:

      git clone git://git.osmocom.org/rtl-sdr.git

      I also recommend pinging the server from the Pi to ensure basic connectivity, i.e.:

      ping git.osmocom.org

      Hope this helps 🙂

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s