Pironman 5 Sound

How to add sound/speaker(s) to case?

You can connect a USB speaker. Just plug the USB speaker into the USB port of the PI5.

Same thing with a speaker connected to the Raspberry with a jack? Other than through the alsamixer (the speaker does not show), how do you select the sound output?

You may need to go through some steps to set the default sound card, below is an example of sndrpigooglevoi:

  1. use aplay -l to see if the soundcard is recognized.
  2. start pulseaudio: pulseaudio -D
  3. use pactl list sinks to see the serial number of the sound card in pulseaudio
  4. use pactl set-default-sink 200 to set the default sound card (200 is the serial number of your sound card)
  5. enable pulseaudio: sudo raspi-config nonint do_audioconf 1
  6. Now you can control the volume using alsamixer or the volume buttons on your desktop.

screenshot_2025-01-24_13-33-34

Excellent! I was able to define the internal speaker as the default. Now, all I need is to get my Pidog to produce sound.

Thank you

1 Like

I still cannot get a sound. I might have done something wrong in defining the default speaker. The command aplay -l gives me this:

And alsamixer:

I am a bit confused…

Thanks

We might want to close that tread about redefining the default sound card. I have reinstalled the Pidog, everything from scratch. Still no sound. I still suspect a defective speaker a/o a defective Hat.

It looks like you are using pidog, there is a program i2samp.sh in the pidog code package that automatically installs sound card drivers,https://docs.sunfounder.com/projects/pidog/en/latest/python/python_start/install_ all_modules.html
Note that sometimes you may need to run it with sudo to get sound, and it may also be a hardware problem.

Nop! It does not work. When I run i2samp.sh, I notice this error in around the middle of the process:

There is no error showing when we test the speaker at the end of the process.

Here is what alsamixer shows:

As you say, it could be a hardware problem. Is it possible to get either a new hat or a new speaker?

Thanks and Happy New Year!

Daniel Marion

not robothat found is for some PCB with ID eeprom detection, does not affect the installation and use of the driver. Please contact our customer service to communicate with us about the replacement of the robot hat, provide the courier address, etc. Customer service e-mail: service@sunfounder.com

I already did that a while ago, but if it can help, I will send the information again.

Thank you