Mini MP3 Player Interfaced with Arduino

The DFPlayer Mini MP3 Player is a small and low price MP3 module with an simplified output directly to the speaker. The module can be used as a stand alone module with attached battery, speaker and push buttons or used in combination with an Adruino or any other with RX/TX capabilities.

Specification

  • Supported sampling rates (kHz): 8/11.025/12/16/22.05/24/32/44.1/48.
  • 24 -bit DAC output, support for dynamic range 90dB , SNR support 85dB.
  • Fully supports FAT16 , FAT32 file system, maximum support 32G of the TF card, support 32G of U disk, 64M bytes NORFLASH.
  • A variety of control modes, I/O control mode, serial mode, AD button control mode.
  • Advertising sound waiting function, the music can be suspended. when advertising is over in the music continue to play.
  • Audio data sorted by folder, supports up to 100 folders, every folder can hold up to 255 songs.
  • 30 level adjustable volume, 6 -level EQ adjustable

Pinout

Work Mode

1. Serial Mode

Support for asynchronous serial communication mode via PC serial sending commands
Communication Standard:9600 bps
Data bits :1
Checkout: none
Flow Control :none

  • Instruction Description
  • Serial Control Command
  • Serial Query Command
  • Serial Command using Docklight Software

2.  AD KEY Mode

We use the AD module keys, instead of the traditional method of matrix keyboard connection, it is to take advantage of increasingly powerful MCU AD functionality, Our module default configuration 2 AD port, 20 key resistance distribution.

3.  I/O Mode

Here comes the most simple way to use this module.
Diagram

Note:Short time press means pre/next,and long time press means vol- ,vol + .

Connection Diagram

Connection with UART

Note: For simple use ,the upper diagram is ready,But if you find the noise is quite loud, then you could attach an 1K resistor to the TX pin.
Select Example code for UART and SOFT_UART.


Sample Code

We’ve created an Arduino library for DF Player Mini to simplify the method for you to make it work.
Connect the hardware as the picture above shown and play with the sample code.

Download the zip file given below and install it in the arduino platform. The suitable header files and sample codes are there in the file itself.

DFPlayer_Mini_mp3

 

Applications

  • GPS based navigation voice broadcast;
  • For producing Warning alarm as voice;
  • Voice prompts in railway stations, bus stations, airports etc.;
  • Voice prompts for Security alerts

Shop With Us

 

 

 

 

Leave a Reply