Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Audio
  4. ›DFPlayer Mini MP3 Module

How-to · Beginner · 4 min read

DFPlayer Mini MP3 Module

Wiring, SD Card Setup and Arduino Code

By Geekobot Learning Team · Updated 24 Oct 2026

On this page
Short answerDFPlayer Mini pinout and wiringPreparing the SD cardArduino code: play a trackUsing it with ESP32 or PicoFixing noise, clicks and 'not found'Step by stepCommon mistakesFAQsParts and next steps
Short answer

The DFPlayer Mini plays MP3 and WAV files from a microSD card and has a built-in 3 W amplifier, so it can drive a small speaker on its own. Power it from 5 V, connect its RX through a 1 kΩ resistor to a serial TX pin and its TX to a serial RX pin, put files named 0001.mp3, 0002.mp3 in an mp3 folder, and control it with the DFRobotDFPlayerMini library.

Key specs at a glance

Supply
3.2 to 5 V (5 V typical)
Card
microSD up to 32 GB, FAT16 or FAT32
Formats
MP3, WAV, WMA
Speaker output
About 3 W mono into 4 to 8 Ω (SPK_1, SPK_2)
Line output
DAC_L and DAC_R for an external amplifier
Control
Serial at 9600 baud, buttons (ADKEY) or IO pins
Volume
0 to 30
01

DFPlayer Mini pinout and wiring

PinFunctionArduino Uno wiring
VCC3.2 to 5 V5V
GNDGround (two pins)GND
RXSerial in (3.3 V logic)D11 via a 1 kΩ resistor
TXSerial outD10
SPK_1, SPK_2Speaker, up to 3 WSmall 4 or 8 Ω speaker; never to ground
DAC_L, DAC_RLine outTo an amplifier such as the PAM8403
BUSYLOW while playingOptional, to any input pin
IO1, IO2, ADKEY1, ADKEY2Button controlOptional standalone use
VCC
Function:
3.2 to 5 V
Arduino Uno wiring:
5V
GND
Function:
Ground (two pins)
Arduino Uno wiring:
GND
RX
Function:
Serial in (3.3 V logic)
Arduino Uno wiring:
D11 via a 1 kΩ resistor
TX
Function:
Serial out
Arduino Uno wiring:
D10
SPK_1, SPK_2
Function:
Speaker, up to 3 W
Arduino Uno wiring:
Small 4 or 8 Ω speaker; never to ground
DAC_L, DAC_R
Function:
Line out
Arduino Uno wiring:
To an amplifier such as the PAM8403
BUSY
Function:
LOW while playing
Arduino Uno wiring:
Optional, to any input pin
IO1, IO2, ADKEY1, ADKEY2
Function:
Button control
Arduino Uno wiring:
Optional standalone use
02

Preparing the SD card

Format the card as FAT32 (or FAT16) and copy files in this order. The simplest layout for the library's play-by-number functions is:

  • ✓/mp3/0001.mp3, /mp3/0002.mp3 ... for playMp3Folder(1).
  • ✓/01/001.mp3, /01/002.mp3, /02/001.mp3 ... for playFolder(folder, track).
  • ✓Files in the root are played by the order they were copied, not by their names, which confuses many beginners. Copy one file at a time in the order you want, or use the numbered folders.

You can add text after the number (for example 0001_welcome.mp3). Remove hidden files that some computers add, such as the System Volume Information or ._ files on a Mac, if tracks play out of order.

03

Arduino code: play a track

Install the DFRobotDFPlayerMini library from the Library Manager.

DFPlayer Mini on Arduino Uno · Arduino C++Verify & upload in Electrolark
#include <SoftwareSerial.h>
#include <DFRobotDFPlayerMini.h>

SoftwareSerial dfSerial(10, 11);   // RX, TX (TX goes through 1k to DFPlayer RX)
DFRobotDFPlayerMini player;

void setup() {
  Serial.begin(115200);
  dfSerial.begin(9600);
  delay(1500);                      // give the module time to read the card
  if (!player.begin(dfSerial)) {
    Serial.println("DFPlayer not found: check wiring and SD card");
    while (true) {}
  }
  player.volume(20);                // 0 to 30
  player.playMp3Folder(1);          // plays /mp3/0001.mp3
}

void loop() {
  if (player.available() && player.readType() == DFPlayerPlayFinished) {
    Serial.println("Track finished");
  }
}
04

Using it with ESP32 or Pico

On an ESP32, use a hardware serial port instead of SoftwareSerial: Serial2.begin(9600, SERIAL_8N1, 16, 17); then player.begin(Serial2). On a Pico, use Serial1 (GP0 TX, GP1 RX by default). Both boards use 3.3 V logic, which the DFPlayer accepts directly; keep the 1 kΩ resistor anyway, as it reduces the clicking noise caused by serial traffic. Power the DFPlayer from 5 V, not from the 3.3 V pin, as playback at volume draws a few hundred milliamps. See the UART guide for wiring rules.

05

Fixing noise, clicks and 'not found'

Module not found

RX and TX swapped, no common ground, card not FAT32, or the code starts before the module is ready (add a 1 to 2 s delay).

Clicks and hiss

use the 1 kΩ resistor on RX, power from a separate 5 V supply, and add a 100 to 470 µF capacitor across VCC and GND.

Wrong track plays

use numbered folders, or re-copy root files in order.

Clone chips

some boards use a different decoder chip and need a longer start-up delay or player.begin(serial, true, false) to skip the acknowledgement check.

