loading
I have been lurking on Instructables for a few years but have never posted one myself. Now I have bought a home of my own it's time to undergo some projects and share them with the community.

In my first project I'm going to show you how I setup multi-room audio that can be controlled by any device with a web browser or an app on your Android and/or iOS device.

I apologise for the lack of/poor quality photos.

I have borrowed some of this information and thrown in some things from my own experience. Some credit goes to the author of this tutorial http://www.raspberrypi.org/phpBB3/viewtopic.php?f=38&t=25778
To tackle this instructable you should have an understanding of networking, intermediate to expert computer skills and maybe some linux experience too. If you run into something you don't understand just remember google is your friend.


Equipment you will need

• Computer (mac/win/linux to act as your Logitech Media Server)
• Home network (wireless if you can't run a cable to the Pi)
• Raspberry Pi (I've used 1 per room however I will add a multi-DAC tutorial once I complete it myself)
• SD card 2GB or larger
• AC Adaptor (I used a USB wall charger for mobile phones check here http://elinux.org/RPi_VerifiedPeripherals#Power_adapters)
• Micro USB cable
• USB wireless adaptor (MAKE SURE IT IS COMPATIBLE OUT OF THE BOX! http://elinux.org/RPi_USB_Wi-Fi_Adapters)
• Powered USB Hub (for extra usb devices or multi DAC at a later date)
• HDMI cable or HDMI to DVI cable (depending on your monitor)
• DAC (digital to analogue converter, 1 per room)
• Amplifier (unless your DAC is also amplified)
• Speakers

Step 1: Logitech Media Server

First of all we need to setup your Logitech account and install the Logitech Media Server on the computer contains your music collection. This computer should always be on when you want to play music. The LMS and instructions can be found at http://www.mysqueezebox.com/download
 
Once installed setup your library 
 
Also login to your squeezebox account otherwise you cannot see your music on the player.
 
You can also download the Squeezebox app for your iOS or Android device also remember to login to your Logitech account inside the app.
https://play.google.com/store/apps/details?id=com.logitech.squeezeboxremote&hl=en
https://itunes.apple.com/au/app/logitech-squeezebox-controller/id431302899?mt=8
I made it. Also included a windows player and all players were automatically detected by home-assistan.io software
nice project.,!!!!!.,but can we LIVE BROADCAST using raspberry Pi.,???.,PAGING SYSTEM??<br>.,APOLOGIES BEGINNER HERE.,
<p>If you don't mind me asking, where is the guide to help me through the process? Apologies, completely new to the site and Pi.</p>
<p>Unfortunately, the next day I can't even start this anymore. Back to step 1 :(</p>
<p>I have made it till step 6, where I'm having trouble with selecting the output. For trying out I just want to use the default</p><p>default:CARD=ALSA - bcm2835 ALSA, bcm2835 ALSA - Default Audio Device</p><p>sysdefault:CARD=ALSA - bcm2835 ALSA, bcm2835 ALSA - Default Audio Device</p><p>but from there PI nothing happens and I neet to disconnect the SSH connection.</p>
<p>Can this be controlled with an iPad? I'd like to mount an iPad into the wall of my home to control the unit. is this possible?</p>
<p>yes you can, but if I am not mistaken Im most positive that you need a special software, A friend of mine has one in her kitchen that controls ALOT. I don't know the price but i would like to know to, i have been thinking about that to as well</p>
<p>Thanks for all the above info, I am excited to give this a go. I have a couple of questions if you don't mind.</p><p>in theory I need an AMP and PI for each room. i will make up 4 units, can they be housed together in a cabinet and wired to each room. then controlled by android app that is connected to WIFI ? </p><p>other issue I foresee, is how can I switch between playing sound from server to say a secondary device like putting the sound from the TV through to the speakers, or is that extremely difficult. </p><p>many thanks !</p>
<p>Can you add a link to the DAC you used?</p>
http://www.ebay.com.au/itm/Topping-TP23-Tripath-TA2021B-Digital-Tripath-Amplifier-Integrate-USB-DAC-/321538156771?pt=AU_Electronics_Audio_Amplifiers&amp;hash=item4add2ae8e3
<p>This is a great set of instructions - got me up and running easily.</p><p>I'm using the 3.5mm headphone output until I get a DAC, so I had a bit f trouble at first. No sound was coming from the Pi. Found the following on stackexchange:</p><pre>sudo apt-get install alsa-utils <br> sudo modprobe snd_bcm2835 <br> sudo aplay /usr/share/sounds/alsa/Front_Center.wav <br></pre><p>By default output will be automatic (hdmi if hdmi supports audio, otherwise analogue). You can force it with:</p><pre>sudo amixer -c 0 cset numid=3 &lt;n&gt; <br></pre><p>where n is 0=auto, 1=headphones, 2=hdmi. (<a href="http://elinux.org/R-Pi_Troubleshooting#Sound_does_not_work_at_all.2C_or_in_some_applications" rel="nofollow">source</a>) </p><p>So I set &lt;n&gt; to 1 and works great!</p><p>Looking forward to getting a DAC :-)</p>
Hi, <br>Very interesting tutorial.As a beginner, I'm wondering about 2 things. <br>Why do you have to use a DAC + amplifier (and not the audio output from the Raspberry Pi itself)? <br>What DAC and amplifier did you use? <br>Thanks!
I tried with the onboard audio/DAC. There was a constant crackling/popping that was easily resolved by using the &quot;-a 100&quot; option starting squeezelite. Just uncomment the line in the /etc/init.d/squeezelite file, it's default at 80 or 85, I changed to 100 just because that's what was working when I tested.<br> <br> Change this in the squeezelite startup script:<br> #SL_ALSA_PARAMS=&quot;80&quot;<br> To this:<br> SL_ALSA_PARAMS=&quot;100&quot;<br> <br> I also read something about enabling the PlayWMA 3rd arty plugin if you want to use Sirius on squeezelite. Haven't tried it yet, but I plan to later today.<br> <br> I'm using wired, but plan to switch to Wifi, the Monoprice.com 1T1R is $8, uses a Realtek chipset so it should work just fine.&nbsp;
<p>Thanks so much for this tip! I had the issue of the crackling but adjusting to 100 solved it. Any idea what that setting does?</p>
I tried this &quot;-a 100&quot; option on my lounge player but the audio quality was still very poor. Back to my DAC :) <br> <br>PS. on board audio works fine on my other pi straight out of the box so maybe it's just a dud audio chip.
Cool, thanks!
Hi Jrzeznik, <br><br>I use a DAC because of increased sound quality and I want to setup multiple players on a single Pi down the track.
I used this DAC for my outdoor speakers http://www.tpdz.net/en/products/tp23.htm
<p>This was so easy and it's fantastic. This is going to give Sonos a run for it's money! I just ran this straight up wired and using the audio out of the Pi for now.</p>
<p>I followed your instructions and have 2 zones setup with more in the future Im hoping. It the original post you had indicated you were planning on chaining DACs with multiple outs (i think) from a single pi. </p><p>I used USB soundblasters vs the DAC in your instructions to keep costs down with mixed results. I am sure I would get a cleaner sounds with the DAC but it is better then the onboard audio out,</p><p>Have you or anyone else experimented with other software etc as I like the basics of Logitech media server it is far from ideal. It is slow to respond, it's a little awkward but its great for the cost. :) </p><p>I would like to have some sort of amp that turns off when not in use and turns on when activated (by the pi) </p><p>I currently use 2 sets of computer speakers tucked away in two rooms with this that works well but I dislike the fact they are left on all the time and I am too lazy to turn them off and on :p</p><p>I had looked also for some sort of ceiling speaker setup but couldn't find anything reasonably priced that felt like it was with cutting holes in my ceilings.</p><p>But your project has help change my life honestly. I use it synced I use them independently and I use it as a white noise sleep machine. I like it a lot</p><p>Thanks for everything</p>
<p>Can someone recommend a DAC and amplifier that would work well with this? I'm completely ignorant in this space. I saw some USB DACs on Amazon that are expensive enough that this project would cost as much as just buying a Sonos.</p>
<p>Great easy to follow inst! I have never used logitech media server, once this is connected to your pi's will it stream the same content to all zones in sync? or just one zone at a time?</p>
It can do both, that's why I chose it.
<p>HI all,</p><p>since we also have the possibility to run squeezeboxserver on raspberry.<br>basicly 3 pi's ( 2 for the room-audio,1 for the server) kicks some real ....</p><p><a href="http://allthingspi.webspace.virginmedia.com/lms.php" rel="nofollow">http://allthingspi.webspace.virginmedia.com/lms.ph...</a></p>
Thank you so much for this instructable, I have just followed all the steps to create a 4 zone audio system for our offices in work, teamed with a spotify premium account it works like a dream.
Great news :D, glad I could help you.
Nice Project! I would love to see a demo video of it.
http://www.youtube.com/watch?v=uQKZA6X2Wp0 Here's a link to someone elses video demo
Thanks! This is very nifty. I may try this myself.
Does it matter if I use a Raspberry A or B ? This will be my first raspberry project. Thank you!
You need network connectivity so as long as you use a USB wireless adaptor you should be able to use the model A
I bought the model B. I'm using wired ethernet and the audio on the raspberry right now and it works!! thank you.
Was wondering why you didn't use rasbmc on the Pi, built in media server and the air play functionally is easy to remotely control in the rooms you have them in, using browser or remote app on ios/android device. I have 2, running 24/7, the ability to output audio via hdmi and analog jack simultaneously since last update is good for multi-room use plus you get video too with 7.1 in my set up.
Hi, I didn't do a tutorial on this as I thought it would be a bit overkill, as the all the easy to follow instructions of the use, and installation of RASPBMC (rasbian/XBMC) are on www.raspbmc.com.<br> Your 'ible has inspired me to have a go once I have learned the best way to access the gpio port on the pi over my lan. I am looking into ways to use the gpio pins on the pi to automatically power up a little diy Stereo 15amp Amplifier I bought for &pound;5 (and or switching from one to the other) so could mount some ceiling speakers and move from room to room. I was thinking about using Nfc tags on the light sockets and tap with my mobile phone to turn on. When I figure this out I will do an ible on the subject as I still have to manually power up the cinema system or TV's that the Pi's are connected to, so only have 3 rooms from 2 pi's at the moment, and am hoping for 5 from 1 pi.
Really Good Invention
EXCELLENT guide. Just got my setup up and running in a few hours. Now I just need to find some speakers where I can hide the PI inside. :-) <br> <br>One question though. I used the onboard audio and connected it to my BOSE Media. But I think the sound is quite low, I have to turn up the volume quite a lot. <br> <br>Will it help with the USB Sound card or is the same?
Hi Jhansen10,<br><br>Well done getting it all up and running. In my experience the non-amplified DAC still had to be turned up quite loud at the amplifier end even with the volume turned right up in alsamixer.<br><br>Hope that helps :D
if you are using ubuntu (on another arm device, I use a cubieboard) you can use this upstart script:<br> #!upstart<br> description &quot;SqueezeSlave&quot;<br> <br> start on (local-filesystems and net-device-up IFACE!=lo)<br> stop on [!12345]<br> <br> # Start job via the daemon control script. Replace &quot;gert&quot; with your username.<br> exec su -l -c '/usr/bin/squeezelite -m 00:00:00:00:00:04'<br> <br> # Restart the process if it dies with a signal<br> # or exit code not given by the 'normal exit' stanza. respawn<br> # Give up if restart occurs 10 times in 90 seconds.<br> respawn limit 10 90<br> <br> <br> <br> you'll need to change the mac address for each player (the -m option)
thank for <br>Raspberry pi explained in basic steps. <br>all posts are very informative. <br>http://createyourownbots.blogspot.in/

About This Instructable

381,104views

1,000favorites

License:

More by Piney:Tor-Pi Exit Relay (without getting raided) Raspberry Pi Wall Mounted Google Calendar Raspberry Pi Multi-Room Audio (Mobile/Tablet/PC Controlled) 
Add instructable to: