I’m having issues playing back audio on a pi zero, using my recently bought pHAT DAC!
I followed the installation setup, both the automatic one https://get.pimoroni.com/phatdac | bash and the manual one too check if everything was fine.
I’m running Jessie.
If I go to the Audio Devices panel, I get this error:
“No ALSA audio devices were detected. Enable the internal audio device, or connect a USB or HAT audio device.”
The audio icon is greyed out, and I cannot change the volume.
I’m trying to play back audio using this speaker .
I tried playing an example mp3 file using omxplayer as suggested in the official guide on the raspberry pi page but I had no luck.
Don’t know how I missed that, but yes if your Pi has a male header you have your stacking header soldered in the wrong way round. You have bottom side up instead of down.
Yep. The header’s on the wrong side… however… if you solder a male header on the underside of a Pi Zero, then it should work just fine!! Unconventional, but…
Today or tomorrow I will receive the adafruit amplifier and I will proceed to connect the pHAT to it and then to the speakers, which audio test should I perform in order to understand if the board is working as it should?
Thanks!
I’ve put a female on the bottom side before. Makes it easy to plug a Pi Zero into the pHat Stack etc, just like it was a pHat. Using a stacking header would give you the best of both worlds so to speak. You give up a little headroom though if you only use one side. I would but the female side down and male pins on top of the Pi Zero. Nothing says you have to, its just how I would do it. ;)
Thank you guys.
Can I just ask you how should I test if the audio is working fine (I read somewhere on the forum that omxplayer is not suitable for this) ?
I’m using the festival tts library for my project, could I just test it with festival?
On my Pirate Radio pHat Beat I did as follows from the terminal window.
sudo systemctl stop pulseaudio
speaker-test -c2 -t wav
I’m not if it applies to the pHat DAC though?
@V00D00 I’m sorry but in the end I moved to another board (UDOOx86) which worked well. I’ll try again in the future and update the post in case it works!