Using ESP32 and DFPlayer Pro failing

userHead Nicolas.Berger 2023-10-23 21:52:15 481 Views3 Replies

Hi,

 

I am not able to use the DFPlayer Pro with my ESP32 (NodeMCU 32S). It seems that it can connect, but I can't do anything with it. Sound works without ESP, it even works as speaker over USB. So, hardware seems ok.

 

 

Running the provided sample code, I get this output.  I think the AT commands don't make any sense (I have only 3 files stored on it). I can't play any files, nor change any setting.

VOL:0

PlayMode:6

Start playing

Pause

Next

Previous

Start playing

File number:13472

The number of files available to play:13472

The time length the current song has played:13472

The total length of the currently-playing song: 13472

The name of the currently-playing file: 牥潲r

 

 

Do you have any idea where it fails? Is there a way to troubleshoot?

Thanks for helping me.

2024-06-15 07:58:36

So I looked further and if you change 2 and 3 to 1 and 3 when using an ESP32 you have to use the RX and TX pins and it will communicate and give the correct values. My new issue is I can't use serial print afterwards which isn't too big of a deal if it wasn't my primary way to debug things. But To correct it, rx into tx and tx into rx and pin 1 is tx in code and pin 3 is rx within the code. Do not use pin 4 or pin 2 from my experience…

userHeadPic Antoine.Washington
2024-06-15 06:52:51

Has anyone figured this out? I'm running into the same issue.

userHeadPic Antoine.Washington