twitter |   ||  email | PGP --> harshal @ harshdevx.comharshdevx:~#
harshdevX:~#r00t  |  analyt1cs   |  st1lls  |  ab0ut m3
updating...
raspberry pi as your fm station
i love raspberry pi. a few days back i wanted to listen to my music collection in my kitchen and it seemed like it was impossible. the music collection hosted on my music server in basement, the boombox in kitchen had everything but bluetooth, i stopped using cds long back and the other music player that i have that has bluetooth seemed like a pain first pairing the device with my phone and then getting it to play.

so my problem was how to play something and make it available in every room without actually putting a lot of money towards buying wifi enabled gadgets. hi-fast a company that manufactures fm transmitter. the range is pretty good and i am happy with it check the image below:

Click to englarge me
Features of Hi-Fast USB Transmitter:
1. Links computer music to audio equipment wirelessly
2. USB bus-powered, no battery or AC adapter required
3. Fashionable, smart, stereo, plug& play, easy to use
4. USB-Flash-Disk-Like slim size and lightweight design
5. 7 selectable frequencies: 106.7, 106.9, 107.1, 107.3, 107.5, 107.7 and 107.9MHz
6. Whole-house-wide transmission range up to 160 feet (50 meters)** Strong ability to eliminate interference
7. USB digital audio stream, no sound card required
8. Frequency response: 20Hz – 20 KHz (Headphone/line output)
9. SNR & Dynamic range: 96dB (Headphone/line output)
10. Headphone/Speaker output power: 52mW/32 Ohm, 300mW/4 Ohm
11. Audio output jack: 3.5mm stereo female
12. Certified by USB-IF, Fully Compliant with USB Audio Specification
13. Compatible with Windows 98SE / ME / 2000 / XP, Mac OS 9 or later, and Linux with support for USB audio without additional driver.
Next Step:
So we are set here, pretty straight forward ey! Now with our headless (meaning no UI) linux system install the music player daemon. I installed a headless debian wheezy on raspberry pi.
sudo apt-get install mpd mpc
edit the mpd.conf file at /etc/mpd.conf location and correct the configuration parameters related to directories, service and audio hardware settings; below are mine
#1 music_directory "/home/pi/music"
#2 playlist_directory "/home/pi/music/Playlist"
#3 db_file "/var/lib/mpd/tag_cache"
#4 log_file "/var/log/mpd/mpd.log"
#5 pid_file "/run/mpd/pid"
#6 state_file "/var/lib/mpd/state"
#7 sticker_file "/var/lib/mpd/sticker.sql"
#8 user "mpd"
#9 bind_to_address "any"
#10
#11 audio_output {
#12 type "alsa"
#13 name "My ALSA Device"
#14 device "hw:0,0" # optional
#15 format "44100:16:2" # optional
#16 mixer_device "default" # optional
#17 mixer_control "PCM" # optional
#18 mixer_index "0" # optional
#19 }
once you have this running you can now connect to your mpd box using your phone. here is link to download my conf file and save as mpd.conf -> link

concept and design: harshdevX