DFPlayer Mini MP3 player with ESP32
Supply 3.3-5 V
Bus GPIO
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| VCC | Power | 3V3 | 3.2 to 5 V |
| RX | Input (the ESP32 drives it) | D25 | UART: the part receives data here. Connect to an ESP32 TX pin through a 1 kΩ resistor |
| TX | Output (the part drives it) | D26 | UART: the part sends data here. Connect to an ESP32 RX pin (9600 baud) |
| DAC_R | Not wired to the ESP32 | — | Line out right |
| DAC_L | Not wired to the ESP32 | — | Line out left |
| SPK_1 | Not wired to the ESP32 | — | Speaker + (3 W max) |
| GND | Ground | GND | |
| SPK_2 | Not wired to the ESP32 | — | Speaker - |
| IO_1 | Not wired to the ESP32 | — | |
| GND2 | Ground | GND | |
| IO_2 | Not wired to the ESP32 | — | |
| ADKEY_1 | Not wired to the ESP32 | — | |
| ADKEY_2 | Not wired to the ESP32 | — | |
| USB+ | Not wired to the ESP32 | — | |
| USB- | Not wired to the ESP32 | — | |
| BUSY | Output (the part drives it) | D27 | LOW while playing |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
Sources
- DFRobot DFPlayer Mini manual, Pin map 1 VCC to 16 BUSY; UART 9600 baud
Try it in 3D in BoardPilot
Related parts
18650 Li-ion cell in holder28BYJ-48 stepper + ULN2003 driver433 MHz transmitter (FS1000A)74HC595 shift registerA4988 stepper driverActive buzzer
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.