Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use DFPlayer Mini Mp3 Player KeeYees: Examples, Pinouts, and Specs

Image of DFPlayer Mini Mp3 Player KeeYees
Cirkit Designer LogoDesign with DFPlayer Mini Mp3 Player KeeYees in Cirkit Designer

Introduction

The DFPlayer Mini MP3 Player KeeYees (Part ID: ‎KYES65-KIT) is a compact and versatile MP3 player module designed for audio playback in DIY electronics projects. It supports audio files stored on a micro SD card and features a built-in amplifier, making it ideal for standalone or microcontroller-based applications. The module is compatible with various audio formats, including MP3, WAV, and WMA, and can be controlled via serial communication or standalone mode.

Explore Projects Built with DFPlayer Mini Mp3 Player KeeYees

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Battery-Powered MP3 Player with Seeed Studio nRF52840 and OLED Display
Image of MP3 player: A project utilizing DFPlayer Mini Mp3 Player KeeYees in a practical application
This circuit is an MP3 player system controlled by a Seeed Studio nRF52840 microcontroller. It includes a DFPlayer MINI for audio playback, a 0.96" OLED display for visual feedback, and multiple pushbuttons for user interaction. The system is powered by a 3.7V LiPo battery and outputs audio through a 3.5mm audio jack.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based RFID Music Player with Arcade Button Controls
Image of Robot Music Player: A project utilizing DFPlayer Mini Mp3 Player KeeYees in a practical application
This circuit features an ESP32 Devkit V1 microcontroller interfaced with a DFPlayer Mini MP3 player module, an RFID-RC522 reader, a piezo speaker, and two arcade buttons. The ESP32 controls audio playback through the DFPlayer Mini, which is connected to the speaker, and uses the RFID reader to trigger specific audio tracks based on RFID tag data. The arcade buttons are used to control playback and adjust volume, while a rocker switch and battery mount provide power management.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano Controlled Joystick Interface with Audio Playback
Image of sign language to speech converter using joystick module: A project utilizing DFPlayer Mini Mp3 Player KeeYees in a practical application
This circuit features an Arduino Nano interfaced with a KY-023 Dual Axis Joystick Module and a DFPlayer Mini MP3 player module. The joystick provides input to the Arduino, which controls the playback of audio files from the DFPlayer Mini that outputs sound through a connected loudspeaker. The circuit is powered by a 9V battery connected to the Arduino's VIN and GND pins, with the Arduino providing regulated 5V to power the other components.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Audio Player with LED Indicators and Battery Charging
Image of Device Classification Pil (LED): A project utilizing DFPlayer Mini Mp3 Player KeeYees in a practical application
This circuit features an ESP32 Mini microcontroller connected to a DFPlayer Mini MP3 module for audio playback, with a loudspeaker attached for sound output. The ESP32 controls two LEDs (green and red) and reads an analog value from a potentiometer. Power management is handled by a TP4056 charging module connected to an 18650 battery, providing power to the ESP32 and other components.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with DFPlayer Mini Mp3 Player KeeYees

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of MP3 player: A project utilizing DFPlayer Mini Mp3 Player KeeYees in a practical application
Battery-Powered MP3 Player with Seeed Studio nRF52840 and OLED Display
This circuit is an MP3 player system controlled by a Seeed Studio nRF52840 microcontroller. It includes a DFPlayer MINI for audio playback, a 0.96" OLED display for visual feedback, and multiple pushbuttons for user interaction. The system is powered by a 3.7V LiPo battery and outputs audio through a 3.5mm audio jack.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Robot Music Player: A project utilizing DFPlayer Mini Mp3 Player KeeYees in a practical application
ESP32-Based RFID Music Player with Arcade Button Controls
This circuit features an ESP32 Devkit V1 microcontroller interfaced with a DFPlayer Mini MP3 player module, an RFID-RC522 reader, a piezo speaker, and two arcade buttons. The ESP32 controls audio playback through the DFPlayer Mini, which is connected to the speaker, and uses the RFID reader to trigger specific audio tracks based on RFID tag data. The arcade buttons are used to control playback and adjust volume, while a rocker switch and battery mount provide power management.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of sign language to speech converter using joystick module: A project utilizing DFPlayer Mini Mp3 Player KeeYees in a practical application
Arduino Nano Controlled Joystick Interface with Audio Playback
This circuit features an Arduino Nano interfaced with a KY-023 Dual Axis Joystick Module and a DFPlayer Mini MP3 player module. The joystick provides input to the Arduino, which controls the playback of audio files from the DFPlayer Mini that outputs sound through a connected loudspeaker. The circuit is powered by a 9V battery connected to the Arduino's VIN and GND pins, with the Arduino providing regulated 5V to power the other components.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Device Classification Pil (LED): A project utilizing DFPlayer Mini Mp3 Player KeeYees in a practical application
ESP32-Based Audio Player with LED Indicators and Battery Charging
This circuit features an ESP32 Mini microcontroller connected to a DFPlayer Mini MP3 module for audio playback, with a loudspeaker attached for sound output. The ESP32 controls two LEDs (green and red) and reads an analog value from a potentiometer. Power management is handled by a TP4056 charging module connected to an 18650 battery, providing power to the ESP32 and other components.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • DIY audio systems and portable speakers
  • Voice prompts and sound effects in embedded systems
  • Interactive art installations
  • Alarm systems with audio notifications
  • Educational projects and Arduino-based audio applications

