# Lost Sound on the PiDog

**URL:** <https://forum.sunfounder.com/t/lost-sound-on-the-pidog/2652>\
**Category:** Robotic kit for Raspberry Pi\
**Created:** [February 16, 2025, 8:31am UTC](https://forum.sunfounder.com/t/lost-sound-on-the-pidog/2652 "2025-02-16T08:31:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![seachellemz](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@seachellemz](https://forum.sunfounder.com/u/seachellemz)\
**Post date:** [February 16, 2025, 8:31am UTC](https://forum.sunfounder.com/t/lost-sound-on-the-pidog/2652/1 "2025-02-16T08:31:56Z")

</div>

I had sound working at one point on the pidog, but I have now lost it. I have rerun the i2samp.sh script multiple times, rebooted multiple times, I have run sudo killall pulseaudio  
sudo killall aplay, but have not been successful at getting the audio working. Here is the output I am now getting when I run i2samp.sh:

sudo bash i2samp.sh  
install robot-hat soundcard driver \>\>\>  
script version: 0.0.4  
user: azaremskas

apt update…  
Hit:1 [Index of /raspbian](http://raspbian.raspberrypi.org/raspbian) bullseye InRelease  
Hit:2 [Index of /debian](http://archive.raspberrypi.org/debian) bullseye InRelease  
Reading package lists… Done  
Building dependency tree… Done  
Reading state information… Done  
All packages are up to date.  
install alsa-utils …  
Reading package lists… Done  
Building dependency tree… Done  
Reading state information… Done  
alsa-utils is already the newest version (1.2.4-1+rpt1).  
The following package was automatically installed and is no longer required:  
libfuse2  
Use ‘sudo apt autoremove’ to remove it.  
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.  
install pulseaudio …  
Reading package lists… Done  
Building dependency tree… Done  
Reading state information… Done  
pulseaudio is already the newest version (14.2-2+rpt1).  
The following package was automatically installed and is no longer required:  
libfuse2  
Use ‘sudo apt autoremove’ to remove it.  
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.  
install pulseaudio-utils …  
Reading package lists… Done  
Building dependency tree… Done  
Reading state information… Done  
pulseaudio-utils is already the newest version (14.2-2+rpt1).  
The following package was automatically installed and is no longer required:  
libfuse2  
Use ‘sudo apt autoremove’ to remove it.  
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.  
install jq …  
Reading package lists… Done  
Building dependency tree… Done  
Reading state information… Done  
jq is already the newest version (1.6-2.1).  
The following package was automatically installed and is no longer required:  
libfuse2  
Use ‘sudo apt autoremove’ to remove it.  
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.  
install sox …  
Reading package lists… Done  
Building dependency tree… Done  
Reading state information… Done  
sox is already the newest version (14.4.2+git20190427-2+deb11u2).  
The following package was automatically installed and is no longer required:  
libfuse2  
Use ‘sudo apt autoremove’ to remove it.  
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

check robothat 5 …  
find: ‘/proc/device-tree/_hat_’: No such file or directory  
hat\_dir:  
No robothat 5 found  
robothat\_spk\_en: 20  
is\_with\_mic: false

config soundcard without mic …

add dtoverlay hifiberry-dac in /boot/config.txt …  
activated dtoverlay hifiberry-dac …

Trying to load dtoverlay hifiberry-dac …  
get\_soundcard\_index …  
soundcard sndrpihifiberry index: 0

config /etc/asound.conf without mic …  
set ALSA speker volume to 100% …  
Simple mixer control ‘robot-hat speaker’,0  
Capabilities: pvolume  
Playback channels: Front Left - Front Right  
Limits: Playback 0 - 255  
Mono:  
Front Left: Playback 255 [100%] [0.00dB]  
Front Right: Playback 255 [100%] [0.00dB]

config pulseaudio …  
raspi-config enable pulseaudio …  
run pulseaudio …

get\_sink\_index …  
pactl: invalid option – ‘f’  
sink index not found.  
Sometimes you need to reboot to activate the soundcard.  
set default sink …  
sink index is null  
set default Pulseaudio volume to 100% …

Do you wish to test speaker now? [y/N] y  
testing speaker …

speaker-test 1.2.4

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  
Write error: -32,Broken pipe  
1 - Front Right  
Write error: -32,Broken pipe  
Write error: -32,Broken pipe  
Time per period = 16.027757  
0 - Front Left  
1 - Front Right  
Time per period = 3.040588  
0 - Front Left  
1 - Front Right  
Time per period = 3.018514

All done!

I have also attached a photo of the speaker on the HAT.

---

<div class="post-metadata">

**Author:** ![seachellemz](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@seachellemz](https://forum.sunfounder.com/u/seachellemz)\
**Post date:** [February 16, 2025, 8:33am UTC](https://forum.sunfounder.com/t/lost-sound-on-the-pidog/2652/2 "2025-02-16T08:33:45Z")

</div>

![IMG_0595](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/e/e922207928e43360b6c123b2109b84a861429a71.jpeg)

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [February 17, 2025, 2:47pm UTC](https://forum.sunfounder.com/t/lost-sound-on-the-pidog/2652/3 "2025-02-17T14:47:57Z")

</div>

Please contact the after-sales email: [service@sunfounder.com](mailto:service@sunfounder.com) and they will arrange to send you a replacement speaker.

---

<div class="post-metadata">

**Author:** ![seachellemz](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@seachellemz](https://forum.sunfounder.com/u/seachellemz)\
**Post date:** [February 17, 2025, 3:13pm UTC](https://forum.sunfounder.com/t/lost-sound-on-the-pidog/2652/4 "2025-02-17T15:13:35Z")

</div>

See the email below. Can you please send the replacement speaker to

Michelle Zaremskas  
3333 S Atlantic Ave, APT 1904  
Daytona Beach, FL 32118

Please share the tracking information so that I can keep an eye out for it.

Michelle Z

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [February 18, 2025, 6:45am UTC](https://forum.sunfounder.com/t/lost-sound-on-the-pidog/2652/5 "2025-02-18T06:45:00Z")

</div>

We will have an after-sales person contact you later.

---

<div class="post-metadata">

**Author:** ![trebor](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@trebor](https://forum.sunfounder.com/u/trebor)\
**Post date:** [February 21, 2025, 9:07pm UTC](https://forum.sunfounder.com/t/lost-sound-on-the-pidog/2652/6 "2025-02-21T21:07:16Z")

</div>

I have exactly the same problem. Suddenly the sound stopped and cannot be reinitialized. The speaker seems burnt (brown edge)… So I contacted the support…

---

<div class="post-metadata">

**Author:** ![trebor](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@trebor](https://forum.sunfounder.com/u/trebor)\
**Post date:** [February 22, 2025, 11:18am UTC](https://forum.sunfounder.com/t/lost-sound-on-the-pidog/2652/7 "2025-02-22T11:18:16Z")

</div>

I think the reason might be, that the loudspeaker is placed on the RobotHat unfortunately dircetly above the Raspberry Pi 4 B CPU…this is quite “hot” place. If I hopefully by any chance get a replacement, I recommend putting it somewhere else in the PiDog “body”…if you use a Raspberry 4B…

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [February 24, 2025, 10:11am UTC](https://forum.sunfounder.com/t/lost-sound-on-the-pidog/2652/8 "2025-02-24T10:11:11Z")

</div>

Thank you very much for your suggestion.  
Our next robot hat upgrade, the speaker will be put on the top side of the pin.
