Specifications
- DFPlayer Mini module
- Communication over UART (9600 Bd)
- Plays MP3 and WAV from a microSD card
- Track chosen by number (e.g. 0001.mp3)
- Volume 0–30
- You can stack another module on top of it
- Power 5 V (assumed, the DFPlayer Mini works from 3.2–5 V), UART at 3.3 V
- Current ≈ 20 mA at rest, ≈ 100–300 mA with the speaker loud (estimate)
- Does not use the I2C bus, it talks over UART on IO5 and IO6
- Uses: sound effects, talking devices
Pins
| Pin | Function |
|---|---|
| IO5 | TX (ESP32 → player) |
| IO6 | RX (player → ESP32) |
Wiring diagram
Example code
Try the example Drummer right in your browser in Eduingo AI Lab. The SD card holds four drum sounds: a bass drum, a snare drum, a cymbal and a gong. Each button plays one of them and the matrix flashes a different colour. Every button has its own event, so you can drum with both hands. Try making up a rhythm and playing it to your friends.