Hi, totally new to the Seeeduino XIAO board and was hoping to connect a DFPlayer Mini but using the code I normally use for Arduino I get this error - no matching function for call to ‘mp3_set_serial(Serial_&)’
This is required by the DFPLayer Mini Library to run and work correctly, I have tried Serial1 and that doesn’t work either.
Serial.println();
Serial.println(F(“DFRobot DFPlayer Mini Demo”));
Serial.println(F(“Initializing DFPlayer … (May take 3~5 seconds)”));
if (!myDFPlayer.begin(FPSerial, /*isACK = */true, /*doReset = */true)) { //Use serial to communicate with mp3.
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){
delay(0); // Code to compatible with ESP8266 watch dog.
}
I know this is an old post now, but, just in case it helps or for anyone else looking at this; the DFPlayer has a built-in amp so the Pam8403 amp is unnecessary. Also, this set-up looks like it’s for a lightsaber usually those use high-powered LEDs if you are using those you will want to keep from running the power directly through your board so a MOSFET setup is recommended.
The code and diagram are for a Thermal Detonator not a Lightsaber. I know the DFPlayer Mini has a built in AMP, but many of the 3rd party Chinese copies give a better sound with the PAM8403 and it’s such a cheap board too. I know use only genuine DFPlayer Mini’s in my builds so no longer include the PAM8403. Many Thanks, regards Phil