0% found this document useful (0 votes)
20 views8 pages

Rybn k Radio Stream Raspberry Pi

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views8 pages

Rybn k Radio Stream Raspberry Pi

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

APL FM workshop

———————————
RADIO STREAM TOOLS USING RASPBERRY PI
By. Kevin RYBN (FR)

Introduction

radio + stream &


open source
mini fm tetsuo kogawa && open hardware
webradio
placard
nomusic0108
etc ...

Mini FM
schematics from kogawa
website : http://anarchy.translocal.jp/
manifesto : http://anarchy.translocal.jp/radio/micro/
howto ? http://anarchy.translocal.jp/radio/micro/howtotx.html
most simple trabsmitter schematics http://anarchy.translocal.jp/radio/micro/
howtosimplestTX.html

P-Node
http://p-node.org
wiki : http://p-node.org/doc
code : git.rybn.org/rybn
build antenna, step by step instructions, various experiements, etc ...
icecast server http://stream.p-node.org

Demo V-2
functions
source : http://git.rybn.org/rybn/pibox_V2/blob/master/README
step by step instructions http://p-node.org/doc/index.php/V-2
access http://192.168.100.1/

access point = pibox


http://192.168.100.1/
panneau de control, interface

Raspberry pi
concept / linux / open source /
https://www.raspberrypi.org/
downlaod, instructions, etc ...

reference http://rybn.org:9001/p/london-2

needs
• terminal (mac, linux) or putty (windows)
• nmap https://braindrivendevelopment.com/2014/12/02/using-nmap-to-find-a-
raspberry-pi-within-a-network/
• ssh remote access
• scp (ssh ftp client)
• sudo password

see how a terminal work,


commands, adress, manuals (command man), basic navigation (cd, ls, ...), operations
(copy, remove, list, ..), tabulation, sudo & password, ...

Make a raspberry radio

download and installation raspian, update/upgrade des systèmes, librairires,


configuration

install raspian or V-2


https://www.raspberrypi.org/documentation/installation/installing-images/
linux https://www.raspberrypi.org/documentation/installation/installing-images/linux.md
mac https://www.raspberrypi.org/documentation/installation/installing-images/mac.md
win https://www.raspberrypi.org/documentation/installation/installing-images/
windows.md

• chercher et trouver sa pi

$ nmap 192.168.1.* -p 22 --open

-> on repere la bonne Raspbery-pi selon ip (on demande aux copains pour pas aller sur la
pi des autres)
then

$ ssh 192.168.1.xxx

quand ok => mot de passe par défault = raspberry

sudo raspi-config
1. expand file system = ok
2. change passwd ok (pour être sur de rester sur sa pi) (pinode pour kevin; picode
pour m1)
4. veifier boot option B1 console user login

puis
$ sudo apt-get update (1 minute)
$ sudo apt-get upgrade ( 30 / 40 minutes !!! ca prend un peu de temps -> prévoir
discussion ou pause)
LIBRAIRIES

installer autres utilitaires libavtools (avconv) sox oggfwd libsndfile1-dev

$ sudo apt-get install libav-tools sox oggfwd libsndfile1-dev

Tester PI_FM_RDS

install

(celui sur la V-2)

installation & test PiFmRds,


exploration des fonctions,
test avec un track mp3, wav, un stream,
écoute sur différentes fréquences (limite haute 108 / basse 88)

Téléchargement de PiFmRDS :

$ wget https://github.com/ChristopheJacquet/PiFmRds/archive/master.zip
$ unzip master.zip
$ cd PiFmRds-master/src
$ sudo make clean (erreur)
$ sudo make

Broadcast on FM

essayer pifm_rds

$ sudo ./pi_fm_rds -freq 108 -audio sound.wav sudo

ok pas de pb

Copy a file from your harddrive to play it

using scp

check manual
$ man scpyy

basic syntax :
$ scp filepath user@ip:/path

example
$ scp /home/k/Bureau/Baphomet.rgb [email protected]:/home/pi/

be cautious when using it => it as it may erase files !

Push a stream on FM

tester avec un stream comme par ex. http://stream.p-node.org:80/billiejean.mp3

$ avconv -i http://stream.p-node.org:80/billiejean.mp3 -f ogg - | sox -t ogg - -t wav


- | sudo ./pi_fm_rds -freq 108.0 -audio -

list.conf

path important !

FM_Transmitter

bis installation and test with fm_transmitter

$ sudo apt-get install make gcc g++


$ wget https://github.com/markondej/fm_transmitter/archive/master.zip
$ unzip master.zip.1
$ cd fm_transmitter-master
$ make

essai :

$ sudo ./fm_transmitter -f 108 -r star_wars.wav

à partir d'un stream lu par avconv

$ avconv -i http://stream.p-node.org:80/billiejean.mp3 -ac 1 -ar 22050 -f wav - |


sudo ./fm_transmitter -f 108.0 -

