DFPlayer Mini wont initialize

Hello,

I got a new DFPlayer mini from Amazon. I dont think its DF Robot brand but cheap knock off, but in any case it looks OK from the outside. I have wired it up per DFRobot and other guidance, it looks wired OK, and all per:

Best Way to Play Audio on Arduino! DFPlayer mini / MP3-TF-16p Tutorial - YouTube

But when I run the little sketch in the video (which compiles fine and looks good) the module doesn't initialize and in any case the little power LED never comes on. I am pretty sure the wiring is good and its hooked to known good and working Arduino, I am not using external power for now, but the 5VDC and ground from the Arduino Uno R4 wifi.

I dont know what to troubelshoot next, does anyone have any suggestions? I suppose the module which was cheap, could be bad...?

Thanks, Steven Lightfoot

Please show us how it is wired and also post the sketch you are using to communicate with it.

It needs 3.3V, not 5V. It should also have at least a 10uf cap connected to the vcc and gnd pins.

Also to note, the resistor value going to the RX pin should be between 800ohm to 1.2k ohms. 1k is the most common.

Start with the example sketches in the library.

Thanks, I am using this wiring diagram, from DFRobot, on this page: DFPlayer Mini Mp3 Player - DFRobot Wiki

I am not using a cap yet, I have it wired exactly as in the sketch, and with a 1K ohm resister in the Tx line.

The sketch I am using is (its pretty basic): DFPlayerPC - Google Drive

The issue to start is the LED light is not even on, which tells me something is wrong and its not even getting power, yet it is wired right and I checked that its getting 5 VDC from Arduino.

All the data seems to indicate it can tolerate 5 VDC. First question, is the LED supposed to be on when it even simply has power and ground attached?

Good idea, I will try that. I am not sure its even getting power, however, as my initial issue.

This is the start of the code:

//Very much inspired by How to use the DFMini Player MP3 Module with Arduino - DFRobot by DFRobot Feb 26 2020
//Additions made by Just Baselmans https://www.youtube.com/justbaselmansYT Jan 23 2023

#include "SoftwareSerial.h"
#include "DFRobotDFPlayerMini.h"

// Initialize software serial on pins 10 and 11
SoftwareSerial mySoftwareSerial(10, 11); // RX, TX
DFRobotDFPlayerMini myDFPlayer;
String line;
char command;
int pause = 0;
int repeat = 0;

void setup() {
// Serial communication with the module
mySoftwareSerial.begin(9600);
// Initialize Arduino serial
Serial.begin(115200);
// Check if the module is responding and if the SD card is found
Serial.println();
Serial.println(F("DFRobot DFPlayer Mini"));
Serial.println(F("Initializing DFPlayer module ... Wait!"));

if (!myDFPlayer.begin(mySoftwareSerial)) {
Serial.println(F("Not initialized:"));
Serial.println(F("1. Check the DFPlayer Mini connections"));
Serial.println(F("2. Insert an SD card"));
while (true)
;
}
Serial.println();
Serial.println(F("DFPlayer Mini module initialized!"));
// Initial settings
myDFPlayer.setTimeOut(500); // Serial timeout 500ms
myDFPlayer.volume(5); // Volume 5
myDFPlayer.EQ(0); // Normal equalization
// myDFPlayer.EQ(DFPLAYER_EQ_POP);
// myDFPlayer.EQ(DFPLAYER_EQ_ROCK);
// myDFPlayer.EQ(DFPLAYER_EQ_JAZZ);
// myDFPlayer.EQ(DFPLAYER_EQ_CLASSIC);
// myDFPlayer.EQ(DFPLAYER_EQ_BASS);
menu_options();
}

That is not useful. Draw by hand if you don;t have software and take a picture of the drawing. Make sure it is readable on screen. Label everything that isn't obvious.

Did you forget about code tags already?

Sorry, I don't us videos to write or read code, how do you look back or copy etc. YT is for eye candy, not for coding.

What happens if you momentarily ground the IO_1 pin on the DFplayer module? It ought to play a track.

I am not sure if its getting power (first problem) the code doesn't even seem to initialize. Do you know if with power the LED light is on? I can never get the LED to illuminate, so I suspect its not even powering up. I am rechecking power with my multi-meter. Do you know about the LED and what it means when on?

It only lights up when a sound is played

Can't speak to the multitude of clones, knockoffs and outright fake DFplayers out there, but on the real ones (and any "free enterprise" versions I've run into), the only LED on the module is connected to the BUSY signal. So it lights up when a track is being played.

Verify the DFPlayerMini in I/O Mode. No sketch needed.

Use the DFPlayerMini_Fast library instead. The DFRobotDFPlayerMini library has never worked for me.

Thx, useful. I checked and its def getting 5 VDC so it has power.

Thanks, that is helpful. I assumed (and based on some research) that the power light was always on, but I think now its not the case. It def has power.

I will check into this, thx.