Low volume

the built-in amplifier is only about 3 W; for louder sound use the DAC pins into a PAM8403.

06

Play an MP3 from Arduino with a DFPlayer Mini

You need: Arduino Uno, DFPlayer Mini, microSD card (32 GB or less), 1 kΩ resistor, 4 or 8 Ω speaker, Jumper wires · Tools: Computer with Arduino IDE, microSD card reader

Get the parts6 of 6 found in our store · ₹744

  • Arduino UnoArduino Uno R3 Development Board with USB Cable₹385
  • DFPlayer MiniDFPlayer Mini MP3 Player Module (MP3-TF-16P)₹94
  • microSD card (32 GB or less)MicroSD Card Module (SPI)₹45Closest match, check the specs
  • 1 kΩ resistorCarbon Film Resistor 1/2W, 1W and 2W₹3
  • 4 or 8 Ω speakerMini Speaker 8Ω₹42
  • Jumper wiresDupont Jumper Wires (40 pcs)₹49
  1. 1
    Prepare the cardFormat the card as FAT32 and copy your file to /mp3/0001.mp3.
  2. 2
    Wire powerConnect VCC to 5V and GND to GND.
  3. 3
    Wire serialConnect DFPlayer TX to D10, and D11 through a 1 kΩ resistor to DFPlayer RX.
  4. 4
    Connect the speakerWire the speaker across SPK_1 and SPK_2.
  5. 5
    Upload and playInstall the DFRobotDFPlayerMini library, upload the sketch and the track plays at start-up.
07

Common mistakes to avoid

  • !Connecting a speaker pin to ground.
  • !Expecting files in the root to play in name order.
  • !Using an exFAT-formatted card larger than 32 GB.
  • !Leaving out the 1 kΩ resistor and getting clicks.
  • !Powering it from a 3.3 V pin that cannot supply the current.
08

Frequently asked questions

What SD card does the DFPlayer Mini support?

microSD cards up to 32 GB formatted as FAT16 or FAT32. Larger cards formatted as exFAT will not be read.

Does the DFPlayer Mini need an amplifier?

Not for a small speaker: it has a built-in amplifier of about 3 W. For more volume or stereo, take the DAC_L and DAC_R outputs to an amplifier module.

Why does my DFPlayer play the wrong track?

Files in the root folder play in the order they were copied to the card, not by name. Use the mp3 folder with 0001.mp3-style names, or numbered folders.

Can I use DFPlayer Mini with ESP32?

Yes. Use a hardware serial port such as Serial2 at 9600 baud. The DFPlayer accepts 3.3 V logic.

Why do I hear clicking from the DFPlayer?

Serial traffic and supply noise. Add a 1 kΩ resistor in series with its RX pin, use a separate 5 V supply and a capacitor across the power pins.

Parts for this guide

  • Mini Speaker 8Ω
    ₹42View
  • PAM8403 2x3W Class-D Stereo Amplifier Module
    ₹20View
  • Resistor Assortment Kit (30 Values)
    ₹33View
Shop SpeakersShop Amplifier Modules

Terms in this guide

UARTUniversal asynchronous receiver-transmitter: two-wire serial (TX and RX) used by GPS, Bluetooth modules and debug output.Baud rateThe speed of a serial link in bits per second. Both ends must use the same value; 9600 and 115200 are the usual defaults.DACDigital-to-analog converter: turns a number into a real voltage. The ESP32 has two 8-bit DACs; the Uno has none and uses PWM instead.

Projects that use it

Put this into practice: 413 step-by-step builds in our project library use parts from this guide.

Beginner · 1 hourLPG gas leak alarmView projectBeginner · 1–2 hoursSmoke alarm with OLED readoutView projectBeginner · 45 minutesFlame detector fire alarmView project
Browse all 413 projects

Keep learning

How-toBeginnerPAM8403 and Other Audio Amplifier ModulesThe PAM8403 is a tiny 5 V class-D stereo amplifier that drives two small speakers at up to 3 W each into 4 Ω.4 min read · AudioConcept explainerBeginnerUART and Serial CommunicationA UART sends data one bit at a time over one wire with no shared clock, so both ends must agree on the speed, called the baud rate (9600 and 115200 are common).4 min read · Electronics FundamentalsComparisonBeginnerActive vs Passive BuzzersAn active buzzer beeps at one fixed pitch as soon as you apply DC, so a digital pin can switch it on and off.3 min read · AudioComponent guideBeginnerArduino UnoThe Arduino Uno is a beginner-friendly microcontroller board that reads sensors and controls LEDs, motors and relays using simple C++ programs called sketches.5 min read · Boards & Microcontrollers

Sources

  • DFRobot DFPlayer Mini product wiki and manual
  • DFRobotDFPlayerMini library documentation
  • YX5200 MP3 decoder datasheet

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerDFPlayer Mini pinout and wiringPreparing the SD cardArduino code: play a trackUsing it with ESP32 or PicoFixing noise, clicks and 'not found'Step by stepCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide5 items · ₹573

Arduino Uno R3 Development Board with USB Cable · DFPlayer Mini MP3 Player Module (MP3-TF-16P) · Carbon Film Resistor 1/2W, 1W and 2W · Mini Speaker 8Ω · Dupont Jumper Wires (40 pcs)

Run itChange the inputs and watch the output
Speaker 440 Hz
0001.mp30 / 6 s
Serial monitor115200 baud
 

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question