Help needed using Raspberry Pi Zero for audio server


floppybootstomp

sugar 'n spikes
Moderator
Joined
Mar 5, 2002
Messages
20,227
Reaction score
1,728
Below I have posted a few pics of the various parts I've put aside for a project I started several months ago but shelved due to confusion on my part.

I have all these parts in a carry case stored under my bed atm, I think I have everything I need with the possible exception of a screen or small monitor if I can't access this setup via a computer using Windows 10. I can access the eventual Raspberry Pi Zero setup using either hard wired Ethernet or from my wireless router.

My intention was to use this setup to play digital audio through my stereo hi fi setup, either with an analogue signal or a digital signal via a digital to analogue converter. As I don't consider FLAC or mp3 audio true hi fi then I'd be happy to settle for analogue out.

At the moment all audio (around 1.6Tb) is stored on one 2Tb SATA HDD but if this setup worked out I'd buy another identical 2Tb HDD and pair them in an external RAID enclosure for backup. Such an enclosure costs less than £80 and I'm currently using one with my main computer with a pair of 4Tb (configured in a RAID 1) HDD's, almost full with video and audio files atm. Which is one reason I'd like to shift the audio elsewhere, it would free up some space on the twin 4Tb enclosure.

When I first bought the Pi Zero I've had it running 2 separate Linux OS's using my wireless Logitech keyboard and mouse, USB loudspeakers and a full size monitor. I no longer have a spare monitor though so I will need some way to view the contents of the Pi Zero setup to choose music to play back.

I was thinking one of those small touch screen monitor screens designed for the Raspberry Pi but not sure.

My confusion stems mostly from not understanding how to physically connect the audio board to the main board. To me, it looks as though it has to be soldered using one of the multi pin connectors - is that correct?

Also wondering best OS to use for a simple audio server.

Here's what I have accumulated in the case:

Pi Zero with HDMI adapter and USB2 interface socket & mini SD card
PHAT DAC Audio interface board
Mini SD card and adapter
USB Card reader, multi-format
Powered 7 port USB hub
Rasberry 2A Power supply
Zero Essentials kit, most parts used but a variety of connectors remain. And a small set of stick on feet.
Zero case consisting of several different coloured plastic layers and some nylon nuts & bolts
Wireless USB adapter with installation CD
USB to socket Ethernet connector
Samsung external DVD/CD reader/writer
Logitech wireless USB Keyboard & Mouse combo
Pair of USB loudspeakers (not needed in eventual setup)
USB to mini-USB lead (for connecting camera)
2Tb SATA HDD manufactured August 2011 full of songs and stuff

Pictures:

In the case:
714.jpg


Out the case:

721.jpg


Audio board:

724.jpg


725.jpg


728.jpg
 
Last edited:
Ad

Advertisements

floppybootstomp

sugar 'n spikes
Moderator
Joined
Mar 5, 2002
Messages
20,227
Reaction score
1,728
I've been having a look around and here's a few links. From looking it does appear that I need to solder the PHAT DAC to the Zero and it also seems I didn't need the phono (RCA) socket adapter.

How to set up a PHAT DAC

This is probably the case I have: PiBow case

The audio card

I think I'm going to have to set up the Pi Zero using the monitor from my bedroom computer and see whether I can access it from my Win 10 Machine. Somehow I doubt it, I figure I will need a small monitor local to the Pi Zero. And I have an Apple phone so I doubt I can access it with that.

Let's have a look at which small monitors are available.
 

Abarbarian

Acruncher
Joined
Sep 30, 2005
Messages
10,832
Reaction score
1,117
Well if it is this board you need to do some soldering.

https://www.adafruit.com/product/3016

Kit includes: Assembled pHAT DAC & 2x20 0.1" female GPIO header, some light soldering is required to attach the header on, or you can of course solder the pHAT right onto the Pi Zero

There is a handy pin chart of the board here at page 7,

https://cdn-shop.adafruit.com/product-files/3016/pcm5101a-q1.pdf

Once you have the thing set up you could use a standard Raspian os,

http://learn.pimoroni.com/tutorial/phat/raspberry-pi-phat-dac-install

or you could use this which looks neat,

http://www.pimusicbox.com/
http://www.pimusicbox.com/
extra info for the pimusicbox

by nickthefish » Mon Feb 08, 2016 1:08 am
I am using the Pi Musicbox image provided here: http://www.pimusicbox.com/ which runs via Mopidy

The setup instructions that amend /boot/config.txt below may help:

https://www.hifiberry.com/guides/config ... ux-3-18-x/

The PHat DAC works with dtoverlay=hifiberry-dac

Here is a better pin out diagram with some code to run to make it work ,

https://pinout.xyz/pinout/phat_dac

An this may be of use,

If you like music you are going to love this!

But for easy setup on a Pi Zero, don't follow the tutorial above, but use the one-liner that is briefly mentioned in the forum:
curl -sS get.pimoroni.com/phatdac | bash

Good with SuperCollider
Andrea_Schiller Just make sure to add:

dtoverlay=i2s-mmap

to config.txt

Source: https://github.com/raspberrypi/linux/issues/1004

As to putting the phat on the pi,

http://forums.pimoroni.com/t/phat-dac-install/1306/9


Hi Nick, did you get one of these in the packet?

https://shop.pimoroni.com/products/2x20-pin-gpio-header-for-raspberry-pi-2-b-a112

You solder that on so the black part is under the DAC and then it'll push right on to the pins on the pi. If you didn't get one I'd suggest using the contact us for on the shop site ( https://shop.pimoroni.com/pages/contact-us10 ) to contact Pimoroni and I would expect they'll sort you out.

