Build your Web radio for streaming on Resberry Pi (Bannan PI) in simple step by step manual.
Building your own radio is fun than buying one. Using Raberry PI (Banana PI) can be interesting for kids to understand basic of hardware and software.
The result may look like these pictures, but feel free to use your creativity
- You need two push button, like for example
or
- Jumper wires with connectors for the Rasberry PI
- Wooden board for the front. It must be nice one, like using wine wooden box
- Corks for side decoration (optional)
- Rasberry PI, OS on SD Card, HDMI, power and LAN cable
- Make two holes on the board for the buttons
- Set up the push buttons in the holes
- Wire (solder) the two busch buttons to GPIO 23 and 24 and Ground

- Glue the corks onside but leave place for the cables
- Glue the Rasberry PI (Banana PI)
- Wire with HDMI, Ethernet and Power
- Press the two buttons to start and stop the radio
- Button 1 for changing the station upwards from one in the list
- Button 2 for changing the station downwards in the list
I have used Bananna PI with Ubuntu Server, but it will work in the same way in all Rasberry PIs. Depending on the OS you may have slight differences
sudo apt-get install mpc mpd alsa-utils
- Create your Playlist or use example in
- Playlist install Copy the playlist file, like
, in /var/lib/mpd/playlists/radio.m3u on your Rasberry
- HDMI Output If you want to use HDMI audio output, then copy file
to /etc/asound.conf.Otherwise you will use the analog output. I recommend HDMI since provides better sound quality
- Conrol programm Copy
to /home/pi/webradio_control.py on your RPI (Rasberry PI)
- Create Service Copy
to /etc/systemd/system/init-radio.service on your PRI
- Init the service to start on boot with
service init-radio enable. You can manage it withservice init-radio start|stop|status


