Skip to content

tzvetkov75/webradio_rasberry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Web Radio for Rasberry PI

Build your Web radio for streaming on Resberry Pi (Bannan PI) in simple step by step manual.

Description

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.

Hardware setup

The result may look like these pictures, but feel free to use your creativity

Front Side Back

Materials

  • You need two push button, like for example Button orButton
  • 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

Steps

  • 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 Wireing
  • Glue the corks onside but leave place for the cables
  • Glue the Rasberry PI (Banana PI)
  • Wire with HDMI, Ethernet and Power

Usage

  • 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

Software setup

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

  • OS set up on the SD card stap dow are for Ubuntu
  • Install Music Player Daemon (MPD) and alsa-utils
sudo apt-get install mpc mpd alsa-utils
  • Create your Playlist or use example in radio.m3u
  • Playlist install Copy the playlist file, like radio.m3u, in /var/lib/mpd/playlists/radio.m3u on your Rasberry
  • HDMI Output If you want to use HDMI audio output, then copy file asound.conf to /etc/asound.conf.Otherwise you will use the analog output. I recommend HDMI since provides better sound quality
  • Conrol programm Copy webradio_control.py to /home/pi/webradio_control.py on your RPI (Rasberry PI)
  • Create Service Copy init-radio.service 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 with service init-radio start|stop|status

About

Web Radio on Resberry PI (or similar)

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages