These are the settings I use
#include “SoftwareSerial.h”
#include “DFRobotDFPlayerMini.h”
SoftwareSerial mySoftwareSerial(7, 6); // RX, TX
DFRobotDFPlayerMini myDFPlayer;
void setup() {
mySoftwareSerial.begin(9600);
Serial.begin(115200);
if (!myDFPlayer.begin(mySoftwareSerial)) { //Use softwareSerial to communicate with mp3.
while(true){
}
}
myDFPlayer.volume(25); //Set volume value. From 0 to 30
myDFPlayer.play (3);
delay (1500);
myDFPlayer.play (2);
delay (300);
}
Connections image:
