TroubleshootingArduino

DFPlayer Pro DR0768 Bussy Led Arduino question

userHead Marcel.Deen 2024-09-05 03:04:26 42 Views0 Replies

Hello

 

I have a question about the DFPlayer PRO in combination with an Arduino. It all works great, only with the Mini version I could tell Arduino via LED signal when it is playing a song and when it is finished playing.

This way I could give Arduino a command, for example make an LED light up or let a relay go over.

But how does this work with the PRO version?

 

This does not work
if (DF1201S.isPlaying) {
digitalWrite(13, HIGH);
else {
digitalWrite(13, LOW);
}

 

Then I thought, maybe you can do something with DF1201S.getCurTime to turn on the LED for CurTime. But getTime seems ot be work.

I see nothing about time/seconds in the monitor   Serial.println(DF1201S.getCurTime());

 

Or are there other easier ways to let Arduino know when it is finished playing?

Thank allot all.

 

Kind regard

marcel