Closed jszust closed 1 day ago
Thanks for this howto!
@s-martin just wanted to follow up. I upgraded our phonieboxes from Pi Zero W to the Pi Zero 2 W and this is working flawlessly now. The screen is super responsive, tracks change instantaneously, and it is a complete treat. My kids absolutely love it and I cannot thank you and all the contributors enough for putting this all together. I updated my initial post with some additional steps to get it 100% there. Thanks!
Version
2.7.0
Branch
master
OS
Raspberry Pi OS Lite - 32 Bit Bullseye
Pi model
Zero 1
Hardware
Raspberry Pi Zero WH + Pirate Audio Mini-Amp with Display for Headphones + PiSugar3 + HiLetGo USB RFID Reader
What happened?
I managed to get RPi-Jukebox installed (Spotify Edition) alongside the Pirate Audio mini-amp and have been having issues with the display. I tested the display with a mopidy-only install and confirmed that it, along with the Pirate HAT GPIO buttons, all worked well without issue.
I used the following procedure to have RPi-Jukebox work with the Pirate HAT:
1) sudo apt update && upgrade on a fresh install 2) Installed RPi-Jukebox Spotify edition 3) Modified
/boot/config.txt
to: include:Comment out:
Modify the following to include the ,noaudio‘ appended text:
4) Reboot
5) sudo apt-get install the following python dependencies to assure they are all installed:
6) Install the following numpy dependency for the ST7789 library (the display will show a blank screen without this installed):
7) Stop the GPIO Control Service with the following (this will fail if you chose not to install GPIO control during the phoniebox install):
8) Modify
/etc/mpd.conf
to the following:9) Make sure SPI is activated even though the config boot line should enable it:
10) Ensure iris is given root privileges consistent with Pirate Hat installation:
11) Install Pirate Display plugins (this may fail if you missed python dependencies):
12) modify
/etc/mopidy/mopidy.conf
to map the GPIO buttons and enable the display (make sure your Pirate Audio is the newest version that uses GPIO 24 instead of 20, this is likely if it was made after 2022):13) Give Mopidy access to Pirate Audio
14) Modify the following file to correctly map the pause and play buttons (they are reversed by default):
/usr/local/lib/python3.9/dist-packages/mopidy_pidi/frontend.py
15) Reboot
This will work OK with a Pi Zero W (version 1), but if the GPIO buttons are pressed too quickly, or cards scanned very quickly, the display will stop working. The audio would also crash after some play time.
After upgrading to the Pi Zero W 2, everything works flawlessly. This is all put together with a PiSugar3 as well, so we have PhonieBox fun on the go 🥇