Adafruit I2S Audio Bonnet constant crackles, pops, interfere

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
_lmg
 
Posts: 3
Joined: Sat Oct 03, 2020 4:37 am

Adafruit I2S Audio Bonnet constant crackles, pops, interfere

Post by _lmg »

Hello Adafruit,

I am trying to use a I2S Audio Bonnet with a Pi Zero W but I'm getting a lot of clicks, pops, noise which are unrelated to the playback starting or ending. It gets especially bad when data is being transfered over WiFi, e.g. when I'm updating, or streaming from my NFS server (basically when any kind of data being transmitted over the wifi interface) or even when the CPU is under load. This behaviour is alsamixer-volume agnostic (it happens regardless of the volume level).

I'm running the latest version of Raspbian, I've used the script from the tutorial for setting everything up, and I've tested it with and without /dev/zero enabled. I went through the manual installation too and verified every parameter was correct. I tried getting power from my PC and from a USB power supply, and I've tried using it with a pair of powered computer speakers as well with a Panasonic HiFi set. Everything else seems to be working nicely for the moment. I wasn't able to find anything about this online.

Thank you in advance for the help!

User avatar
_lmg
 
Posts: 3
Joined: Sat Oct 03, 2020 4:37 am

Re: Adafruit I2S Audio Bonnet constant crackles, pops, inter

Post by _lmg »

Update: I was able to remove the noise/interference by removing the hat and connecting it with jumper wires. I still get some clicks here and there but it's okay now. I could potentially isolate the Pi with copper tape but for now I'm happy with the way it is.

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

Re: Adafruit I2S Audio Bonnet constant crackles, pops, inter

Post by mikeysklar »

@_Img,

We had a great thread and user contributor input on getting rid of the bootup pops. We also have a decent guide on user space adjustments that can be made to the mixer to help reduce the pops.

i2s tweaks:
https://learn.adafruit.com/adafruit-spe ... i2s-tweaks

kernel driver discussion about pops
https://raspberrypi.stackexchange.com/q ... on-playbac
https://github.com/raspberrypi/linux/is ... -346409470

potential patch with caveats
viewtopic.php?f=50&t=170012&p=831774&hilit=i2s#p831774

User avatar
_lmg
 
Posts: 3
Joined: Sat Oct 03, 2020 4:37 am

Re: Adafruit I2S Audio Bonnet constant crackles, pops, inter

Post by _lmg »

Hi! I ended up connecting the bonnet to the raspberry pi zero w using jumper cables. It's not as compact but it works, the noise is completely gone and so are the clicks.

Some people decide to shield their pi with copper tape but having it sandwiched wasn't a priority for me, so I went for the quick and easy fix.

I found this thread on reddit where a similar issue was mentioned: https://www.reddit.com/r/adafruit/comme ... tal_noise/

Hope this helps!

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

Re: Adafruit I2S Audio Bonnet constant crackles, pops, inter

Post by mikeysklar »

Thanks this helps. Appreciate you sharing your solution.

User avatar
k9gardner
 
Posts: 5
Joined: Tue Jun 01, 2021 10:32 pm

Re: Adafruit I2S Audio Bonnet constant crackles, pops, inter

Post by k9gardner »

I took a different approach, and have run into trouble.

I had audio working on my i2s audio bonnet, and it actually sounded quite ok. There were unwanted clicks and pops during playback, however, which I had lived with during initial testing. But today when I came home from work and went into the room where the Zero W and audio bonnet had been connected for a couple of days (unused during that time), I was hearing some awful pops clicks and groans coming out of the speakers, so I thought I needed to take care of this once and for all.

I believed I was following the suggested solution by running the script from your setup page, https://learn.adafruit.com/adafruit-i2s ... y-pi-usage. But I guess that was the script I must have used when I first installed the thing, no? In any event, I re-ran it, several times actually, both with and without enabling /dev/zero playback service, and the situation now is that I have no audio program material output at all. speaker-test doesn't work, and I've got cmus installed on here, which was working before but not now. I still do have some pops and clicks, too, but seemingly at a lower level. Not sure if that that's related to other factors however, so I'm not sure I solved or changed anything on the core problem; I've mainly just introduced a new one: no sound!

What might I have done, and how can I get the sound back?

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

Re: Adafruit I2S Audio Bonnet constant crackles, pops, inter

Post by mikeysklar »

@k9gardner,

Please paste you question into a new post so we can help you troubleshoot the lack of sound.

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”