Technical Specifications

Key Technical Details

  • Operating Voltage: 3.2V to 5.0V DC
  • Current Consumption: 20mA to 30mA (idle), up to 100mA (playback)
  • Audio Formats Supported: MP3, WAV, WMA
  • Storage: Micro SD card (up to 32GB, FAT16/FAT32 file system)
  • Output Options:
    • Stereo audio output via DAC pins
    • Mono amplified output via onboard speaker pins
  • Control Modes: Serial communication (UART), AD key control, or standalone mode
  • Built-in Amplifier: 3W mono output for direct speaker connection
  • Dimensions: 22mm x 30mm x 11mm

Pin Configuration and Descriptions

The DFPlayer Mini has 16 pins, as described in the table below:

Pin Name Pin Number Description
VCC 1 Power supply input (3.2V to 5.0V DC).
RX 2 UART serial communication input (connect to microcontroller TX pin).
TX 3 UART serial communication output (connect to microcontroller RX pin).
DAC_R 4 Right channel stereo audio output (DAC).
DAC_L 5 Left channel stereo audio output (DAC).
SPK_1 6 Positive terminal for mono speaker output (3W max).
SPK_2 7 Negative terminal for mono speaker output.
IO_1 8 General-purpose input/output pin 1.
IO_2 9 General-purpose input/output pin 2.
ADKEY_1 10 Analog key input for standalone control.
ADKEY_2 11 Analog key input for standalone control.
BUSY 12 Output pin indicating playback status (LOW = playing, HIGH = idle).
GND 13 Ground connection.
SD 14 Micro SD card slot for audio file storage.
RESET 15 Reset pin (active LOW).
NC 16 Not connected.

Usage Instructions

How to Use the Component in a Circuit

  1. Power Supply: Connect the VCC pin to a 3.2V–5.0V DC power source and GND to ground.
  2. Audio Output:
    • For stereo output, connect DAC_R and DAC_L to an external amplifier or headphones.
    • For mono output, connect SPK_1 and SPK_2 to a speaker (3W max).
  3. Microcontroller Connection:
    • Connect the RX pin of the DFPlayer Mini to the TX pin of the microcontroller.
    • Connect the TX pin of the DFPlayer Mini to the RX pin of the microcontroller.
  4. Micro SD Card:
    • Format the micro SD card to FAT16 or FAT32.
    • Load audio files onto the card, ensuring filenames are in the format 0001.mp3, 0002.mp3, etc.
    • Insert the card into the SD slot on the module.
  5. Control:
    • Use UART serial commands for precise control via a microcontroller.
    • Alternatively, use AD key inputs for standalone operation.

Important Considerations and Best Practices

  • Ensure the power supply is stable and within the specified voltage range to avoid damage.
  • Use a decoupling capacitor (e.g., 100µF) across the VCC and GND pins to reduce noise.
  • Avoid connecting both DAC and SPK outputs simultaneously to prevent signal interference.
  • Use a resistor divider or level shifter if connecting to a 5V logic microcontroller to protect the RX pin.

Example: Connecting to an Arduino UNO

Below is an example of how to connect and control the DFPlayer Mini with an Arduino UNO:

Circuit Diagram

  • VCC → 5V on Arduino
  • GND → GND on Arduino
  • RX → Pin 10 on Arduino (via a 1kΩ resistor for level shifting)
  • TX → Pin 11 on Arduino

Arduino Code

#include "SoftwareSerial.h"

// Define RX and TX pins for SoftwareSerial
SoftwareSerial mySerial(10, 11); // RX, TX

void setup() {
  mySerial.begin(9600); // Initialize DFPlayer Mini communication
  Serial.begin(9600);   // Initialize Serial Monitor for debugging

  // Send initialization commands to DFPlayer 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: SD card
  mySerial.write(0xEF); // End byte

  Serial.println("DFPlayer Mini initialized.");
}

void loop() {
  // Example: Play the first track
  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); // High byte of track number
  mySerial.write(0x01); // Low byte of track number (Track 1)
  mySerial.write(0xEF); // End byte

  delay(5000); // Wait for 5 seconds before replaying
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Sound Output:

    • Ensure the micro SD card is properly formatted and inserted.
    • Verify that audio files are named correctly (e.g., 0001.mp3).
    • Check speaker connections and ensure the speaker is within the 3W limit.
  2. Module Not Responding:

    • Confirm the power supply voltage is within the 3.2V–5.0V range.
    • Check UART connections and ensure RX/TX pins are correctly wired.
    • Use a level shifter if the microcontroller operates at 5V logic.
  3. Playback Stops Unexpectedly:

    • Ensure the micro SD card is not corrupted.
    • Use a high-quality micro SD card with a fast read speed.
  4. Distorted Audio:

    • Reduce the volume using UART commands if the speaker is overdriven.
    • Use an external amplifier for better audio quality.

FAQs

  • Can I use the DFPlayer Mini without a microcontroller? Yes, the module supports standalone mode using AD key inputs.

  • What is the maximum supported micro SD card size? The module supports micro SD cards up to 32GB formatted as FAT16 or FAT32.

  • Can I connect headphones directly to the module? Yes, use the DAC_R and DAC_L pins for stereo headphone output.

  • Is the module compatible with 3.3V logic microcontrollers? Yes, the module works with both 3.3V and 5V logic levels.