Raspberry pi pico noise issue while mp3 is playing through speaker

March 6, 2023, 20:46

deitysupreme

I hooked up a low pass filter to my raspberry pi pico, I thought it removed the noise but it turns out it was just the audio file playing, Its not an issue with the file its all the right sample rate, I did the math and made sure the frequency was okay as well, I'm not sure why its still making noise and it only happens while audio plays and discontinues once the power to the amplifier as stopped.

andy_s

what noise

andy_s

what LPF

deitysupreme


andy_s

oh no...

andy_s

use full circuit

deitysupreme

Full circuit?

deitysupreme

Oh wait the same one we talked about last time?

andy_s

take inspiration from pi4 schematics

andy_s

yes

deitysupreme

Should I build that entire schematic?

andy_s

ommit U5, ommit C88, ommit D4 and use only one branch.

andy_s

this is for stereo

deitysupreme

Oh right I’m using mono anyway

andy_s

so basically just this

deitysupreme

Ohhhh I don’t use the op amp right?

deitysupreme

2nd question do I need to calculate the total resistance and capacitance to find the cutoff frequency?

andy_s

this is original circuit used on raspberry.

andy_s

it should work for you as well.

deitysupreme

so copy the values as shown

deitysupreme

?

andy_s

yes

deitysupreme

okay, thank you

andy_s

You have lpf, but you do not limit dc at all.

andy_s

Also what noise

andy_s

Provide recording

andy_s

That sounds like regular hiss

deitysupreme

Is there a way to stop it?

deitysupreme

or am I just stuck with it

andy_s

Did you build that filter?

deitysupreme

I did

andy_s

No change?

deitysupreme

It reduced it

andy_s

Yay

deitysupreme

thank you

andy_s

Not weigh then i guess

deitysupreme

weigh?

andy_s

Enough

andy_s

Autocorrect

deitysupreme

Do I just keep filtering it?

andy_s

Wdym

deitysupreme

Can i use multiple low pass filters

andy_s

Keep that filter between pi and amp

andy_s

That won't help

deitysupreme

what would help? and would there be any way to reduce the noise completely

andy_s

I would need to see that noise on spectrum analyzer to see what it is

andy_s

I doubt you have oscilloscope

deitysupreme

Got one in college but doubt they are about to let me whip out my circuit lmao

andy_s

You could ask

deitysupreme

I might tbh

andy_s

No harms there

andy_s

Btw... what are you trying again?

andy_s

Ah right, custom playback

andy_s

What are parameters of your mp3 <@341973065057566720> ?

andy_s

Bitrate and samplerate

deitysupreme

64kbps, 24000 sample

andy_s

Mhm...

andy_s

And you are sure you used spi pin

deitysupreme

on the amp or on the input for audio

andy_s

On pico

deitysupreme

I used the SPI0 RX pin

deitysupreme

GP0

andy_s

Try opposing corner...

andy_s

Gp16

andy_s

You got it upside down

andy_s

<@341973065057566720>

deitysupreme

its the same

deitysupreme

when i flip it

andy_s

Show your code

deitysupreme

import board import audiomp3 import audiopwmio audio = audiopwmio.PWMAudioOut(board.GP16) decoder = audiomp3.MP3Decoder(open("GO.mp3", "rb")) audio.play(decoder)

andy_s

Looks fine

deitysupreme

I'll try to figure it out, I think its a grounding issue

andy_s

Could be

andy_s

Or power

andy_s

Try different power supply

deitysupreme

I’ll try

deitysupreme

no changes

deitysupreme

not sure whats causing it

deitysupreme

<@456538086453805068> I apologise for the ping, Do you think it would be better for me to use a raspberry pi 3 to act as an audio interface rather than a pico?

deitysupreme

I have a raspberry pi 3B I have access to and could use, as its currently lying around

andy_s

Gibe it a try

deitysupreme

I’ll set it up later and see what happens