

The DF Player Mini is a compact MP3 player module designed for embedded audio applications. It can play audio files stored on a micro SD card and is controlled via serial communication, making it an excellent choice for projects requiring sound playback. The module supports MP3 and WAV file formats and offers features such as adjustable volume, EQ settings, and playback control. Its small size and ease of use make it popular in DIY electronics, robotics, and IoT projects.








The DF Player Mini has the following key technical specifications:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.2V - 5.0V |
| Operating Current | 20mA - 30mA (idle), up to 100mA (playback) |
| Supported File Formats | MP3, WAV |
| Storage Medium | Micro SD card (up to 32GB, FAT16/FAT32) |
| Communication Protocol | UART (Serial) |
| Audio Output | Stereo (DAC) or Mono (via speaker output) |
| Dimensions | 22mm x 20mm x 3.5mm |
The DF Player Mini has 16 pins, but only a subset is commonly used in most applications. Below is the pin configuration:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (3.2V - 5.0V). |
| 2 | GND | Ground connection. |
| 3 | RX | Serial data input (connect to microcontroller TX pin). |
| 4 | TX | Serial data output (connect to microcontroller RX pin). |
| 5 | SPK_1 | Speaker output (positive terminal). |
| 6 | SPK_2 | Speaker output (negative terminal). |
| 7 | DAC_R | Right channel audio output (for external amplifier). |
| 8 | DAC_L | Left channel audio output (for external amplifier). |
| 9-16 | Other Pins | Reserved for advanced features (e.g., IO control, ADKEY, BUSY, etc.). |
To use the DF Player Mini in a circuit, follow these steps:
VCC pin to a 5V power source and the GND pin to ground.RX pin of the DF Player Mini to the TX pin of your microcontroller (e.g., Arduino UNO) and the TX pin of the DF Player Mini to the RX pin of the microcontroller.SPK_1 and SPK_2 pins to the speaker terminals.DAC_R and DAC_L pins.Below is an example of how to control the DF Player Mini using an Arduino UNO:
#include "SoftwareSerial.h"
// Define RX and TX pins for SoftwareSerial
SoftwareSerial mySerial(10, 11); // RX = pin 10, TX = pin 11
void setup() {
mySerial.begin(9600); // Initialize SoftwareSerial at 9600 baud
Serial.begin(9600); // Initialize hardware serial for debugging
Serial.println("Initializing DF Player Mini...");
delay(1000);
// Send initialization command to DF Player Mini
mySerial.write(0x7E); // Start byte
mySerial.write(0xFF); // Version
mySerial.write(0x06); // Length
mySerial.write(0x09); // Command: Select device
mySerial.write(0x00); // Feedback
mySerial.write(0x02); // Parameter: TF card
mySerial.write(0xFE); // Checksum high byte
mySerial.write(0xED); // Checksum low byte
mySerial.write(0xEF); // End byte
Serial.println("DF Player Mini initialized.");
}
void loop() {
// Example: Play the first track
Serial.println("Playing track 1...");
mySerial.write(0x7E); // Start byte
mySerial.write(0xFF); // Version
mySerial.write(0x06); // Length
mySerial.write(0x03); // Command: Play track
mySerial.write(0x00); // Feedback
mySerial.write(0x00); // Parameter high byte
mySerial.write(0x01); // Parameter low byte (track number)
mySerial.write(0xFE); // Checksum high byte
mySerial.write(0xF7); // Checksum low byte
mySerial.write(0xEF); // End byte
delay(5000); // Wait for 5 seconds before repeating
}
SPK_1/SPK_2) and DAC output (DAC_R/DAC_L) simultaneously to prevent damage.No Sound Output:
SPK_1 and SPK_2.Module Not Responding:
RX and TX connections between the DF Player Mini and the microcontroller.Distorted Audio:
Q: Can I use the DF Player Mini without a microcontroller?
A: Yes, the module can operate in standalone mode using buttons connected to the IO pins.
Q: What is the maximum storage capacity supported?
A: The DF Player Mini supports micro SD cards up to 32GB formatted as FAT16 or FAT32.
Q: How do I adjust the volume?
A: Volume can be adjusted via serial commands or by using external buttons in standalone mode.
Q: Can I play specific tracks from folders?
A: Yes, you can specify folder and track numbers using serial commands.
By following this documentation, you can effectively integrate the DF Player Mini into your projects and troubleshoot common issues.