General

DF Player Pro+Arduino. Play specific sounds one after the other

userHead Francisco.Lopez-Linares 2024-03-20 00:41:57 112 Views5 Replies

Hello:

 

I bought a DFPLayer pro to be able to play wav files from its own memory, while arduino does “another things”.

 

Sadly I have found that though there is a function call “isplaying” to know when a sound has end it, while this function is been run, it “stalls” arduino execution, so at the end is more or less the same as inserting a delay in the code…, so I think this function is useless for my case.

 

I need to develope a function to send mini player something like this:

 

play_sounds("one.wav", “two.wav”, "four.wav");

 

So DFplayer takes care of playing those sounds (that are in it's memory), while Arduino takes care of other stuff…

 

Anyone know if any function of this type has been develop or any special function I can use to get to this goal?

 

Thanks for your time.

2024-03-25 20:25:56

Not thanks to the help in this forum, I have conclude that DFplayer needs arduino to play the sounds, so for me is not of very much interest. I have used with much more sucess other reproduction modules wich play the sounds without “halting” arduino.

 

userHeadPic Francisco.Lopez-Linares
2024-03-21 10:21:23

Success! It could be one of the most informative blogs we've come across on the subject. Great information! I am also a specialist in this field, so I understand your efforts very well. Thank you so much for your help. play slope


 

userHeadPic henry.katy
2024-03-21 07:09:02

Is this forum officaly attend it? 

 

Should I expect an answer from DFROBOT?

userHeadPic Francisco.Lopez-Linares
2024-03-20 01:46:57

I have just realized that DF1201S.playSpecFile”, also blocks de execition of arduino….., so with the actualk state of the firmare, I'm afraid the devices is useless for me :-(..

userHeadPic Francisco.Lopez-Linares
2024-03-20 00:51:08

Take into account that In the memory there are 100 sounds, and an specific moment I need to play only those three sounds.., so the function that plays all the sounds on the folder can't be used.

userHeadPic Francisco.Lopez-Linares