DFPlayer - SOS

Hello everybody,
Need your help with DFPlayer issue, the player is connected to Arduino Mega which control other stuff including a 12V relay module.
Everything works fine, playing music and all but at some stage when I'm giving a command to the Arduino to turn off one of the loads connected to the relay module the player just turns off.
It's always happening when I'm turning off the same load, I mean, I have a 16 relay module and when I try to turn off other loads connected to the same relay module the player works normally but when I'm turning one specific load, the player just shuts down.
I've done lots of actions to prevent this issue but eventually I found out that if I disconnect the speakers connected to the player this issue doesn't occur so I understand now that I have some electromagnetic spike coming through the speaker terminal back to the player.
The load I'm turning off is an electromagnet and it is located near the speakers so I assume that when I shut it down there's some electromagnetic interference coming back to the player and causing it to shut down.
Any idea of how to solve this issue would be much appreciated.



Need your help with DFPlayer issue, the player is connected to Arduino Mega which control other stuff including a 12V relay module.
Everything works fine, playing music and all but at some stage when I'm giving a command to the Arduino to turn off one of the loads connected to the relay module the player just turns off.
It's always happening when I'm turning off the same load, I mean, I have a 16 relay module and when I try to turn off other loads connected to the same relay module the player works normally but when I'm turning one specific load, the player just shuts down.
I've done lots of actions to prevent this issue but eventually I found out that if I disconnect the speakers connected to the player this issue doesn't occur so I understand now that I have some electromagnetic spike coming through the speaker terminal back to the player.
The load I'm turning off is an electromagnet and it is located near the speakers so I assume that when I shut it down there's some electromagnetic interference coming back to the player and causing it to shut down.
Any idea of how to solve this issue would be much appreciated.




2016-08-01 23:26:32 Hi,
Thanks to follow up after that weird behavior has gone.
May I know what is the mixer you mentioned?
And as long as the issue was caused by the speaker, so it should be a problem that was called Lenz's law or simply Electromagnetic induction~ I guess.
Leff
Thanks to follow up after that weird behavior has gone.
May I know what is the mixer you mentioned?
And as long as the issue was caused by the speaker, so it should be a problem that was called Lenz's law or simply Electromagnetic induction~ I guess.

2016-07-31 07:23:49 Leff, thank you for the reply.
Actually, the setup is a bit different: I have a 5V power source driving both the relay module and the DFPlayer.
Arduino’s 5V pin is connected to the relay module as well but the Ground isn’t because I don’t want the Arduino to drive the relay module.
The DFPlayer is connected to the serial Rx and Tx on the Mega (through resistors of course).
Currently the issue is gone, I had to connect a mixer between the player and the speakers because I need to use several players in parallel and I thought to myself that if the issue is caused from the speaker terminal (after all, if I disconnect it the problem doesn’t occur), perhaps the mixer will stop that “electrical spike” to get back to the player from the speakers and the issue will disappear and indeed that what happened.
It would be great if anyone has any ideas of why this was happening.
Erkes Dmitry
Actually, the setup is a bit different: I have a 5V power source driving both the relay module and the DFPlayer.
Arduino’s 5V pin is connected to the relay module as well but the Ground isn’t because I don’t want the Arduino to drive the relay module.
The DFPlayer is connected to the serial Rx and Tx on the Mega (through resistors of course).
Currently the issue is gone, I had to connect a mixer between the player and the speakers because I need to use several players in parallel and I thought to myself that if the issue is caused from the speaker terminal (after all, if I disconnect it the problem doesn’t occur), perhaps the mixer will stop that “electrical spike” to get back to the player from the speakers and the issue will disappear and indeed that what happened.
It would be great if anyone has any ideas of why this was happening.

2016-07-30 00:14:44
MP3 player should be controlled through Serial port, however, the relay is controlled by Digital the relay can effect the MP3 module?? There might be several reasons:
I'm giving a command to the Arduino to turn off one of the loads connected to the relay module the player just turns off.
MP3 player should be controlled through Serial port, however, the relay is controlled by Digital the relay can effect the MP3 module?? There might be several reasons:
- The first one might be related to power issue, when the module was shut down, it effects the Arduino Mega power unit?
If so, could you add a suitable Capacitor between the modules +&- (power supply)?
- Also, to prevent the MP3 module's power supply get effected, you could try to add a voltage regulator diode (5.1V can be ok) between the MP3 Player's power supply.
The load I'm turning off is an electromagnet and it is located near the speakers. But this effect is really weak to make such a trouble. If it was because of this, then get the electromagnet device as far as with the MP3 Player's speaker. (for now, I have no good idea to eliminate this effect)
Hope it helps.
