Pirate Radio Project Enhanced


Hi everyone,

I would like to introduce you to a project based on Pimoroni Pirate Radio that Santa brought this year ;) As it has just started a few days ago, I will be sharing with you the progress on the go.

The goals are to:

  • find the best available software solution, which will:
    • be compatible with PhatBeat DAC, together with it’s VU meter and buttons
    • provide an up-to-date mobile-friendly Web UI which is easy to navigate, yet powerful. An Android app would be nice to have as well
    • support playback of Internet radios & podcasts and Youtube[/list]
  • build a case that would make the Pirate Radio truly portable
  • and last, but not least, make that thing something all the expensive BT speakers owners would be jealous of

OS & Software

By default, Pimoroni suggests to choose Raspbian OS and install PhatBeat DAC libraries together with VLC-based project on top of it for music player capabilities with Web UI. It’s a great start to see what PhatBeat DAC is capable of in terms of sound quality, volume, it’s awesome VU meter and buttons. However, it is very poor when it comes to the Web UI and overall remote controlling features. Therefore, I’ve started a research on available music-oriented software or whole OS’es or for RPi that represent a modern approach and provide fully-featured Web UIs, possibly together with an Android app. I’ve finished with those:

Here are my experiences with them:

Raspbian OS + Mopidy


It’s one of the best combinations. Thanks to Raspbian OS we have a great support community, and Pimoroni officially supports this OS as well with their libraries! Therefore, simply speaking, we are getting all the good from default recommended setup (sound quality, volume, VU meter), and enhance it with great Mopidy software which based on MPD. Mopidy provides a plugin-rich platform that is quite flexible and extensible. There is a wide choice of available Web UI’s as well. I personally like Iris the most, for it’s modern design, usability and stability. Additionally, since it’s based on MPD, there are a few Android applications that allow controlling it remotely. While most of them are quite ugly in design, one of them - Remotedy - is pretty and functional. Another point for Mopidy :)

However, there are a few bottlenecks I found while playing with this setup. First of all, it’s the codecs. After you install Mopidy, you will find out that only a few music sources work out-of-the-box. Mopidy is coupled with GStreamer (however, I’ve seen plugins that replace GStreamer with MPlayer) , and by default only the “good” ones are installed. Therefore, the tutorials suggest installation of the “bad” and “ugly” as well… But that sometimes is still not enough. In my case, I couldn’t also play MP3s - turned out I’m missing the Fluendo MP3 extension. MP3 is not supported by default? :? On the other hand, even though there is quite a community around Mopidy, not all the basic flows are covered by plugins available. Example? The Youtube plugin is very poor, and there is no easy replacement…

At this point, I’ve been 80% satisfied, made an image of SD card, and decided to search further…

Loose thoughts and experiences:

  • Internet radios are not supported out of the box. After installing Mopidy-TuneIn, you have access to all TuneIn stations, however they are quite hidden in the Web UI. I don’t know if it’s specific to Iris UI, but there is no dedicated “Internet Radio” tab, you need to “Browse” like you would play sth local, then “TuneIn”, and then choose something from the categories…

Pi MusicBox OS


Not tested yet…

Volumio OS


Volumio is probably the best out-of-the-box solution for music-oriented RPi setup. It has the prettiest UI, many functions are already inbuilt, plugins are easily available, and is overall well-thought. It is lacking an Android app to control it (or rather there is an official app, but it’t not free, and has bad ratings), but the Web UI is very mobile-friendly and you could easily create yourself a shortcut to it. It’s also the only OS that took care of wireless headless setups (without monitor, keyboard and wired LAN). Setting it up with RPi Zero W was a breeze thanks to a hotspot that is automatically created on first boot - connect to it, go to http://volumio.local, and you are welcomed with a Configuration Wizard that will take you through the most important settings you need to let the fun begin. Sounds great so far :) Or … not.

