Hi there!!!
I'm developing a project and it has a part of playing audio files at specific events.
I bought a df mini player and have arduino mega and nano. I want some help ( not need the exact code) about the dfplayer functions, keywords and some syntax.
My requirement is,
I have 15 folders, named in two digit format. .00,01,02 etc)
10 audio files in every folder, named as three digit format.( 000,001,002,003,004,005,006,007,008,009).
Now I want a system that plays a random file from a specific folder at specific event
For example, if the time is 10am, it should play a random audio file from folder 10.
Did you try the playFolder() function? If that does not work for you, then does the library mentioned in post #2 of the link I gave (in post #7) not help?
@Power_Broker mentions in that discussion that you can choose a folder and a random track using the playFolder() function. You would need to know beforehand how many files were in each specific folder so that could be passed to the random() function to generate the random track number.
I'm very much new to this forum and need some help..
Actually I'm designing a project and needs to play a random wav file from a folder at specific event. I'm done with the rest of the project except random wav playing.
Thanks for your quick reply..
But I don't have clear idea to apply this concept to real scenario..
I'll attach the code.. please apply your concept to the code..
Yes, I'm able to play wav files.. but fixed files. (Example: if i set "2.Wav" it plays 2nd wav).
But I need random file playing. Atleast I need some syntax for my requirement.