There is a lite version of Raspbian that you can use if you are running headless which is pretty easy to do but you would need to use the terminal,

https://www.raspberrypi.org/downloads/raspbian/

The pimusicbox looks very interesting as it seems you can use a phone to control the music. Pimusic box uses Mopidy which you can use with Raspbian or other os's but it may be easier to use pimusicbox.

Have fun and post a step by step guide so that the rest of us don't have to struggle and sweat if we want to have a go at a similar project.
hysterical.gif
 

Abarbarian

Acruncher
Joined
Sep 30, 2005
Messages
10,832
Reaction score
1,117
And I have an Apple phone so I doubt I can access it with that.


Pi MusicBox
Make your Raspberry Pi stream!
Welcome to the Swiss Army Knife of streaming music using the Raspberry Pi. With Pi MusicBox, you can create a cheap (Sonos-like) standalone streaming music player for Spotify, Google Music, SoundCloud, Webradio, Podcasts and other music from the cloud. Or from your own collection from a device in your network. It won't drain the battery of your phone when playing. The music won't stop if you play a game on your phone.

Connect a 25$ Raspberry Pi to your (DIY) audio system, easily configure MusicBox and go! Control the music from your couch using a phone, tablet, laptop or PC, no tinkering required. AirPlay and DLNA streaming also included!



Features
  • Headless audio player based on Mopidy (no need for a monitor), streaming music from Spotify, SoundCloud, Google Music, Podcasts (with iTunes, gPodder directories), local and networked music files (MP3/OGG/FLAC/AAC), Webradio (with TuneIn, Dirble, AudioAddict, Soma FM directories), Subsonic.
  • Remote control it using a nice webinterface or using an MPD-client (like MPDroid for Android).
  • Also includes AirTunes/AirPlay and DLNA/OpenHome streaming from your phone, tablet (iOS and Android) or PC using software like BubbleUPnP.
  • USB Audio support, for all kinds of USB soundcards, speakers, headphones. The sound from the Pi itself is not that good...
  • Wifi support (WPA, for Raspbian supported wifi-adapters)
  • No need for tinkering, no need to use the Linux commandline
  • Play music files from the SD Card, USB, Network.
  • Last.FM scrobbling.
  • Several Pi soundcards supported (HifiBerry (DAC/Digi/AMP/+), IQ Audio, )
- See more at: http://www.pimusicbox.com/#sthash.ft4jgCSF.dpuf

:cool:
 

floppybootstomp

sugar 'n spikes
Moderator
Joined
Mar 5, 2002
Messages
20,227
Reaction score
1,728
Thanks for the reply, there's a lot to digest there.

The PiMusicBox looks hopeful.

I've quite a busy weekend but I should be able to spend Monday having a tinker, I'll report back how I get on.
 

floppybootstomp

sugar 'n spikes
Moderator
Joined
Mar 5, 2002
Messages
20,227
Reaction score
1,728
Let me talk of failure, frustration and disillusion.

Over the past several days I hooked up my Raspberry Pi Zero to my bedroom monitor and attempted to make me's an audio server. I failed. I discovered that the various OS's required for running the Zero are not user friendly.

I didn't fit the PHAT DAC audio board, I thought it prudent to get things as I wanted them before I made all those solder joints.

Amongst all the frustrations I encountered on various OS's were:

a) Couldn't access internet, either wired or wireless.
b) Where the hell is the hardware panel?
c) Where the hell is the software panel?
d) Where do I find out what OS this is and details of drives, cpu & memory?
e) How do I play a DVD or video disk?
f) How do I play audio?
g) Why am I constantly trawling the internet for hours on end searching for text commands?

Even whilst my patience stood me in good stead nothing I entered in the console seemed to work and in the end I just had to walk away and resist the temptation to smash the Zero to even tinier pieces with a large club hammer.

Searching online for obscure commands and forever seeming to run into blind alleys is not my idea of fun.

So, sorry folks, call me a loser, accuse me of lacking tenacity, point a finger at me and say 'You're stupid you are' but all I want is an easy life. I was prepared to encounter a few difficulties and knew a lot would have to be done at console level but my experience trying to do this seemed hopeless and absolutely ridiculous.

And in the end I thought I may as well hook a 2Tb RAID 1 enclosure setup to my main PC and play the audio it contains through my hi fi in the same way I do at the moment with films and audio on my current 4Tb RAID 1 enclosure setup.

Much easier.

And the Raspberry Pi and all associated components? My mate bought the lot off of me - bar the 2Tb HDD & external optical drive - for £55.00.

A sorry tale, perhaps, but no more Raspberry's in this boy's life :)
 
Ad

Advertisements

muckshifter

I'm not weird, I'm a limited edition.
Moderator
Joined
Mar 5, 2002
Messages
25,600
Reaction score
1,104
Hmmm, sounds like a game I'm playing ... at least you got a 'refund' on your 'game' :)
 

Abarbarian

Acruncher
Joined
Sep 30, 2005
Messages
10,832
Reaction score
1,117
Well at least you gave Pi making a go mate. Looks like you have found a solution to your music needs an as long as you can listen that is all that matters.
Surprised that you had so many problems though. :cool:
 

Ian

Administrator
Joined
Feb 23, 2002
Messages
19,579
Reaction score
1,303
Shame it didn't work out, I can empathise with how frustrating getting used to console commands can be! I've not tackled something on this scale for the RPi before, but I imagine the learning curve is pretty steep :eek:.

I wonder if a RPi 3 would have been a better match for it, as that comes with integrated wireless and an Ethernet port, which at least makes that first part easier. Not much use now, but perhaps if your mate runs in to problems it would be worth trying on that - all the hardware would work with one.
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top