My PiDog did have sound, but has now lost it. Steps I’ve taken to try and rectify are:
I have reinstalled the i2samp.sh multiple times and restarted the Pi. I have also run the sudo killall pulseaudio command, and then tried to run audio again, and it didn’t work.
I have also installed mplayer and tested with that, but still no sound. I’ve attached a screenshot of the attempt to run with mplayer:
I’ve done a physical inspection and there is no heatsink on my Pi that might be causing pressure on the speaker.
Can you please remove the robot hat and take a picture of the back side and confirm to us if the speaker is burned out yet.
Hello, pics attached. Many thanks
A replacement speaker will be sent to you, and a member of the after-sales team will contact you via your e-mail address later.
Tip: After replacing the speakers, please reinstall i2samp.sh and then go to run the sound example to see how it works.
Hi. I just bought PIDOG, the first installation was fine and the sound test was OK. After that, sound is not working anymore.
I tried to reexecute i2samp.sh several times, no sound.
I reinstalled all SD card from scratch, no sound.
I tried to play a wav file, no error but no sound.
please help!
systemctl restart aplay.service
set volume to 100
Simple mixer control ‘PCM’,0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 255
Front Left: 255 [100%]
Front Right: 255 [100%]
We can now test your i2s amplifier
Set your speakers if possible!
Do you wish to test your system now? [y/N] y
Testing…
speaker-test 1.2.8
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2229 to 8916
Period size range from 1114 to 1115
Using max buffer size 8916
Periods = 4
was set period_size = 1114
was set buffer_size = 8916
0 - Front Left
1 - Front Right
Time per period = 2.851163
0 - Front Left
1 - Front Right
Time per period = 2.997056
0 - Front Left
1 - Front Right
Time per period = 3.018413
0 - Front Left
1 - Front Right
Time per period = 3.016675
0 - Front Left
1 - Front Right
Time per period = 3.018408
All done!
card 1: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 [HifiBerry DAC HiFi pcm5102a-hifi-0]
- Subdevices: 0/1*
- Subdevice #0: subdevice #0*
pi@raspberrypi2024:~/pidog/sounds $ aplay angry.wav
Playing WAVE ‘angry.wav’ : Signed 24 bit Little Endian in 3bytes, Rate 44100 Hz, Stereo
pi@raspberrypi2024:~/pidog/sounds $
I tried to force aplay to use pidog card:
aplay -D plughw:1,0 XXX.wav
but I got an error “Device or resource busy”
For info, I also noticed that, after reboot, the card number (aplay -l) of pidog audio card sometimes change from 1 to 2, and it is 1 again after executing i2samp.sh… but the error is always the same.
Can you remove the robot hat and take a picture of the back and verify that the speakers are not burned out.