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);
}