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?
I am working on audio server
look at these examples
Hope it helps
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?
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:
When DFPlayer use HW serial you have to replace
MySerial.begin(9600, SERIAL_8N1, 16, 17); (with definition “HardwareSerial MySerial(1);” )