I bought an Adafruit I2S 3W Stereo Speaker Bonnet with the 2x20 header pin pre-soldered and also the speaker set.
The bonnet does not neatly stack on top of my Raspberry Pi 3 Model B+ because of the 4 header pins between the USB sockets and the 2x20 header pins. I place the bonnet as far as it goes, as in the first photo, or I follow these pinout instructions to connect only the required pins (the two 5V, 3.3V, Ground, 18, 19, and 21) with jumper wires, as in the second photo.
I follow these installation
instructions
for the Raspberry Pi and get no errors. I reboot once, run the script again,
and reboot again. I get no sound out of
the speakers with the test, e.g. sudo speaker-test -c2
or aplay /usr/share/sounds/alsa/Front_Center.wav
.
To debug, I follow the manual instructions and confirm that all the changes from
the bash script took effect. I follow the rest of the instructions, e.g. to
disable the background playback or check that volume is at 51% with alsamixer
:
┌────────────────────────────── AlsaMixer v1.1.3 ──────────────────────────────┐
│ Card: snd_rpi_hifiberry_dac F1: Help │
│ Chip: F2: System information │
│ View: F3:[Playback] F4: Capture F5: All F6: Select sound card │
│ Item: PCM Esc: Exit │
And still, I get no sound at all.
Another problem is that the list of devices includes only the speaker bonnet, so I cannot switch to audio jack out:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 []
Subdevices: 0/1
Subdevice #0: subdevice #0
How can I get the speaker bonnet and speaker set to work? If it's a hardware fault, how can I enable the audio jack out again?