Raspberry Pi can be used for multiple purpose but this one of the most interesting: transform Raspberry PI to stream radio channel and use Android phone/tablet as a remote with the RS_player APP that you can download from here.
You can understand how to use RS_player APP from this post.
I suggest to use raspberry PI zero w integrated wlan
the follow procedure is important to install in Raspberry all necessary SWs (from mac operative system):
install raspberryPI lite: 20xx-x-x-raspbian-stretch-lite.img. Download from this link: https://www.raspberrypi.org/downloads/raspbian/
flash the img in the SD card: Format before the card with Fat32 with disk utility
Use Etcher to flash the img in the sd card. Free download on https://www.macupdate.com/app/mac/57903/etcher
put the SD card in raspberry PI and connect with a HDMI monitor or using the VGA adapter to a regular monitor with VGA output
login using default user: pi and default password: raspberry
from terminal: sudo raspi-config
select "Interfacing Options" and Natigate and select SSH, choose yes
always in raspi-config, boot option, B1 Desktop / CLI, Console autologin
always in raspi-config, in network Options and after wi-fi, provide SSID and password of the home wifi
reboot raspberry and control if wlan is assigned using the command "ifconfig", after try to ping a webpage e.g. ping www.google.com to see if it is working
sudo apt-get upgrade, sudo apt-get updade
after try to connect with raspberry with ssh: ssh firstname.lastname@example.org.X.XXX where 192.168.X.XXX is the IP address assigned to raspberry
if you have the follow error "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!" write ssh-keygen -R 192.168.X.XXX
install FTP server with the follow istruction (from the file)
- sudo apt-get update
- sudo apt-get install vsftpd
- sudo nano /etc/vsftpd.conf and inside the file find uncomment:
and write at the end of the file:
save the file: CTRL-X, Y and ENTER.
- sudo service vsftpd restart
use filezilla to enter in raspberry and save files
sudo apt-get install vlc
using ssh test the play with vlc: "cvlc http://www.listenlive.eu/streams/germany/de_hr2_128.m3u"
sudo apt-get install python-pip python2.7-dev
sudo pip install tornado
using FTP client (e.g.) FileZilla upload the folder "radioExec" in the folder /home/pi in raspberry. This folder is located here. You need to unzip before
from ssh: add the follow line "/home/pi/radioExec/execRadio.sh &" at the end of the .bashrc (located in the /home/pi). You can use for example nano (or vim) in ssh or update the modified file using ftp
Once this procedure is fulfilled, raspberry PI is ready to play radio streaming and activate server to receive commands from RS_player APP.