Rpi-jukebox-rfid: Pimoroni Pirate Audio installation

Created on 16 May 2020  ·  10Comments  ·  Source: MiczFlor/RPi-Jukebox-RFID

Hello,
I discovered Pirate Audio a few days ago.

Has anyone Experience with this device?

It would be the perfect addition for the phoniebox:

  • Playback Control Buttons without soldering.
  • I2S DAC for better audio
  • A high-res color display for Cover Art
documentation enhancement installation question

Most helpful comment

Hello,

i have received my Pirate Audio HAT and everything is working (Sound, Display and Buttons).

Here are my installation steps:

  1. Install phoniebox develop
  2. Enable SPI
    sudo raspi-config nonint do_spi 0
  3. Run components/audio/PirateAudioHAT/setup_pirateAudioHAT.sh
  4. Install plugins
    sudo pip3 install Mopidy-PiDi pidi-display-pil pidi-display-st7789 mopidy-raspberry-gpio
  5. Edit mopidy configuration
    sudo nano /etc/mopidy/mopidy.conf

Add the following sections:

[raspberry-gpio]
enabled = true
bcm5 = play_pause,active_low,150
bcm6 = volume_down,active_low,150
bcm16 = next,active_low,150
bcm20 = volume_up,active_low,150

[pidi]
enabled = true
display = st7789
  1. Enable access for modipy user
    sudo usermod -a -G spi,i2c,gpio,video mopidy

  2. Reboot

Maybe someone can upgrade the setup_pirateAudioHAT.sh script for a all in one installation.

Have fun with Pirate Audio 🏴‍☠️ 🤘

All 10 comments

I'm using a Pirate Audio HAT with Phoniebox. Sound should work fine after running the setup script (https://github.com/MiczFlor/RPi-Jukebox-RFID/blob/develop/components/audio/PirateAudioHAT/setup_pirateAudioHAT.sh). I had no time to setup and test the display and the buttons yet.

Hello,

i have received my Pirate Audio HAT and everything is working (Sound, Display and Buttons).

Here are my installation steps:

  1. Install phoniebox develop
  2. Enable SPI
    sudo raspi-config nonint do_spi 0
  3. Run components/audio/PirateAudioHAT/setup_pirateAudioHAT.sh
  4. Install plugins
    sudo pip3 install Mopidy-PiDi pidi-display-pil pidi-display-st7789 mopidy-raspberry-gpio
  5. Edit mopidy configuration
    sudo nano /etc/mopidy/mopidy.conf

Add the following sections:

[raspberry-gpio]
enabled = true
bcm5 = play_pause,active_low,150
bcm6 = volume_down,active_low,150
bcm16 = next,active_low,150
bcm20 = volume_up,active_low,150

[pidi]
enabled = true
display = st7789
  1. Enable access for modipy user
    sudo usermod -a -G spi,i2c,gpio,video mopidy

  2. Reboot

Maybe someone can upgrade the setup_pirateAudioHAT.sh script for a all in one installation.

Have fun with Pirate Audio 🏴‍☠️ 🤘

Thanks for the howto. I agree we should add this to the install script.

I checked the setup_pirateAudioHAT.sh script.
Maybe line 24 should be change from gpio=25=op,dhc to gpio=25=op,dh as mentioned here.
But I don‘t know what the additional c changes with the gpio control.

I checked the setup_pirateAudioHAT.sh script.
Maybe line 24 should be change from gpio=25=op,dhc to gpio=25=op,dh as mentioned here.
But I don‘t know what the additional c changes with the gpio control.

This was most likely a typo or copy&paste error. I will fix the script accordingly.

@fredg02 I have fixed the typo.
Maybe you can extend the script by the steps I mentioned (plug-ins, mopidy.conf, Access rights)?
Unfortunately I am not very familiar with writing Linux scripts.

Thanks. I've added the steps you were mentioning. AFAICT SPI also needs to be enabled for this to work.

Ok. I have updated my post:
sudo raspi-config nonint do_spi 0

Fixed with PR #960 and #966

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bastiitsab picture bastiitsab  ·  11Comments

s-martin picture s-martin  ·  12Comments

habersatt picture habersatt  ·  8Comments

daireod1 picture daireod1  ·  9Comments

MontyMcMutton picture MontyMcMutton  ·  8Comments