Can't Get DFPlayer Mini to Work With Arduino Uno

Hi! I've recently acquired a brand new DFPlayer Mini not too long ago and have been trying to get it to work but have had no luck. I'm using an Arduino Uno board and I have everything hooked up correctly along with some small code that should be working, yet the player doesn't want to work and the led never seems to turn on. I'm using a 32 GB micro SD card with only 5 small audio files. Any ideas on why it's not working correctly?

Here's the small code I'm using:

#include "Arduino.h"
#include <SoftwareSerial.h>
#include <DFRobotDFPlayerMini.h>

int audio = 1;

SoftwareSerial mySoftwareSerial(0, 1); // RX, TX
DFRobotDFPlayerMini myDFPlayer;

void setup()
{
  mySoftwareSerial.begin(9600);
  myDFPlayer.begin(mySoftwareSerial);
  myDFPlayer.volume(15);
}


void loop(){
  if(audio >= 5){
    audio = 1;
  }
  else{
    audio++;
  }
  myDFPlayer.play(audio);
  delay(15 * 1000);
}

One does not use pins 0 and 1 for software serial. Those pins are for the hardware serial port, Serial. Use different pins for the SoftwareSerial port. If you make changes to your code please post the new version in a new post so that we can keep up.

Please post a schematic and clear photos of your wiring.

Use serial prints via the hardware serial port and serial monitor to watch program flow and variable values.

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