Transform Raspberry PI to cast audio and use an Android phone as a remote

RS_player
[Total: 1    Average: 5/5]

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

I suggest to use raspberry PI zero w integrated wlan

with mini HDMI to HDMI adapter

and the HDMI to VGA adapter (with audio output)

the follow procedure is important to install in Raspberry all necessary SWs (from mac operative system):

    1. install raspberryPI lite: 20xx-x-x-raspbian-stretch-lite.img. Download from this link: https://www.raspberrypi.org/downloads/raspbian/
    2. flash the img in the SD card: Format before the card with Fat32 with disk utility
    3. Use Etcher to flash the img in the sd card
    4. 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
    5. login using default user: pi and default password: raspberry
    6. from terminal: sudo raspi-config
    7. select “Interfacing Options” and Natigate and select SSH, choose yes
    8. always in raspi-config, boot option, B1 Desktop / CLI, Console autologin
    9. always in raspi-config, in network Options and after wi-fi, provide SSID and password of the home wifi
    10. 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
    11. sudo apt-get upgrade, sudo apt-get updade
    12. after try to connect with raspberry with ssh: ssh pi@192.168.X.XXX where 192.168.X.XXX is the IP address assigned to raspberry
    13. if you have the follow error “WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!” write ssh-keygen -R 192.168.X.XXX
    14. 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:
           anonymous_enable=NO
           local_enable=YES
           write_enable=YES
           local_umask=022
           chroot_local_user=YES
      and write at the end of the file:
           user_sub_token=$USER
           local_root=/home/$USER/ftp
      save the file: CTRL-X, Y and ENTER.
      – sudo service vsftpd restart
    15. use filezilla to enter in raspberry and save files
    16. sudo apt-get install vlc
    17. using ssh test the play with vlc: “cvlc http://www.listenlive.eu/streams/germany/de_hr2_128.m3u”
    18. sudo apt-get install python-pip python2.7-dev
    19. sudo pip install tornado
    20. 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
    21. 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
    22. reboot raspberry

Once this procedure is fulfilled, raspberry PI is ready to play radio streaming and activate server to receive commands from RS_player APP.

How to connect and stream with Raspberry PI with RS_player
RS_player presentation