Dear friends,
I have problem use Modul DFMini Player, Arduino Uno and DS3231.
My Project Description :
I Want to play once mp3 file every day at 10.00.00 until 10.07.56 O'clock.
Hardware : Arduino Uno-Modul DS3231-Modul MP3 DFMini Player-Speaker 1/4W
Software : IDE Arduino 1.8.3
Related Library: RTClib - DFPlayer_Mini_Mp3.h
My Skecth Below:
void updateTime()
{ now = RTC.now();
floatnow = (float)now.hour() + (float)now.minute() / 60 + (float)now.second() / 3600;
daynow = Clock.getDoW(); }
void mp3_play()
{
if((floatnow >= (10.00)) && (floatnow <( 10.13))) //play mp3 file from 10.00.00 until 10.07.56 o'clock. (Time playing is 7minute and 56 seconds.
{
mp3_play(76) ; //play file: 0076.mp3
}
delay(476000); //delay for 476000 ms or 07 minute and 56 seconds
}
Problem :
Mp3 File Can not run well, Blue led Indicator at "DFMini Player" On for a moment only. And After that Off.
Please help me , how to solve it.
Thans in advance.