First time in the forum, sorry if I posted this in the wrong place. I’m having trouble with my amp/speaker output. It’s outputting a high pitched whine no matter what changes I make. I’ve tried it with two separate speakers, resoldered the terminals, different wires, etc. I’ve also messed around with different filter combinations than my original 1kohm/47uF, and all that happened was the volume was diminished(it’s rather quiet to begin with). Any ideas?
Edit: The circuit I have is a pro micro(16Mhz) using a PWM with fast timer 4 to drive a adafruit pam8302, which outputs to a 4ohm speaker. in between the audio connections is where I have the low pass filter. I have also added a schematic of the circuit.