Hi, I am trying to set up a halloween project 'monster in a box'
I am using an UNO which when a button is pressed it activates lights, sounds, smoke machine (all the spooky things!)
However I am having issues with the sound, I am trying to play the audio through a guitar amp via a AUX lead, so my setup so far is UNO > DFplayer > PAM8403 > Aux Lead > Speaker/amp
I tried originally with just the DFplayer but the sound was just too quiet so I introduced the PAM8403 which has helped with the volume but the sound quality is not great. Lots of static etc, the sound track has a bass-y heartbeat but it just comes out as two static sounds rather than the "dum dum" you would expect.
Would anyone be able to advise me on the wiring setup for this, I have checked all the soldering and it all seems ok to me, but I am guessing I have the outputs going to wrong way or something like that but I have tried various setups and they either sound awful or you can't hear the full sound, can you actually connect a PAM8403 to a single aux lead?
My wiring as it stands:
I have the df player on a PCB board and the 5v and gnd coming via the Arduino
so Arduino 5v to pcb + channel
Arduino gnd to pcb - channel
pcb + to dfplayer VCC
pcb - to dfplayer GND
pcb + channel to PAM8403 power +
pcb - channel to PAM8403 power -
pcb - channel to PAM8403 G input
dfplayer spk_2 to PAM8403 L input
dfplayer spk_1 to PAM8403 R input
PAM8403 Right out + to right channel on aux lead
PAM8403 Right out - to left channel on aux lead
Aux lead GND to - channel on PCB board
You are sending digital sound to a digital amplifier and you have discovered the results. Use a linear amplifier or preamplifier instead of the digital PAM8403. That device will work fine on real analog audio.
Ok I have removed the DFplayer altogether and connected the DACR pins as you suggested, there is a lot less static and the heartbeat is actually noticeable now, there is still some static though, especially on the heartbeat, the other sounds are all fine, could this be caused by bad grounding. I'm just grounding the aux cable to the PCB.