I’m currently working on a project using an Arduino Mega 2560 and a DFPlayer Mini (MP3-TF-16P) module to play audio files via button control. However, I'm running into some frustrating issues.
Sometimes the DFPlayer doesn't start at all after powering on
Other times it doesn’t respond to button presses
Occasionally, it starts playing but then stops unexpectedly mid-track
Setup Details:
Board: Arduino Mega 2560
MP3 Module: DFPlayer Mini (MP3-TF-16P)
Power Supply: USB or external 5V (tested both)
Buttons: Connected to digital pins with pulldown resistors
Communication: SoftwareSerial (Pins 10 as RX, 11 as TX)
Incorrect, OP does have it correctly wired. He could add a 47uf cap across the 3.3vcc and gnd. Also what are the resistor values going to the tx and rx pins? They should be about 1kohm
The picture is a little too blurry but it looks like the op is using 10k resistors. 10k is too much, from my testing, it should be between 800 to 1200 ohms.
Please check that before before we go any further. And reply to post #3.
BTW, you only need a single 1k resistor, the one to the player's RX pin (2). And try reducing the length of its wire.
We're now waiting to see your sketch, with properly formated code please.
EDIT: Is that your own circuit or another's? As your RX/TX are 10/11 it appears you're using Software Serial. That's common on a Uno, Nano, etc, but on a Mega it's recommended to use one of the three more reliable hardware serial pin pairs. Hence my question. If you do have a Uno or Nano, try that instead.
EDIT2: Hmm, I see from your photo that you are also using a pair of the HW serial pins...?