# How to use DFPlayer mini to play MP3 # What is a DFPlayer? The DFPlayer Mini MP3 Player For Arduino 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 Arduino UNO or any other with RX/TX capabilities. [Know More](https://wiki.dfrobot.com/DFPlayer_Mini_SKU_DFR0299#target_0) [![dfplayer.jpg](https://lab.arts.ac.uk/uploads/images/gallery/2022-11/scaled-1680-/dgqdehT0e64NrxPf-dfplayer.jpg)](https://lab.arts.ac.uk/uploads/images/gallery/2022-11/dgqdehT0e64NrxPf-dfplayer.jpg) # Wiring Wiring up the sensor is quite complex, the pins are not labelled so you will have to refer to the pinout. [![dfplayerpinout.png](https://lab.arts.ac.uk/uploads/images/gallery/2022-11/scaled-1680-/aquNhFLaNisOaPu5-dfplayerpinout.png)](https://lab.arts.ac.uk/uploads/images/gallery/2022-11/aquNhFLaNisOaPu5-dfplayerpinout.png) ##### DFplayer Mini Wiring 1. VCC to 5V (Power) 1. RX to D2 via 1K resistor 1. TX to D3 1. SPK_1 to Speaker(+) *red wire* 1. GND to GND (Ground) 1. SPK_2 to Speaker(-) *black wire* ##### potentiometer Wiring 1. right pin to 5V (Power) 1. middle pin to A0 (Signal) 1. left pin to GND (Ground) [![dfplayermini_bb.png](https://lab.arts.ac.uk/uploads/images/gallery/2023-01/scaled-1680-/8doKrUhyubCutSvX-dfplayermini-bb.png)](https://lab.arts.ac.uk/uploads/images/gallery/2023-01/8doKrUhyubCutSvX-dfplayermini-bb.png) # File handling The order you copy the mp3 into micro SD card will affect the order mp3 played , which means play(1) function will play the first mp3 copied into micro SD card.
MAC User Attention!
If you are using Mac OS X to copy the mp3, the file system will automatically add hidden files like: "._0001.mp3" for index, which this module will handle as valid mp3 files.