TroubleshootingArduino

Cannot get DFPlayer Mini to work with arduino (works without arduino)

userHead sean.clark 2024-09-05 06:02:02 161 Views3 Replies

I have tried to connect this player mini so many times, I can't figure out what I'm doing wrong. When I ground pin 11, my sound file plays just fine. So I think the module is ok. I've tried using the breadboard, and I've tried without the breadboard. I've tried the sample code, and code from folks online. No matter what, I can't get passed initialization.

 

Photos of the current non-breadboard setup

 

 

I've got the speakers hooked up to spk1 and spk2. Ground into ground on the arduino. 5v in on the top 5v pin. rx with a 1k resistor into 11 pin, and tx to pin 10. 

 

When the arduino boots, I hear the speaker pop and then I get the “non initialized” error from the code. 
 

Any ideas what I'm doing wrong here?

 

Thanks!

 

 

 

2024-09-07 00:48:43

Your pictures show that you are using esp32 s3, but atmega 328, the pins are totally different with UNO r3 and esp32 s3.  You'd better to check out your wifi board documents.   Link your esp32 serial pin will help. 

userHeadPic R2D2C3PO
2024-09-05 18:20:16

Turns out the R4 requires the use of Serial1 against pins 0 and 1

userHeadPic sean.clark
2024-09-05 08:25:45

I figured out that this works fine on the R3, but not the R4. I don't know yet why it won't work on the R4.

userHeadPic sean.clark