Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
raspberry:pi_radio [2016/10/19 01:10] admin [Read-Only SD Card] |
raspberry:pi_radio [2016/10/25 02:16] admin [GPIO Connections] |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Pi-Radio ===== | ===== Pi-Radio ===== | ||
+ | Image: 2016-09-23-raspbian-jessie-lite.img | ||
IP Address: 192.168.0.121\\ | IP Address: 192.168.0.121\\ | ||
Line 7: | Line 8: | ||
---- | ---- | ||
==== Upgrade ==== | ==== Upgrade ==== | ||
+ | |||
+ | $ sudo raspi-config | ||
+ | |||
$ sudo apt-get update | $ sudo apt-get update | ||
$ sudo apt-get upgrade | $ sudo apt-get upgrade | ||
| | ||
- | $ sudo apt-get install htop | + | $ sudo apt-get install htop python-pip idle idle3 |
- | + | ||
- | ---- | + | |
- | ==== Read-Only SD Card ==== | + | |
- | Change the SD card to a read-only mode.\\ | + | |
- | [[http:// | + | |
- | [[https:// | + | |
- | + | ||
- | === Fstab === | + | |
- | in: | + | |
- | $ sudo nano / | + | |
- | change: | + | |
- | / | + | |
- | tmpfs / | + | |
- | + | ||
- | === Disable some Programms === | + | |
- | disable rsyslog and dphys-swapfile: | + | |
- | + | ||
- | $ sudo systemctl disable rsyslog | + | |
- | $ sudo systemctl disable dphys-swapfile | + | |
- | + | ||
- | === Remount === | + | |
- | To remount the partition writabe: | + | |
- | $ sudo mount / -o remount,rw | + | |
---- | ---- | ||
Line 40: | Line 21: | ||
$ sudo mkdir / | $ sudo mkdir / | ||
$ sudo blkid | $ sudo blkid | ||
- | /dev/mmcblk0p3: LABEL=" | + | /dev/sda1: LABEL=" |
$ sudo nano /etc/fstab | $ sudo nano /etc/fstab | ||
edit: | edit: | ||
#USB Stick on /dev/sda1 | #USB Stick on /dev/sda1 | ||
- | UUID=A933-7A00 / | + | UUID=3DE8-04D4 / |
+ | or: | ||
+ | #USB Stick on /dev/sda1 | ||
+ | / | ||
$ sudo mount -a | $ sudo mount -a | ||
Line 73: | Line 57: | ||
netmask 255.255.255.0 | netmask 255.255.255.0 | ||
gateway 192.168.0.1 | gateway 192.168.0.1 | ||
- | dns-nameservers | + | dns-nameservers |
| | ||
Save and quit, ctl+o, Return, ctl+x.\\ | Save and quit, ctl+o, Return, ctl+x.\\ | ||
Line 109: | Line 93: | ||
==== Setting up the radio ==== | ==== Setting up the radio ==== | ||
- | **Pi-FM-TDS**\\ | + | **Pi-FM-RDS**\\ |
[[https:// | [[https:// | ||
$ mkdir / | $ mkdir / | ||
Line 121: | Line 105: | ||
| | ||
$ sudo ./pi_fm_rds -freq 99.9 -audio sound.wav | $ sudo ./pi_fm_rds -freq 99.9 -audio sound.wav | ||
+ | or: | ||
+ | $ sudo / | ||
| | ||
Line 159: | Line 145: | ||
$ sudo ./ | $ sudo ./ | ||
+ | |||
+ | ---- | ||
+ | ==== Autostart ==== | ||
+ | |||
+ | $ sudo nano / | ||
+ | insert before "exit 0": | ||
+ | printf " " | ||
+ | printf " | ||
+ | printf " | ||
+ | printf " | ||
+ | printf " | ||
+ | printf " | ||
+ | printf " | ||
+ | printf " | ||
+ | printf " | ||
+ | printf " | ||
+ | printf " | ||
+ | printf " | ||
+ | printf " | ||
+ | printf " " | ||
+ | |||
+ | #start radio | ||
+ | / | ||
+ | |||
+ | |||
+ | ---- | ||
+ | ==== Read-Only SD Card ==== | ||
+ | Change the SD card to a read-only mode.\\ | ||
+ | [[http:// | ||
+ | [[https:// | ||
+ | |||
+ | === Fstab === | ||
+ | in: | ||
+ | $ sudo nano /etc/fstab | ||
+ | change: | ||
+ | / | ||
+ | tmpfs / | ||
+ | |||
+ | === Disable some Programms === | ||
+ | disable rsyslog and dphys-swapfile: | ||
+ | |||
+ | $ sudo systemctl disable rsyslog | ||
+ | $ sudo systemctl disable dphys-swapfile | ||
+ | |||
+ | === Remount === | ||
+ | To remount the partition writabe:\\ | ||
+ | $ sudo mount / -o remount,rw | ||
---- | ---- | ||
Line 165: | Line 198: | ||
GPIO 17 | GPIO 17 | ||
GPIO 18 | GPIO 18 | ||
- | GPIO 22 | + | GPIO 22 |
- | GPIO 23 | + | GPIO 23 |
GPIO 27 | GPIO 27 | ||