DFPlayer mini with Arduino doesn't work

Hello, I am trying to test the dfplayer mini mp3 module, but when connecting the power supply (3.3 or 5V) the led does not light up. Does it mean that the module is not working?
I tested with three modules and all of them had the same problem.
Thank you.

Welcome to the forum

Please post a schematic of your project

The LED on the "DFPlayer" only goes on when a track is being played.

Screenshot

Since it was just a test of the module connections, I made just these connections figuring that the LED would light up indicating the correct power supply.

Really? I imagined that the LED would light up just by plugging in the power supply.
Thanks a lot!

1 Like
//  ESP32dfmini01
//
//#include "Arduino.h"
#include "HardwareSerial.h"
#include "DFRobotDFPlayerMini.h"

//
const byte RXD2 = 16; // Connects to module's RX 
const byte TXD2 = 17; // Connects to module's TX 

HardwareSerial dfSD(1); // Use UART channel 1
DFRobotDFPlayerMini player;
   
void setup() 
{
  Serial.begin(19200);
  dfSD.begin(9600, SERIAL_8N1, RXD2, TXD2);  // 16,17
  delay(5000);

  if (player.begin(dfSD)) 
  {
    Serial.println("OK");

    // Set volume to maximum (0 to 30).
    player.volume(17); //30 is very loud
  } 
  else 
  {
    Serial.println("Connecting to DFPlayer Mini failed!");
  }
}

void loop() 
{
  Serial.println("Playing #1");
  player.play(1);
  Serial.println("play start");
  delay(5000);
  Serial.println("played");
  delay(1000);

  Serial.println("Playing #2");
  player.play(2);
  Serial.println("play start");
  delay(10000);
  Serial.println("played");
  delay(1000);

  Serial.println("Playing #3");
  player.play(3);
  Serial.println("play start");
  delay(10000);
  Serial.println("played");
  delay(1000);

  Serial.println("Playing #4");
  player.play(4);
  Serial.println("play start");
  delay(10000);
  Serial.println("played\r\n\r\n");
  delay(1000);    
}

And -- use 5V (not 3V).

1 Like

Great! Would you know if there is a minimum or optimal impedance for the speaker?

8 ohms

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.