Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 | RPi-Jukebox and Pirate Audio do not work together #1369

Closed
kkmichi opened this issue Apr 6, 2021 · 2 comments · May be fixed by #1112
Closed

🐛 | RPi-Jukebox and Pirate Audio do not work together #1369

kkmichi opened this issue Apr 6, 2021 · 2 comments · May be fixed by #1112

Comments

@kkmichi
Copy link

kkmichi commented Apr 6, 2021

as it may not be a bug, please feel free to relabel the issue - i am not sure how to label it...

Bug

Hello, I try to get a Jukebox for kids working with Raspberry Zero WH, onoff-Shim and Pirate Audio 3W DAC. After many attempts, including manual configuration of /etc/mpd.conf, /etc/asound.conf, etc. I do not get it working. The RPi-Jukebox/Phoniebox does not seem to work together with Pirate Audio DAC (audio, display and buttons). I tried many different things (always with new, clean install), but for the description below I tried to follow the "basic" attempt. What else can I do? (for information, I also open this issue at pirate audio - pimoroni/pirate-audio#52). I am a longtime Linux user with basic knowledge as user, but without deeper knowledge or even programming experience.

What I did

  1. fresh install of raspbian lite (Samsung SD)
  2. edit of /boot/config.txt:
  • config_hdmi_boost=4
  • #dtparam=audio=on
  • dtoverlay=hifiberry-dac
  • dtparam=spi=on
  • gpio=25=op,dh
  1. create file /boot/wpa_supplicant.conf for Wlan-connection
  2. create empty file /boot/ssh
  3. because of error messages: input sudo dpkg-reconfigure locale and export LC_ALL=C
  4. insert static IP configuration in /etc/dhcpcd.conf
  5. sudo apt update and sudo apt full-upgrade
  6. set up onoff Shim: curl https://get.pimoroni.com/onoffshim | bash
  7. reboot
  8. Set up of RPi-Jukebox cd; rm buster-install-*; wget https://raw.githubusercontent.com/MiczFlor/RPi-Jukebox-RFID/develop/scripts/installscripts/buster-install-default.sh; chmod +x buster-install-default.sh; GIT_BRANCH=develop bash ./buster-install-default.sh with following selection:
  • WiFi: no
  • iFace: No, Master
  • Spotify: no
  • MPD: yes
  • Defalut location: yes
  • GPIO-Control: yes
  • last part of output:
    Configuring MPD...
    Updating DB (Shopping list #2) ...
    volume: n/a repeat: off random: off single: off consume: off
    Starting dhcpcd service...
    Synchronizing state of dhcpcd.service with SysV service script with /lib/systemd/systemd-sysv-install.
    Executing: /lib/systemd/systemd-sysv-install enable dhcpcd
    Setting owner and permissions for directories...
    amixer: Cannot find the given element from control default
  • select RFID-Reader: yes (1, Neuftech USB)
  1. reboot
  2. Set up of Pirate Audio:
  • sudo raspi-config nonint do_spi 0
  • git clone https://github.com/pimoroni/pirate-audio
  • cd pirate-audio/mopidy
  • sudo ./install.sh
  1. reboot

What happened

  • after I have proceeded as described above and reeboot, the pi started, including display. The display shows "Visit http://192.168.178.66:6680 to select content". The volume down button reduces the volume bar in the display, the other buttons give no feedback in display. Pushing the volume button has no impact on Volume status in phoniebox web interface and vice versa.
  • upload of Song with Phoniebox and playing it (via web interface) gives no feedback on display. pushing buttons has no impact.

I expected this to happen

I expected, that I can use RPi-Jukebox / phoniebox with RFID management and use the pirate audio for audio output, display and buttons. I expected it to work, as it is described in https://github.com/MiczFlor/Rpi-Jukebox-RFID/blob/develop/components/audio/PirateAudioHAT/README.md and #950.

Further information that might help

notes:
https://github.com/MiczFlor/Rpi-Jukebox-RFID/blob/develop/components/audio/PirateAudioHAT/README.md

Software

Base image and version

2021-03-04-raspios-buster-armhf-lite.img

Branch / Release

Installscript

onoff shim: curl https://get.pimoroni.com/onoffshim | bash
Jukebox: cd; rm buster-install-*; wget https://raw.githubusercontent.com/MiczFlor/RPi-Jukebox-RFID/develop/scripts/installscripts/buster-install-default.sh; chmod +x buster-install-default.sh; GIT_BRANCH=develop bash ./buster-install-default.sh
Pirate Audio: git clone https://github.com/pimoroni/pirate-audio cd pirate-audio/mopidy sudo ./install.sh

Hardware

Raspberry Pi Zero WH
on off Shim
Pirate Audio 3W DAC
Neuftech USB Reader

RaspberryPi version

Zero WH

RFID Reader

Neuftech USB Reader

Soundcard

Pirate Audio 3W DAC

Other notable hardware

@s-martin
Copy link
Collaborator

s-martin commented Apr 6, 2021

Hi, although the Readme unfortunately doesn’t really state this, but at the moment the Pirate Audio HAT only works with the Spotify edition.

There is a PR #1112 which should implement this also for Classic edition, but unfortunately at the moment I don’t really have the time to fix this. See also #1109

@s-martin
Copy link
Collaborator

Closing now as a duplicate of #1109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants