Speaker Bonnet

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
Rocco99
 
Posts: 81
Joined: Sun Jan 19, 2014 5:20 pm

Speaker Bonnet

Post by Rocco99 »

I followed the instructions given in the Adafruit tutorial. It all worked splendidly, for about an hour then nothing. No longer plays sound. Nothing I have done software wise works. I then made a new SD card with a new raspberry OS lite image and tried again. Still no sound. It is all very frustrating.
My setup is A RPI Zero W 1.3 Adafruit speaker bonnet and Adafruit speakers. I took ages getting a good clean image on the SD card, updated, rebooted then followed the instructions. HELP.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Speaker Bonnet

Post by mikeysklar »

What command had you issued that worked during your testing?

What is the output when you run the command:

Code: Select all

aplay -l 
If you are running the Pi OS GUI can you verify what you see for output device when you right click on the speaker (top right corner)?

My guess is that the Bonnet might have:

1) moved card/device numbers on a reboot
2) the output device has changed

Rocco99
 
Posts: 81
Joined: Sun Jan 19, 2014 5:20 pm

Re: Speaker Bonnet

Post by Rocco99 »

I am running this headless using SSH so I don't have a monitor or keyboard.
I got it to work briefly ( In mono) by using a different 8ohm 2W cheapo buzzer like device. So I thought it might be a power problem. Sooo I used a rpi 2.5A 5V supply to power the PI.
still no go. I'm now sure that all my boards are good, otherwise noting would ever work.

Rocco99
 
Posts: 81
Joined: Sun Jan 19, 2014 5:20 pm

Re: Speaker Bonnet

Post by Rocco99 »

I used only the commands given in the tutorial for:-
in the case of the speaker bonnet: the commands in the tutorial for the speaker bonnet
In the case of the MAX98357: The commands given in that tutorial.
both tutorial follow the same procedures and appear to be the same.

Test using: speaker-test -c2 for white noise
Or: speaker-test -c2 --test=wav -w /usr/share/sounds/alsa/Front_Center.wav for testing .wav file
OR: sudo apt-get install -y mpg123 mpg123 http://ice1.somafm.com/u80s-128-m for MP3 test

Rocco99
 
Posts: 81
Joined: Sun Jan 19, 2014 5:20 pm

Re: Speaker Bonnet

Post by Rocco99 »

This is what I get with aplay -l


card 0: 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

Rocco99
 
Posts: 81
Joined: Sun Jan 19, 2014 5:20 pm

Re: Speaker Bonnet

Post by Rocco99 »

Tinkering some more:
Workrf twice in a row with one one of these in mono mode: Thin Plastic Speaker w/Wires - 8 ohm 0.25W then failed to do anything after power down then power up and test.

Worked once with one from a pair of: Rectangular Stereo Enclosed Speaker Set with JST cable in mono mode then failed to do anything after power down then power up and test.

never works now in stereo mode with speaker bonnet and eiyjer type of speakers.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Speaker Bonnet

Post by mikeysklar »

It sounds like on occasion the stars align and you get some mono audio playback.

Can you post the following:
  • photo of your setup specifically looking the speaker connections
  • asound.conf or whatever relevant config file you have setup
The Alsa file you are playing "Front_Center.wav" is mono.

Code: Select all

$ file Front_Center.wav 
Front_Center.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 48000 Hz
The mpg123 test with a URL is a little sketchy. Can you use a local file?

I would like to confirm the wiring is correct, the sound file is stereo and the software player is correctly being routed to the bonnet for output.

Rocco99
 
Posts: 81
Joined: Sun Jan 19, 2014 5:20 pm

Re: Speaker Bonnet

Post by Rocco99 »

I'll try and do that in the morning. I've been pretty much out all day.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”