Hello there! I have been working on a project, which includes the DFPLayer Mini and the DFPlayerMini_Fast library and while testing, it crashed.
I was testing a button contraption, which just crashed the mp3 player and since i haven´t been able to start it up.
I was using a custom code, but even the example code in the library doesn´t work and just outputs reverse "?" on the serial monitor.
I have already tried the following:
-Using other Arduinos
-reformatting the SD-Card of the MP3-PLayer
-using different Pins
-using different computers to upload code
Thanks in advance for any help!
Here´s the aforementioned example code:
#include <DFPlayerMini_Fast.h>
#if !defined(UBRR1H)
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
#endif
DFPlayerMini_Fast myMP3;
void setup()
{
Serial.begin(115200);
#if !defined(UBRR1H)
mySerial.begin(9600);
myMP3.begin(mySerial);
#else
Serial1.begin(9600);
myMP3.begin(Serial1);
#endif
Serial.println("Setting volume to max");
myMP3.volume(30);
delay(20);
Serial.println("Playing track 1 for 5 sec");
myMP3.play(1);
delay(5000);
Serial.println("Sleeping for 5 sec");
myMP3.sleep();
delay(5000);
Serial.println("Waking up");
myMP3.wakeUp();
Serial.println("Looping track 1");
myMP3.loop(1);
}
void loop()
{
printError ();
//do nothing
}