Hi!
I am able to run basic tests of my PAM8302 2.5W class D amp that I bought from Adafruit, using the tone() method in Arduino IDE through a Mega 2560.
However, when using Mozzi synth programs, I get terrible noise and fidelity and, for example, when I set the Mozzi control loop to 1 (check control positions once per second) i can clearly hear the code loop through the speaker every second!
I have 8 potentiometers set up through A0-A7 and a couple of switches on D pins using the Mega's internal pull-ups. The whole thing is powered with 6 AAs into the Arduino's VIN, and the PAM amplifier is powered from the 5V rail. V- is grounded. Shutdown is not connected.
I'm sure I am hearing grounding noise or something, and there is just soooo much info on smoothing and quieting and low pass filtering for PWM sound.
Is there a simple circuit I can try? 1000uf capacitor across...what? 4.7nf capacitor...where? 330 ohm resistor...where? I've read so many suggestions.
Thanks!
Basic Pam8302 amplifier circuit for use with Arduinos runnin
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Fryden_learning_machines
- Posts: 3
- Joined: Sun Jan 14, 2018 1:35 pm
Please be positive and constructive with your questions and comments.