Even though Volumio has an inbuilt support of many I2S DAC’s (together with PhatBeat), it is tightly coupled with ALSA audio sink… In result, of course, we are able to listen to music, but the maximum volume will be about 25% of what the hardware is capable of… I don’t know why PhatBeat DAC does not play well with ALSA, but apparently Pimoroni is aware and their libraries do replace it with PulseAudio sink. Any of advice found on the Internet, and anything I tried, failed to fix the problem with ALSA. Therefore, even though Volumio team struggles with replacing ancient ALSA with PulseAudio (bugs raised in 2015, not yet solved), and even though every trace of attempt to use Volumio with PulseAudio I found didn’t succeed,
I decided to try as the world runs fast, and what you tried 3 months ago, could have become possible today :) I will document that in separate topic,
but yes, it’s possible, however I’m yet to solve lack of volume control in such setup (I have an idea though).

That’s my current setup, and in the nearest future, I will be elaborating on it.

Loose thoughts and experiences:

  • Volumio is a bit buggy when you play too much with it. Some switches do not work in settings, when you create a playlist it won’t show up, you need to refresh page (there is a bug registered, not solved yet)…

RuneAudio OS


RuneAudio OS is yet another project based on MPD, however it’s even more specific than Volumio. I mean, it is probably one of the best out-of-the-box solutions, but only if what you have is officially supported. Otherwise, it is the least friendly solution I stumbled upon. First of all, RPi Zero is not supported even though it premiered in 2015… Second of all, the authors did not understand when someone asked for a possibility of wireless headless setup… Cables in 2017? Come on… Third of all, it is based on Arch Linux, it has dynamic filesystem analogic to Volumio, the default user is root, there is no apt-get, no sudo, so running PhatBeat library installer is a no-go… Plus, any manual changes of the OS files are heavily discouraged by RuneAudio team, as you may clash with their deamon observing the filesystem and making changes to it… Yes, PhatBeat DAC is kind of supported (Hifiberry DAC is supported which is same thing), but RuneAudio is tightly coupled to ALSA as well, so the sound is too quiet to accept.

Having learned all that, I backed out.

piCorePlayer OS


Not tested yet…

To sum up, the crucial requirement is for the software to work well with PulseAudio, as otherwise, the setup with PhatBeat DAC will never stand up to it’s purpose. Then, it all comes down to playback capabilities and UI that feels like you paid for it… :)

My current choice, considering the best experience I got so far, is Volumio :) However, I’m still straightening a few things out with it so it could be a daily driver rather than something I have to play from command-line with often…


When it comes to hardware, there are a few things I would like to change. However, the very first thing I will focus on is creating a proper case for my project. I would like a full box rather than a faceplate with wobbly backlegs like it is now. Since I own a 3D printer, I will probably create soon a project that I will print out that will be an extension to acrylic sheets provided in the kit. I’m aware there is an existing project available, but it’s just a speaker chamber leaving the boards uncovered… Additionally, I’m also thinking of another case that would also pack a place for powerbank, to make the whole thing truly portable :)

That’s all for now, thanks for your interest :) I will be appending the above as soon as I progress on the project. Stay tuned!



Cool project, very interesting.

I only had the pHat Beat so I was making my own case anyway. What I did was repurpose and old subwoofer box from my Logitech R20 speakers. The amp had died so I just gutted everything. I mounted the pHat Beat where the subwoofer used to be. The VU meter is visible through the speaker cloth. I mounted the pHat beat to a Ninja diffuser, and then mounted that to the case. I put new wires on the speakers and wired them to the pHat Beat. I can’t access the buttons on the pHat beat, wasn’t all that fussy for them anyway to be honest, so I wired up my own buttons to the appropriate GPIO pins with a proto pHat. I used mini arcade buttons and mounted them in the top of the box. Black on Black.

Full build pictures here, https://1drv.ms/f/s!AjOYwiwlwDtpgrJY6ORLsK5AVpwNuw

I had an IR remote control hooked up but it didn’t work reliably. It would just randomly stop working. Might have been the cheap remote I was using though? Or my code, not sure. I was usually running headless when the remote quit so I never saw what happened. I have plans to buy a good quality media remote and have another go. Not sure when that will happen though. My thread on how I did it is here if you want to have a look see. Use a media keyboard with your pHat Beat, can it be done?


@micx @alphanumeric here’s another radio build: http://www.bobrathbone.com/raspberrypi_radio.htm


Thanks for that link. At some point I want to add a small display showing what station/channel its on, and maybe the song playing.