dfplayermini is not communicating with arduino uno r3?
connections are right, rx tx are connected correctly, vcc and gnd are connected correctly, speakers are also connected. sd card has files in fat32 format (0001.mp3).
#include "SoftwareSerial.h"
#include "DFRobotDFPlayerMini.h"
static const uint8_t PIN_MP3_TX = 10;
static const uint8_t PIN_MP3_RX = 11;
SoftwareSerial softwareSerial(PIN_MP3_RX, PIN_MP3_TX);
DFRobotDFPlayerMini player;
void setup()
{
Serial.begin(9600);
softwareSerial.begin(9600);
if (player.begin(softwareSerial))
{
Serial.println("OK");
player.volume(30); } else { Serial.println("Connecting to DFPlayer Mini failed!"); } } void loop() { Serial.print("Playing 1"); player.play(1); delay(5000); }
player.volume(30); } else { Serial.println("Connecting to DFPlayer Mini failed!"); } } void loop() { Serial.print("Playing 1"); player.play(1); delay(5000); }


19 Replies
see the note at the very bottom of https://wiki.dfrobot.com/dfplayer_mini_sku_dfr0299
also, if you briefly bring pin 11 to ground, does it play?
hi! do you mean pin 11 of the dfplayer to the gnd of the arduino?
yes, just take a wire from pin 11 of DF and tap it to the SD card reader (ground), does it play?
(it's how you would use the DF stand alone, no Arduino at all)
ahh i see, ill try
look at the link I sent

if that doesn't work it surely won't with the Uno either
ah yeah dang it doesnt work
i guess the module itself is dead
thanks by the way, i appreciate your help
or - the folder structure is wrong, see that last line in the link
the DF is very picky about file / folder names
heres the sd card

needs to be in a "mp3" folder
"NOTE: The folder name needs to be mp3, placed under the SD card root directory, and the mp3 file name needs to be 4 digits, for example, "0001.mp3", placed under the mp3 folder."
yeah still doesnt work
also try for fun pin 9, that wiki is unclear if it's "IO1" or IO2"...
made a costume prop for a friend last year, one or the other of those pins were hooked to a switch she pressed to play a tune

yeah haha still doesnt work
oooo nicee
try that minimum wiring, haven't really heard about "out of the box" dead DFs
getting the files wrong - that happens
is it possible that i even need a separate voltage source
i've always gotten away with powering it from arduino 5v and ground, or 3xAA (4.5v)
ahh
the LED only comes on when it's playing