Confusingly my DfPlayer Mini is now NOT reliably playing the files I would expect it to, after I loaded some new files onto the SD card. Prior to doing this it was rock solid.
I’ve got 43 files, a mixture of wav and MP3s named like 0039.mp3 or 0001.wav.
Any ideas? Seems pretty random!
When I use the dfplayer_next (play next function) it cycles through the files exactly as they are in the folder. It’s just calling them specifically one at a time that has stopped working but which DID work prior to my updating the files in the folder. I’m kind of tempted to wipe the SD card and start again, but before I do…?
I’ve read of others having the wrong files play and I got caught with this and found it very frustrating. When it has occurred, I’ve had trouble figuring out why and reproducing it until I found as others have reported that the files were playing in order they were added to the SD card and not by filename numbering.
There seems to be 4 ways to set up folders and name files:
I’ve read of others having the wrong files play and I got caught with this and found it very frustrating. When it has occurred, I’ve had trouble figuring out why and reproducing it until I found as others have reported that the files were playing in order they were added to the SD card and not by filename numbering.
There seems to be 4 ways to set up folders and name files:
In folders numbered 01 – 99. File names with 3 digit prefixes 001 – 255. Command 0x0F
In a folder named MP3 (or perhaps mp3). File names with 4 digit prefixes 0001 to 3000. Command 0x12
In the root directory. File names with 4 digit prefixes 0001 to 3000. Command 0x03
In folders named 01 – 15. File names with 4 digit prefixes 0001 – 3000. Command 0x14
While they may all appear good options, I ended up using method 1. When using method 3 the files just appear to play in the order they were added to the SD card and the digits were ignored. Methods 2 and 4 may be ok, but I found it more complicated when not using a library. Method 1 has been working well in a couple of projects for a few years. Filenames can include other characters but must have a space after the number: 001[space]filename.mp3
Yep. That was it. What an annoying situation! So I had to put all my files in a folder called ‘01’ and then change from dfplayer_play to dfplayer_play_folder and specify the file and the folder.
Anyway it seems to be working as it should, now, so that’s what matters.
Thanks @tom_l