At last, I had DFplayer played the only file in the mp3 folder. But my problem is, even though I already inserted the command "mp3_stop", still the DFplayer keeps on playing after several seconds, in different intervals.
Also, I tried the command myDFPlayer.disableLoop(); //disable loop. but it just send an error message: 'myDFPlayer' does not name a type
Please help correct the code. Thanks in advance.
#include <SoftwareSerial.h>
#include <DFPlayer_Mini_Mp3.h>
//
void setup () {
Serial.begin (9600);
mp3_set_serial (Serial); //set Serial for DFPlayer-mini mp3 module
delay(1); //wait 1ms for mp3 module to set volume
mp3_set_volume (20);
}
//
void loop () {
mp3_play (1);
delay (26000);
mp3_pause ();
mp3_stop ();
}