Tag: DFRobotDFPlayerMini

1 articles found.

DFPlayer Mini Library for Proteus V1.0: MP3 Player Module + Arduino

DFPlayer Mini Library for Proteus V1.0: the MP3 module playing a track from its micro SD card

Hello friends, I hope you all are doing great. Today, I am going to share the new DFPlayer Mini Library for Proteus V1.0. The DFPlayer Mini is the tiny MP3 player module with a micro SD card slot that so many Arduino projects use for a voice that says "welcome home", a door bell, an alarm or background music. The Arduino sends it short serial commands - play file 4, volume 20, next - and the module does the rest: it reads the card, decodes the MP3 and drives a speaker. In a simulation it was hard to try, because Proteus has no such part and no card to read. Behind the parts sits our own model, written from the datasheet of the module. It answers the 10-byte 7E FF 06 frames at 9600 baud, needs its 0.8 s to start, plays the files of a demo micro SD card - 14 short tracks in folders 01 and 02, MP3 and ADVERT - each for its real length, pulls its BUSY pin LOW while a track plays, and sends the 3D message when a track has finished. The unmodified DFRobotDFPlayerMini library on the Arduino drives it as it would a real module. You get a Simple device with a live STATUS panel and an Advance device with a pop-up window that shows the card, the player and every frame on the UART. The demo runs on our Arduino UNO V4.0. NOTICE: an MP3 module is easy to fake: a part that lights an LED when a pin goes LOW. We wanted more. Our module speaks the serial protocol of its datasheet byte by byte on its RX and TX pins - so the DFRobot library talks to it as it would to a real module, a wrong ...