I have problems with reading files on a DFPlayer mini Pro with Nano esp32
I use;
Computer: Imac M1 OS Somona 14.2.1
DFPlayer mini Pro
Arduino nano ESP32
Level shifter
5 V power supply
The nano ESP32 is loaded with the program found under examples - DFRobots_DF1201S-play
(encl. 1)
On the DFPlayer mini pro there are three folders under the root with mp3 files (made in
Speechello). All the files play their content when I click on them in the computer.
The set-up is found on enclosed Schema…. (encl 2). All connections between the different parts
are tested with an ohm meter and all the parts have a common ground. The nano ESP32 is
delivering 3.3 V to the level shifter and the power supply is delivering 5 Volt to the shifter and to
the DFPlayer mini pro
The reason why I use a level shifter is that i first tried to DFPlayer mini pro together with an
Arduino Mega and it worked fine. When I then tried it with the nano ESP32 it did not. OK - Mega is
a 5 Volt system so I tried a level shifter - no success.
At startup the the yellow diod is shining on the nano ESP32 and the blue diod on the mini pro. You
can hear from the speaker ”music” but nothing more happens. I can see on the serial monitor the
following message: Init failed, please check the wire connection! Repeatedly.
If I push the button on the mini pro it starts to play the files in uncontrolled order. It selects files
from different folders.
I have also tried a SD card reader (from Adafruit, as seen on the picture (3)) but it did not work).
The program could not see all the files (5/8) on a brand new formatted SD card. This SD card
reader worked perfectly together with the Mega. I have ordered new SD card readers to test.
Please help!
Best regards
Åke Silén
Sweden
encl. :
1 program used
2 Schema Nano ESP32-DFPlayer mini pro
3 picture
Program I used.pdf (42.9 KB)
Schema_Nano_ESP32-DFPlayer_mini_pro.pdf (1.4 MB)