My dfplayer doesn't work

Hi everyone, I've tried everything to get it working, but my Arduino Nano setup with the DFPlayer simply doesn't work. I don't know what I did wrong. I'm attaching a picture and the code. Please, someone help.
(Problem:1. Please recheck the connection!,2. Please insert the SD card!)

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

SoftwareSerial mySerial(10, 11); // RX, TX
DFRobotDFPlayerMini myDFPlayer;

void setup() {
  mySerial.begin(9600);
  Serial.begin(115200);

  Serial.println();
  Serial.println(F("DFPlayer Mini Demo"));
  Serial.println(F("Initializing DFPlayer ..."));

  if (!myDFPlayer.begin(mySerial)) {  // Use softwareSerial to communicate with DFPlayer Mini
    Serial.println(F("Unable to begin:"));
    Serial.println(F("1. Please recheck the connection!"));
    Serial.println(F("2. Please insert the SD card!"));
    while (true);
  }
  Serial.println(F("DFPlayer Mini online."));

  myDFPlayer.volume(30);  // Set volume to maximum (0-30)
  myDFPlayer.play(1);     // Play the first MP3 file 
}

void loop() {
  // No need for code here in this simple test
}



Welcome to the forum

What does it do ? Are there any messages in the serial monitor ?

Hello!
it says:
"DFPlayer Mini Demo
Initializing DFPlayer ...
Unable to begin:

  1. Please recheck the connection!
  2. Please insert the SD card!"
    and A dfplayer LED doesn't light up

It looks like you have 10 and 11 swapped.
Rx should go to TX
Tx should go to RX

If you want to run your DF Player Mini without an Arduino, all you need is VCC, GND and a shorting pin... See "I/O MODE" on this web page...

Watch DFPlayer working!! | Streamable Thank you so much!


That looks like a piece of iron, maybe a vice?

Never rest live circuits on metal surfaces! A short circuit could destroy the DFplayer module in the blink of an eye.

Hello, I just put it there for the picture so that everything would be visible, I was careful about that! (It was turned off when the picture was taken)

1 Like