https://github.com/mendhak/rpi-internet-radio
Internet radio using breadboard, mpc and mpd
https://github.com/mendhak/rpi-internet-radio
Last synced: 10 months ago
JSON representation
Internet radio using breadboard, mpc and mpd
- Host: GitHub
- URL: https://github.com/mendhak/rpi-internet-radio
- Owner: mendhak
- Created: 2013-06-09T07:56:24.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-12-18T10:20:56.000Z (over 12 years ago)
- Last Synced: 2025-04-06T00:27:38.067Z (about 1 year ago)
- Language: Python
- Size: 277 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Raspberry Pi Internet Radio
==================
My own implementation of an Internet radio player on a Raspberry Pi with a breadboard.
##Hardware
Wired up on a breadboard with a few common components. This was done with a Raspberry Pi Model A.
###Ingredients
* 3x 10K Ω resistors
* 1x 100 Ω resistor
* 1x LED
* 3x momentary push buttons
* 1x breadboard
* 3x male-to-male jumper cables
* 6x male-to-female jumper cables
###Layout
Arrange the components as shown in this professionally drawn schematic

###Reference Photo

##Software
This involves an init.d script and a python script which listens for button presses.
###Ingredients
* `mpc` and `mpd` installed
* `python-dev` and `python-rpi.gpio` installed
###Setup
Copy or clone this repository onto your Raspberry pi
git clone git://github.com/mendhak/rpi-internet-radio.git
Edit the `/etc/mpd.conf` file and set `playlist_directory` to the stations subfolder of the repository
playlist_directory "/home/mendhak/rpi-internet-radio/stations"
Set up the init.d service pointing at the radio script
sudo ln -s /home/mendhak/rpi-internet-radio/radio radio
sudo chmod 777 /home/mendhak/rpi-internet-radio/radio
sudo update-rc.d radio defaults
Finally, restart the Raspberry Pi
##Usage
When the Raspberry Pi boots up and the init.d script kicks in, the red LED should flash twice.
To **start** playing music, press the first push button.
To move to the **next** radio station, press the first push button again.
To **stop** playing music, hold the first push button for one second, then let go.
Use the other two push buttons to increase and decrease the **volume**.
To set your own stations, edit or create new `m3u` files in the stations subfolder.