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

How to Use Fermion: DFPlayer Pro: Examples, Pinouts, and Specs

Image of Fermion: DFPlayer Pro
Cirkit Designer LogoDesign with Fermion: DFPlayer Pro in Cirkit Designer

Introduction

The :Fermion: DFPlayer Pro, manufactured by DFRobot, is a compact and versatile MP3 player module designed for embedded audio applications. It can play audio files directly from a microSD card and features a built-in amplifier for driving speakers. The module supports multiple audio formats, including MP3, WAV, and WMA, and can be controlled via serial communication, making it an excellent choice for projects requiring audio playback.

Explore Projects Built with Fermion: DFPlayer Pro

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP32-Based RFID Music Player with Arcade Button Controls
Image of Robot Music Player: A project utilizing Fermion: DFPlayer Pro 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
ESP32-Based Smart Security System with Fingerprint Access and Audio Feedback
Image of fingerprint_KA: A project utilizing Fermion: DFPlayer Pro in a practical application
This circuit features an ESP32 microcontroller interfaced with a DFPlayer Mini MP3 player module, a TFT LCD display, a fingerprint scanner, and multiple pushbuttons. The ESP32 controls a 12V solenoid lock and communicates with the DFPlayer Mini to play audio through a connected piezo speaker. The circuit is designed to create an access control system with user interaction through buttons, visual feedback via the TFT display, and audio prompts or alarms through the speaker.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano Controlled MP3 Player with Real-Time Clock
Image of azanbox: A project utilizing Fermion: DFPlayer Pro in a practical application
This circuit features an Arduino Nano microcontroller that controls a DFPlayer Mini MP3 player module and keeps track of time with an RTC DS3231 module. Audio output is handled by a loudspeaker connected to the DFPlayer Mini, and the system is powered via a USB connection with power distribution managed by wire connectors.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Solar-Powered Audio Player with DFPlayer MINI and Loudspeaker
Image of reciever : A project utilizing Fermion: DFPlayer Pro in a practical application
This circuit features an Arduino UNO microcontroller interfaced with a DFPlayer MINI MP3 player module and a loudspeaker. The Arduino is powered by a solar cell and controls the DFPlayer MINI to play audio through the loudspeaker. The connections include power and ground lines, as well as serial communication between the Arduino and the DFPlayer MINI.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Fermion: DFPlayer Pro

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 Robot Music Player: A project utilizing Fermion: DFPlayer Pro 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 fingerprint_KA: A project utilizing Fermion: DFPlayer Pro in a practical application
ESP32-Based Smart Security System with Fingerprint Access and Audio Feedback
This circuit features an ESP32 microcontroller interfaced with a DFPlayer Mini MP3 player module, a TFT LCD display, a fingerprint scanner, and multiple pushbuttons. The ESP32 controls a 12V solenoid lock and communicates with the DFPlayer Mini to play audio through a connected piezo speaker. The circuit is designed to create an access control system with user interaction through buttons, visual feedback via the TFT display, and audio prompts or alarms through the speaker.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of azanbox: A project utilizing Fermion: DFPlayer Pro in a practical application
Arduino Nano Controlled MP3 Player with Real-Time Clock
This circuit features an Arduino Nano microcontroller that controls a DFPlayer Mini MP3 player module and keeps track of time with an RTC DS3231 module. Audio output is handled by a loudspeaker connected to the DFPlayer Mini, and the system is powered via a USB connection with power distribution managed by wire connectors.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of reciever : A project utilizing Fermion: DFPlayer Pro in a practical application
Arduino UNO Solar-Powered Audio Player with DFPlayer MINI and Loudspeaker
This circuit features an Arduino UNO microcontroller interfaced with a DFPlayer MINI MP3 player module and a loudspeaker. The Arduino is powered by a solar cell and controls the DFPlayer MINI to play audio through the loudspeaker. The connections include power and ground lines, as well as serial communication between the Arduino and the DFPlayer MINI.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Interactive kiosks and exhibits
  • Talking toys and educational devices
  • Alarm systems with voice prompts
  • Audio playback in IoT devices
  • Custom audio greeting cards

Technical Specifications

Below are the key technical details of the DFPlayer Pro:

