A
Arduino2w ago
sen

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); }
No description
No description
19 Replies
AnonEngineering
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?
sen
senOP2w ago
hi! do you mean pin 11 of the dfplayer to the gnd of the arduino?
AnonEngineering
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)
sen
senOP2w ago
ahh i see, ill try
AnonEngineering
look at the link I sent
No description
AnonEngineering
if that doesn't work it surely won't with the Uno either
sen
senOP2w ago
ah yeah dang it doesnt work i guess the module itself is dead thanks by the way, i appreciate your help
AnonEngineering
or - the folder structure is wrong, see that last line in the link the DF is very picky about file / folder names
sen
senOP2w ago
heres the sd card
No description
AnonEngineering
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."
sen
senOP2w ago
yeah still doesnt work
AnonEngineering
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
sen
senOP2w ago
yeah haha still doesnt work oooo nicee
AnonEngineering
try that minimum wiring, haven't really heard about "out of the box" dead DFs getting the files wrong - that happens
sen
senOP2w ago
is it possible that i even need a separate voltage source
AnonEngineering
i've always gotten away with powering it from arduino 5v and ground, or 3xAA (4.5v)
sen
senOP2w ago
ahh
AnonEngineering
the LED only comes on when it's playing

Did you find this page helpful?