Hi everyone,
I hope you can help me with the problem of a humming noise when I connect an
Arduino Uno + DFPlayer mini + the amplifier Pam8403.
I tried already many things that I found in this and other forums. I would really appreciate your help!!
(instead of RX & TX of the Arduino I used pin 10 & 11, because I could not upload the code with RX and TX connected – any solution for that? that's why I also didn't use )
what I tried:
connecting the amplifier or DFPlayer module to another power supply as recommended in many forums - no change
being careful about separating the wires of the amplifier from the wires of the DFPlayer – no change
using coaxial cable to connect the amplifier or the player to the power pins – the player didn't even work
putting the diode 1N4004 between VCC and 5V and 1N4148 between RX and 11
But on that website it's also written that the pam8403 would need a capacitor with 1000-2200 uf. could that be right? I have to buy that piece first, but I will try it tomorrow and update then.
What makes you think this noise is a hum? A hum is a 50 to 120 HZ sound derived from the mains.
It sounds more like EM interference from other parts of the system. Is the clicking synchronised with anything like flashing LEDs or commands to the player?
Things you can try:-
Star wiring on the power rails. That is the power and ground connected only at one point not chained.
Reduce the impedance of the audio inputs, by putting a resistor to ground on each input.
However, mixing digital circuits and analogue ones is not easy, it is not like building Lego blocks. A lot depends on physical layout. Can you post some actual photographs of your system.
It is a compromise, the lower the resistance the lower the picked up noise but also the lower the volume. You are after the best signal to noise ratio.
As expected the wiring is a mess. Get rid of the Solderless bread board and replace it with strip board and tidy the wiring. The wires should be as short as possible and signal wires should be routined away from the digital wires.
I’d start by trying it out with a regular 4ohm speaker and see if you still have that hum to help troubleshoot your problem.
The DFPlayer has a pair of speaker outputs. It looks like you may have tried to connect to them on the board (blue/green wires), but they aren’t aligned with the wires that go off camera on the protoboard.
Solaya:
Hi everyone,
I hope you can help me with the problem of a humming noise when I connect an
Arduino Uno + DFPlayer mini + the amplifier Pam8403.
I tried already many things that I found in this and other forums. I would really appreciate your help!!
(instead of RX & TX of the Arduino I used pin 10 & 11, because I could not upload the code with RX and TX connected – any solution for that? that's why I also didn't use )
what I tried:
connecting the amplifier or DFPlayer module to another power supply as recommended in many forums - no change
being careful about separating the wires of the amplifier from the wires of the DFPlayer – no change
using coaxial cable to connect the amplifier or the player to the power pins – the player didn't even work
putting the diode 1N4004 between VCC and 5V and 1N4148 between RX and 11