DFplayer Mini communication issue

So, I am running into another issue though…

It seems the dfplayer is very picky about how files are added to it, and because I’m using code to trigger certain sounds/music with switches, it’s kind of doing a wonky thing where it plays the incorrect sound files, I’m guessing because it doesn’t know where they are or it’s just playing the file it thinks it is based on where the files are located… I’ve just read some stuff about how adding files to the sd card can be tricky.

Hello,

I’m an electrical engineer (40 yrs) and have been having some fun playing with the Arduino Nano, the Arduino RP2040 Connect, and the Alorium SNO Arduino Compatible FPGA based boards.

With your issue regarding the DFPlayer MP3 module, I too have been having NO LUCK getting it to play songs. However, I have some interesting results that may help you.

I’ve bought QTY=10 of the DFPlayers and tried four of them, of which NONE of them work at all. I have also bought QTY=3 of a similar module that is marked “MP3-TF-16P”, of which ALL THREE of them work just fine. The two MP3 player modules use different chips:

DFPlayer → AA19HFF851-94 (made by “JL”)
MP3-TF-16P → YX5200-24SS (MFG unknown)

Both of these MP3 players are spec’ed to work using a +5V or a +3.3V power rail. This was important to me because the newer RP2040 based Arduino runs at +3.3V and not +5.0V. My breadboard accommodates either Arduino (Nano or Connect) by implementing a simple linear regulator. +5V is supplied to the breadboard, and depending on whether a red wire is inserted or a linear regulator is inserted, the proper voltage is presented to the Arduino. Note RED wires are +5V, ORN wires are +5V or +3.3V, BLK wires are GND.

I have NOT determined why the DFPlayer design does NOT work, or what differences allow the MP3 player version to work. There is most likely nothing wrong with your circuit. The DFPlayer just does NOT work with the Arduino (the cause remains to be discovered).

This prototype board has the Arduino Nano module, MP3 player module, a 6 character dot matrix display modue, a battery backed RTC module (accurate version - DS3231 chip), two push buttons for input, and drives the NeoPixel LED strips (wires in upper left corner of photo). I’ve uploaded a photo. Hopefully the jpeg file gets through.

My suggestion is to eliminate your struggles and take the easy way out, by ditching the DFPlayer version and buy the MP3-TF-16P version. Hope this helps.

Tom


After trying several of these modules, I believe there is a possible design flaw. Read some datasheets and the above comments and then added a level translator from the RX (pin 2) to the arduino pin 11. Managed to use a 2n3904 npn though any small signal npn should work. A 10k resistor from ard 11 to the base of the npn, collector of npn to 5 volts, and a 2.2k from the emitter to gnd.
After this and many power cycles all seems well…good luck…

I thought I’d chip in with my experience.

I had 3 boards. None of them worked. What I found was that it needs a valid card present.

My card was formatted fat32 but somehow on Windows it had been made with a GPT partition table. It needs master boot record style partition table. You can check by using Windows disk management and inspect the properties of the volume table.

Once I did this it responded to commands (ESP32 3.3v) and would play files flawlessly using the next/prev buttons.

You can make sure by using the “clean” command in Windows diskpart tool from a command prompt. This will scrub the disk completely. You can then use normal disk properties gui to format the disk as fat32.

Took quite some time before I thought to check the partition table type. Hope this saves someone else some time. I really thought my boards were dead or fake.

1 Like

Hello guys,
I have a similar problem regarding the dp player mini.

I have connected the following dp chip pins as follows

1- vcc to 5 volt on Arduino uno directly
2- rx to pin 2 on Arduino
3- tx to pin 3 on Arduino
4- gnd to ground on Arduino

I have also formatted my 32gb sd cars to FAT32 and added an mp3 file to it with the following format “0001.mp3”.

When I first load my code to arduino, the built in led on the dp player mini turns red. As soon as I insert the SD card, it turns off.

I have tried the sample code on the chip website and did the same wiring and it still gives me the following error.
“Unable to begin:
1- please recheck connection
2- please insert the sd card”

What should I do in this case?
Is it because I am not using any resistors maybe? Or is it the sd card that is causing the problem or what exactly?

Welcome to the Technical Forum. I have sent this out the group to see if anyone knows how to help on it.

Hi
RX and TX pin of Arduino is used for serial communication (if you used example code from DF Player). as you can see in your code you should have:
#include “SoftwareSerial.h”
and
SoftwareSerial mySoftwareSerial(10, 11); // RX, TX
which means you should connect DF player RX & TX to 10 and 11 pin of arduino.

1 Like

It’s a long time ago - but the Speaker goes to SPK1 and SPK2 (neither speaker lead goes to GND)

1 Like