ARDUINO Mp3 Player

by RonFrtek in Circuits > Arduino

1750 Views, 2 Favorites, 0 Comments

ARDUINO Mp3 Player

Arduino Simple mp3 Player

In this tutorial we will learn how to play a mp3 song using arduino an the DF PLAYER MINI module.

Watch the Video!

What You Will Need

mp3-player-module-dfplayer-mini-e1522051316373.jpg
8c1c7159-09a0-446b-ac52-bbe2d3b486a6.jpg
sd-icon.png
VisuinoAdvrtisementVersion8.jpg
FNLOD2CKEY93G5N.jpg
jumper-wires.jpg
FMMM5N5KEY93G5M.jpg
resistor-1k-ohm-14w-5.jpg
  • Arduino UNO (or any other Arduino)
  • DF PLAYER MINI module
  • Speaker
  • Breadboard
  • 1K ohm resistor
  • Jumper wires
  • SD card with the mp3 song
  • Visuino program: Download Visuino

The Circuit

2021-04-21_15-09-59.jpg
2021-04-21_15-16-52.jpg

  • Connect the 5V output from Arduino to the VCC pin of the MP3 player module
  • Connect Arduino pin [GND] to the MP3 player module pin [GND]
  • Connect Arduino pin [RX] to the MP3 player module pin [TX]
  • Connect Arduino pin [TX] to the 1K ohm resistor, the other side of the resistor connect to MP3 player module pin [RX]
  • For a mono speaker, connect one wire to SPK1 and the other to SPK2.
  • For a stereo speaker or headphones connect Left side wire to MP3 player module pin [DACL] and Right side wire to MP3 player module pin [DACR] and GND wire to the MP3 player module pin [GND]

Note: When uploading to Arduino Disconnect Arduino pin [RX] and after the upload connect it back

Start Visuino, and Select the Arduino UNO Board Type

FMW5CHBKFV47BP9.jpg
F311FBVK5AHN5HJ.LARGE.jpg

The Visuino: https://www.visuino.eu also needs to be installed. Download Free version or register for a Free Trial.

Start Visuino as shown in the first picture Click on the "Tools" button on the Arduino component (Picture 1) in Visuino When the dialog appears, select "Arduino UNO" as shown on Picture 2

In Visuino Add Components and Connect

2021-05-02_21-14-08.jpg
2021-05-02_21-14-38.jpg
2021-05-02_21-17-25.jpg

  • Add "DFRobot Serial MP3 Player" component
  • Add "Start" component
  • Connect "Start1" pin [Out] to "MP3Player1" pin [Next]
  • Connect "MP3Player1" pin [Out] to Arduino Serial [0] In

Generate, Compile, and Upload the Arduino Code

FOQOHC1KLWB8FIX.jpg

In Visuino, at the bottom click on the "Build" Tab, make sure the correct port is selected, then click on the "Compile/Build and Upload" button.

Play

Put your SD card into the MP3 player module and If you power the Arduino UNO module, the MP3 player module will start to Play the song.

Congratulations! You have completed your project with Visuino. Also attached is the Visuino project, that I created for this Instructable. You can download and open it in Visuino: https://www.visuino.eu

Downloads