

Serial.print("The name of the currently-playing file: ") Get the total length of the currently-playing song Serial.print("The total length of the currently-playing song: ") Get the time length the current song has played Serial.print("The time length the current song has played:") Serial.print("The number of files available to play:") Serial.println(DF1201S.getCurFileNumber()) Turn on the prompt tone (Power-down save) Turn on indicator LED (Power-down save) Set baud rate to 115200(Need to power off and restart, power-down save) Serial.println("Init failed, please check the wire connection!") SoftwareSerial DF1201SSerial(2, 3) //RX TX Music Playing Example Experimental phenomenon: control MP3 play music, obtain song Copyright (c) 2010 DFRobot Co.Ltd The MIT license When powering on, the module enters music mode and starts playing audio files, the current operation will be printed on the serial port. * File number, can be obtained by getCurFileNumber() * Play the file of specific number, the numbers are arranged according to the sequences the files copied into the U-disk * Get the total length of the currently-playing song * Get the time length the current song has played * Get the number of files available to play * Let the currently-playing song start playing from a particular time point

* Fast forward the currently-playing song * ePlayMode_t:SINGLECYCLE,ALLCYCLE,SINGLE,RANDOM,FOLDER Long-press the for 2 seconds to switch to the next song(Blue LED blinks twice when switching).

Tap the PLAY button to play or pause(Blue LED keeps on when playing and blinks slowly when pausing).Download and install the DFRobot_DF1201S Library and Sample Program ( About how to install the library?).Before using, please connect the module to a PC with an USB cable, and save audio files into the module storage.Audio Format: MP3, WAV, WMA, FLAC, AAC, APE.Besides that, DFPlayer Pro is equipped with new functions like fast-forward, fast-rewind, play the audio from a particular point of the audio file, etc. And it offers dual channel output, better sound effects. By using a USB cable, you can easily copy your favorite songs into this module to play them any where you want, or use it as a sound card for your PC or Raspberry Pi after connecting them together.Ĭompared with the previous DFPlayer Mini, the DFPlayer Pro has 128MB storage that can be directly used without a TF card, and the on-board Type-C socket makes it much convenient to use. You can directly press the on-board button to play or switch music without using a controller. Here comes the DFPlayer Pro-a mini simple but powerful MP3 Player! This MP3 player module supports four controlling modes: Arduino, AT command, on-board buttons, and ADKEY. DFPlayer Pro - A Mini MP3 Player for Arduino WiKi - DFRobot
