DFPlayer signal to arduino question

Hello,

I have the dfplayer working with the ardiuno, i can push some buttons to hear some jingles.
Its works fine, simply when a button pressed, it send commando myDFPlayer.playFolder(2, 2); to play the second file in map 2, great.

But i have a other thing, also there is a music playing on a musicaudio player to arduino, works fine, when i pressed the sample button for the dfplayer, its send first a command:
setvolume(0) so the music from the other musicaudio goes to volume 0 (mute)
after that the dfplayer is playing file 2 from map 2.
But when the jingle is stopt, then he must send a command setvolume(10) back to the arduino to turn the music volume up.

Its like the blue led on the dfplayer, its on when its play a file, and wil be off when the file has be end/stopt.

So what can i use the send the arduino the command setvolume(10), how trigger i the command from the dfplayer?

Or is a connection from the led to one of the pins from the arduino a option?

I hope someone can help me with advice

Thanks allot.

x Natascha

But when the jingle is stopt, then he must send a command setvolume(10) back to the arduino to turn the music volume up.

How can the Arduino know that the jingle has stopped?

yeah thats the question, maybe some know a idea?

There is a led on the DFPlayer that ON when a jingle is playing and wil be OFF when the jingle has stopt.

Maybe solder a wire on that led en connect it to the arduino? maybe is that a option?
But than i don't what i put i the sketch, read the valeu of that pin?

maybe some know a idea?

Maybe some who has the hardware that you want to use could post a link to the hardware, and a link to whatever library you are using to communicate with it, and your code.

Seems like only one person can do all that...

There are two methods for determining active playback on DFPlayer.

Hardware Method:

There is a pin called Busy. You can poll that pin; HIGH is active playback.

Software method:

The DF player communicates via Serial, you can query the device to see if it is active. Which Library are you using? This library has something called readState() which returns the current playback state,