After asking a few questions round here about Pirate Audio (in particular in this thread: [Pirate Audio] Extending 'raspberry-gpio' Mopidy plugin), here is the box I created for my son, the Lespa (Lecteur Spotify Autonome in French, Autonomous Spotify Player, I wasn’t too inspired to find the name :) )
The box is based on a Raspberry Pi 0W, a Pirate Audio Amp and some mini arcade buttons. The box is made of Ash and matt black PMMA. I am lucky enough to have access to a cnc router and a laser cutter, so I could start from Ash boards, and was able to add some nice engraved details (even two pokemon drawings on the box sides).
The idea was to provide a device to listen to Spotify without any screen. So I linked the three red buttons of the first picture to three Spotify playlist and add a function to the mopidy_raspberry_gpio plugin to make it play them. Plus buttons for volume up and down and next, prev and play/pause. My son is delighted and the user experience is quite smooth. The mini arcade buttons do not seem too robust though and I already had to change a faulty one.
It was quite fun and makes me start to code in Python, which is nice.
I still have a few questions:
- Is the pinout of the boards available at https://pinout.xyz/pinout/pirate_audio_3w_amp still valid? I presume so but I tried to link the audio board to the rpi with DuPont cables (without the buttons I didn’t need) and I didn’t succeed in making the screen work. I did it twice and each time, I’d swear I was correct in the wiring. Everything worked ok except for the screen. I used a GPIO ribbon and everything works fine, but it is a bit bulky and there are some efforts on the connections I don’t like.
- In mopidy-pidi, I changed the invitation to connect to the Iris web app to display an image using the build-in function of displaying art. Two questions here : I remove the blur to be able to have the crisp image. Is there a way to set it back outside of the _init parts of the functions to get back to the normal functionality when displaying album art? It tried to set the variable back to True with no success. Also, it seems to have a gray overlay over it desappearing when I set the volume for instance. Is there a way to remove it just for this waiting image.
- The main annoyance of the box is the loooong boot time of the rpi 0W with Raspbian. Would there be a way to add a splash screen to show something during the boot time? Using Python is possible? Is there a way to optimize the boot time? Trying another linux flavour?