if pb $ sudo apt-get install libav-tools (but shall be already installed)

RPITX

instalaltion et test rpitx


broadcast on sstv, am fm etc .. from 130 kHz to 750 MHz.
https://github.com/F5OEO/rpitx

"all you need to do is plug in a wire antenna to Pin 12 (GPIO 18) on the GPIO port
and run the PiTx software by piping in an audio file or image for SSTV. "

prerequisite : libsndfile1-dev (déjà installé au dessus)

install git

$ sudo apt-get install git

then install ritpx

$ sudo git clone https://github.com/F5OEO/rpitx


$ cd rpitx
$ ./install.sh

test riptx

FSQ mode

$ sudo ./testfsq.sh
$ sudo text fsq => change (nano testfsq.sh repalce test with helloworld for ex.)

FM Mode broadcast on 108

$ sudo ./testfm.sh

AM Mode

$ sudo ./testam.sh

etc ...

BUTT

Butt Streaming tool:


Mac: https://sourceforge.net/projects/butt/ls

https://sourceforge.net/projects/butt/

SDR Software Defined Radio

GQRX
http://gqrx.dk/

◦ instlall / Démo gqrx sur Linux et sur MacOSX > 10.9 et Raspbian si moniteur ou
sdr# sur Windows
◦ test écoute de fréquence précise (talkie walkie, radio, signaux chelous...).

test GQRX http://194.145.208.139:9001/p/london-GqrX


pour une chasse à la fréquence

mac : http://dekar.wc3edit.net/wp-content/uploads/2012/09/gqrx_8.dmg

win : https://github.com/pothosware/PothosSDR/wiki/Tutorial

https://github.com/pothosware/PothosSDR/wiki/GQRX

websdr : http://websdr.ewi.utwente.nl:8901/

RTL-SDR on Raspberry

download et installation de rtlsdr sur raspbian.


interception piFM via rtlsdr. Démo gqrx,
test écoute de fréquence précise (talkie walkie, hackRF, radio, ...).

installation packets rtl-sdr // doc http://sdr.osmocom.org/trac/wiki/rtl-sdr

$ sudo apt-get install rtl-sdr

blacklist the module to make it work

$ sudo nano /etc/modprobe.d/raspi-blacklist.conf

ajouter

blacklist dvb_usb_rtl28xxu
blacklist rtl_2832
blacklist rtl_2830

$ sudo reboot

test listen FM band radio on various frequencies

pa example

$ rtl_fm -f 89100000 -M wbfm -r 48000 - | aplay -r 48k -f S16_LE

ou

$ rtl_fm -f 94900000 -M wbfm -r 48000 - | aplay -r 48k -f S16_LE


use rtl_fm to catch minimodem

rtl_fm -f 108e6 -M wbfm -s 352k -A fast -r 44.1k -l 0 -E deemp | AUDIODEV=hw:


0,0 play -r 44.1k -t raw -e s -b 16 -c 1 -V1 -

Frequency Hunt Time

references of interesting frequency

Jupiter 22.2MHzFM
microphone
wifi

MiniModem

Dump1090

Installation de cmake et de lib-usb :

$ sudo apt-get install cmake


$ sudo apt-get install libusb-1.0-0-dev

Téléchargement des sources et installation de RTL2883U :

$ 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
$ sudo ldconfig

Téléchargement des sources et fabrication de l'application dump1090 :

$ cd
$ wget https://github.com/MalcolmRobb/dump1090/archive/master.zip
$ unzip master.zip
$ cd dump1090-master/
$ make

test it :

$ ./dump1090 --interactive
ici on voit les avions qui transitent

check : http://flightradar24.com

même commande

$ ./dump1090 --interactive --net


et lancer avec chromium http://localhost:8080

Other usefull ressources

https://upload.wikimedia.org/wikipedia/commons/thumb/d/df/
United_States_Frequency_Allocations_Chart_2011_-_The_Radio_Spectrum.pdf/
page1-1280px-United_States_Frequency_Allocations_Chart_2011_-
_The_Radio_Spectrum.pdf.jpg

espeak

$ sudo apt-get isntall espeakrtl_fm

lire le manuel

$ man espeak

dire ses premiers mots

$ espeak "helloworld"

envoyer espeak sur la radio via fm_transmitter

$ espeak "hello" --stdout | avconv -i - -ar 44100 -f wav - | sudo /home/pi/


Downloads/fm_transmitter-master/fm_transmitter -f 108 -

diagram gpio
rpi 1 http://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/09/Raspberry-Pi-GPIO-
Layout-Revision-1.png
rpi 2 http://www.megaleecher.net/sites/default/files/images/raspberry-pi-rev2-gpio-
pinout.jpg
rpi 3 http://www.jameco.com/Jameco/workshop/circuitnotes/
raspberry_pi_circuit_note_fig2a.jpg

You might also like