Speaker pHat problem


#1

hi
i just bought a speaker pHat from maplin i did the soldering i check continuity everything fine, i install the software i test with the test.py script the Vu meter work but the speaker didn’t. on booting process i heard a crackling noise from the speaker but nothing more, i try to see if it was detect on the i2c bus with i2cdetect cmd but no address for the pHat

thx

Matt


#2

The test.py script doesn’t test audio, just the LEDs IIRC.

Try something like speaker-test -c 2 -t wav


#3

still no sound


#4

What do you see if you run aplay -L and aplay -l?


#5

[quote=“gadgetoid, post:4, topic:7148”]
aplay -L
[/quote]


#6

Software setup looks sensible. Could you post a photo of your soldering?


#7


#8


#9

Hmm, try:

speaker-test -c 2 -t wav -D hw:0,0

If the speaker is crackling it’s getting power, the soldering looks okay, and the software setup looks okay.

There are a couple of joints on your header that could do with a slight retouch. Perhaps go over it carefully reheating the joints until they flow into little cones without adding any new solder.


#10

[quote=“gadgetoid, post:9, topic:7148”]
speaker-test -c 2 -t wav -D hw:0,0
[/quote]

i think i will try with a fresh install of raspbian jessie lite


#11

That “Device or resource busy” error is Pulse Audio.

Try: sudo systemctl pulseaudio stop

Then: speaker-test -c 2 -t wav -D hw:0,0


#12


#13

i just reinstall a fresh copy of rasbian jessie lite, did the setup but still received the same msg « device or resources busy.

but i try something else i went in the file speakerphat and i try the cmd aplay test.wav and the vumeter and the speaker was working but with the mp3 file its a big fail :/

thx


#14

Sorry it should be:

sudo systemctl stop pulseaudio

I keep getting systemd and systemv argument order mixed up!