Here is my "directory" (dir >> file.txt) from Terminal opened on my SD card:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS D:\> dir > file.txt
PS D:\> dir
Directory: D:\
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2/19/2024 10:21 AM 8326890 0001.mp3
-a---- 2/23/2024 1:12 AM 3826553 0002.mp3
-a---- 2/23/2024 5:21 PM 34107 0003.mp3
-a---- 2/23/2024 5:25 PM 3482717 0004.mp3
-a---- 2/23/2024 8:25 PM 73486 0005.mp3
-a---- 2/24/2024 12:57 PM 2002 file.txt
PS D:\>
The listing shows have three songs (long files) and two sounds (short files). When I select "next" (by grounding the "next" pin) the next file plays and wraps again to the top after the last file.
The second file may not necessarily be at the second index of the files list. The DFPlayer injects hidden files on the SD card that may be causing your audio files to not be in the correct location.
If you run the AdvanceSettings example sketch, it will try to play all the audio tracks you have on the SD card. Do they play in the order you are expecting or are they scattered?
You do not need code to make the DFPlayerMini work. If you do not follow the instructions in post #46, or if you do follow the instructions in post #46 and get no sound, then all the code in the world will not help.
Post #46. Post #46. There. Three times. The rest is in your hands.
How to fix the problem with the dfplayer mini,, when I want to play two different audio in different condition, the first auido is playing but when it comes to second audio it is not playing, in serial monitor it says that the second audio is playing but no audio is playing.
joke aside, do yourself a favour and please read How to get the best out of this forum and post accordingly (including code with code tags and necessary documentation for your ask like your exact circuit and power supply, links to components etc).
Your two or more topics on the same or similar subject have been merged.
Please do not duplicate your questions as doing so wastes the time and effort of the volunteers trying to help you as they are then answering the same thing in different places.
Please create one topic only for your question and choose the forum category carefully. If you have multiple questions about the same project then please ask your questions in the one topic as the answers to one question provide useful context for the others, and also you won’t have to keep explaining your project repeatedly.
Repeated duplicate posting could result in a temporary or permanent ban from the forum.
Could you take a few moments to Learn How To Use The Forum
It will help you get the best out of the forum in the future.