I am not sure what i am doing wrong, ive tested the dfplayer without the arduino and it works.
#include <DFPlayer_Mini_Mp3.h>
#include <SoftwareSerial.h>
SoftwareSerial dfPlayer(7, 4); // RX, TX
void setup () {
Serial.begin (9600);
dfPlayer.begin(9600);
mp3_set_serial (dfPlayer); //set SoftwareSerial for DFPlayer-mini mp3 module
mp3_set_volume (80);
}
void loop () {
mp3_play (1); //play 0001.mp3
delay (10000); //10 sec, time delay to allow 0001.mp3 to finish playing
mp3_play (2);
delay (5000);
}