Digital Serving/Streaming on the Cheap with a Raspberry Pi
Part 2: Setup and Programming
By Steve Graham
Perhaps we should back up a bit and define serving and streaming. These are somewhat crude definitions, but for this article they’ll suffice. In essence, a server sends out a digital data stream, in this instance one containing music. This may be a music service, Tidal for instance, or an internet radio stream, or we may serve music stored on a local source like a USB hard drive containing CD rips and/or digital music downloads.
A streamer receives our chosen data stream and presents it to a D to A converter, which we then amplify and listen to. There are servers, streamers, server/streamers and server/streamers/D to A converters. A Raspberry Pi can, with the right software, a USB-connected hard drive and a little sweat equity, form a complete digital music source – as shown in the picture above. Just add an ethernet cable to connect to your network and a cable to the DAC of your choice. Alternatively, if you add a DAC HAT, instead of the HiFiBerry digital-out HAT pictured below, you can have music data, a server, a streamer and a DAC all in a very small physical foot print.
Kit of Parts:
Peel the tape backing from the 3 heatsinks and apply to largest chips on RPi board:
Insert the 4 small plastic screws up through the bottom of the RPi board and screw the spacers to them:
Assemble the HAT board to engage the 40-pin riser on the RPi and slip over the tops of the spacers:
Assemble the plastic nuts to retain the HAT board:
Cut the tabs securing the larger of the two “windows” on the main part of the case and remove:
Apply the stick-on rubber feet to the bottom of the case.
Assemble the RPi and HAT to the case. Drop the side with all of the small jacks down.
Push the opposite side down until it clicks into place.
Heat Mitigation Strategy:
According to people in the know, the RPi 4B generates more heat than previous versions. The basic case that came with my kit might be OK for a RPi alone but adding a HAT board traps the heat. Fearful of too-high temperatures once the case lid was installed, I came up with this cheap and cheerful hack. I turned the lid 180 degrees from its proper position, kept it propped up on its small “legs” and applied a bit of hot melt glue. Hot melt glue is as much wax as it is glue IMO. It can be pealed away if desired. More desirable metal and acrylic cases are available if you wish but these can cost as much or more than a RPi board.
Please don’t consider me as technical support. On a computer literacy scale of 1 to 10 I’m about a 2. I’m going to describe a reasonably straight-forward process. If you don’t know an ethernet cable from a USB stick, maybe you should pass on this project. Please don’t take offence if this is you. That being said, I’m happier probing around in tube amps with 300+ volts coursing through them than I am with microprocessors, but I figured this out, with a little help. If you’re sitting on the fence, run the instructions in the attachment past a more computer savvy buddy (or maybe your child) and see if she/he will help you out.
Full step by step instructions are available in the attachment at the end of this article.
This might seem clumsy to those more computer literate than myself. Please excuse me. If you have constructive criticism or suggestions, I’ll be happy to entertain revising the instructional attachment.
The programming will not involve writing any code. I couldn’t code with a gun held to my head so I won’t expect that of anyone else attempting this project. We’ll use existing apps that will require selecting options, entering a bit of text (just naming devices for the most part) and accessing the PiCorePlayer (PCP) app through a web browser. Easy, right?
Story Alert: I had a boss once who for 99% of the time was a great guy. But, whenever he said, “All you gotta do is…” you knew that you were in for several weeks of hard work. I’ll try to keep the “All you gotta do is…” to a minimum.
You might find it useful to rip all of your CDs and transfer them and any downloads onto a USB hard drive or solid-state drive before attempting setup and programming. I had trouble getting LMS to “find” my music files. This turned out to be because the files I saved were put in a sub-folder labelled MUSIC. This caused me a minor amount of grief later but was easily overcome during setup. (It’s covered on page 16 of the attachment below.) Sixteen pages of setup you say? DON’T FREAK OUT. There are mostly two big pictures and a little bit of text on each page. By the tenth time through I could do the setup in about five minutes.
A good, free, CD ripper is Exact Audio Copy (EAC). http://exactaudiocopy.de/ .WAV is the file format on CDs. I’ve heard from many sources that files in the .FLAC format are better at preserving the metadata on the discs. Metadata contains album cover art, song titles and other info. EAC will transcode WAV to FLAC if instructed.
Brief Programming Description
Refer to the attachment below for complete instructions. I’ll provide links to all of the software, utilities and operating systems you will be downloading in the attachment. As mentioned previously, these are all FREE!
Don’t plug the RPi into AC power until told to do so in the detailed setup attachment.
Once you start “talking” to your RPi with the PiCorePlayer app running you might notice there are several pages setup of options. DON’T FREAK OUT. Most items won’t be changed. I’ll lead you through it. Don’t skip any steps or get them out of order. I don’t need any more people cursing me.
Once you’ve completed the setup, you’ll run the LMS Player app. LMS Player isn’t a very slick user interface but it will get you going. You’ll likely find it OK-ish to start with. Klutz that I am, I found it reasonably intuitive, it’s just not very pretty to look at.
The smartphone/tablet apps for Android and iOS devices (costing between 10 and 14 bucks each) are reported to be much nicer. I can vouch for the iPeng app for iOS devices. I mean, it’s not Roon, but the user interface is reasonable and you’ll have easy access to music streaming services with this app.
See the attachment below for complete and detailed setup information.
It’s summer as I write this, so the sound quality evaluation will have to wait. It’s time to play outside. I’ll do the SQ eval on a cool rainy day. So far, I’ve had the RPi playing on my workshop system. An old Adcom DAC playing through a Dynaco clone and a pair of small Wharfedale speakers has sounded pretty good. In part 3, I’ll report my sonic observations when connected to my main system.
Send a Donation
If you've enjoyed this content, consider supporting Wall Of Sound with a donation. It only takes a moment and will be greatly appreciated.