Parameter Specification
Operating Voltage 3.3V - 5.0V
Operating Current 20mA (idle), up to 200mA (playback)
Audio Formats Supported MP3, WAV, WMA
Storage Support microSD card (up to 32GB)
Communication Interface UART (9600 bps default)
Output Power 3W (mono) or 2x3W (stereo)
Dimensions 22mm x 22mm

Pin Configuration

The DFPlayer Pro has 16 pins, as detailed in the table below:

Pin Name Description
1 VCC Power supply input (3.3V - 5.0V)
2 GND Ground
3 RX UART receive pin (connect to TX of microcontroller)
4 TX UART transmit pin (connect to RX of microcontroller)
5 DAC_R Right channel DAC output (for external amplifier or headphones)
6 DAC_L Left channel DAC output (for external amplifier or headphones)
7 SPK_1 Speaker output 1 (connect to speaker directly)
8 SPK_2 Speaker output 2 (connect to speaker directly)
9 BUSY Indicates playback status (LOW = playing, HIGH = idle)
10 IO_1 General-purpose I/O pin 1
11 IO_2 General-purpose I/O pin 2
12 ADKEY_1 Analog key input 1
13 ADKEY_2 Analog key input 2
14 SD/TF_CS Chip select for microSD card
15 SD/TF_CLK Clock signal for microSD card
16 SD/TF_MOSI Data input for microSD card

Usage Instructions

Connecting the DFPlayer Pro to an Arduino UNO

To use the DFPlayer Pro with an Arduino UNO, follow these steps:

  1. Wiring:

    • Connect the VCC pin of the DFPlayer Pro to the 5V pin of the Arduino.
    • Connect the GND pin of the DFPlayer Pro to the GND pin of the Arduino.
    • Connect the RX pin of the DFPlayer Pro to pin 10 of the Arduino (via a 1kΩ resistor to protect the module).
    • Connect the TX pin of the DFPlayer Pro to pin 11 of the Arduino.
  2. Install Libraries:

    • Download and install the DFRobotDFPlayerMini library from the Arduino Library Manager.
  3. Upload Code: Use the following example code to play an audio file stored on the microSD card:

    #include "SoftwareSerial.h"
    #include "DFRobotDFPlayerMini.h"
    
    SoftwareSerial mySerial(10, 11); // RX, TX
    DFRobotDFPlayerMini myDFPlayer;
    
    void setup() {
      Serial.begin(9600); // For debugging
      mySerial.begin(9600); // DFPlayer communication
    
      if (!myDFPlayer.begin(mySerial)) {
        Serial.println("DFPlayer initialization failed!");
        while (true);
      }
      Serial.println("DFPlayer initialized successfully.");
    
      myDFPlayer.volume(20); // Set volume (0 to 30)
      myDFPlayer.play(1);    // Play the first audio file
    }
    
    void loop() {
      // Add your logic here if needed
    }
    

    Note: Ensure the audio files are named in the format 0001.mp3, 0002.mp3, etc., and stored in the root directory of the microSD card.

Important Considerations

  • Use a microSD card formatted as FAT16 or FAT32.
  • Avoid powering the module directly from a noisy power source; use decoupling capacitors if necessary.
  • Use resistors on the RX pin to prevent voltage mismatch when connecting to 5V logic devices.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Sound Output:

    • Ensure the audio file format is supported (MP3, WAV, or WMA).
    • Check the speaker connections and ensure the volume is not set to 0.
  2. Module Not Responding:

    • Verify the wiring, especially the RX and TX connections.
    • Ensure the microSD card is properly inserted and formatted correctly.
  3. Playback Stops Unexpectedly:

    • Check the power supply for stability; the module may reset if the voltage drops.
    • Ensure the microSD card is not corrupted.
  4. Busy Pin Always HIGH:

    • Confirm that the module is receiving valid playback commands.
    • Check if the microSD card contains playable audio files.

FAQs

Q: Can I use the DFPlayer Pro without a microcontroller?
A: Yes, the module can operate in standalone mode using the ADKEY pins to trigger playback.

Q: What is the maximum speaker power supported?
A: The DFPlayer Pro can drive speakers up to 3W in mono or 2x3W in stereo mode.

Q: How do I adjust the volume?
A: Use the volume() function in the library or send the appropriate serial command.

Q: Can I play audio files from a USB drive?
A: No, the DFPlayer Pro only supports microSD cards for storage.

By following this documentation, you can effectively integrate the :Fermion: DFPlayer Pro into your projects and troubleshoot common issues with ease.