Hi I have trouble with DF Player. I cannot connect it with ESP32. It looks like some serial line issue. (DF Player works properly with Arduino nano).
I tried some example from internet but without success. Does anybody working example?
Thank you
hi
I am working on audio server
look at these examples
https://www.dfrobot.com/blog-1188.html
https://www.circuito.io/app?components=9442,336411,360217
https://www.youtube.com/watch?v=kq2RLz65_w0
Hope it helps
Hi Tomas.
I’m not familiar with that module. So, I don’t know what can be the issue.
Were you able to make it work now?
Regards,
Sara
Hi all
I found what is issue with ESP32 and DF Player.
When working with ESP32 WiFi/Bluetooth MCU under Arduino SDK for ESP32, you will notice that
Serial work just fine. But Serial1 and Serial2 do not. ESP32 has 3 hardware UARTs that can be
mapped to almost any pin. But, Serial1 and Serial2 will not work. In case of ESP32 this just
has to be done in a slightly different way:
Source: https://quadmeup.com/arduino-esp32-and-3-hardware-serial-ports/
When DFPlayer use HW serial you have to replace
Serial1.begin(9600);
by
MySerial.begin(9600, SERIAL_8N1, 16, 17); (with definition “HardwareSerial MySerial(1);” )
Regards,
Tomas