Why my DFplayer mini cant play any sound? how to solve this issue? I followed the instruction or connection on youtube but still not working.
The red wire seems loose and you might have a bug line 42…
Hello,
I'm using DFPlayer mini with arduino UNO. It work very well ALONE, but I can't made it work with ARDUINO.
If I power it alone, I can play a song, change the song, change sound level, etc
But when I tried to used with the Arduino, I get this message:
Initializing DFPlayer ...
Unable to begin:
1.Please recheck the connection!
2.Please insert the SD card!
what is bug linen 42?
It was a joke. You have not shared your code, so we can only guess what error you made.
We are not there with you. We can see only what you share. We need to see the code, the schematic, maybe some photos might help.
➜ OP said it tried that and it works
the issue is driving it from the Arduino
but until we get the wiring / power / code details we can't help much
as we often say "the crystal ball is in the washing machine, so we can't guess..."
#include "SoftwareSerial.h"
#include "DFRobotDFPlayerMini.h"
SoftwareSerial mySoftwareSerial(5, 4); // RX, TX
DFRobotDFPlayerMini myDFPlayer;
void setup() {
mySoftwareSerial.begin(9600);
Serial.begin(9600);
if (!myDFPlayer.begin(mySoftwareSerial)) {
Serial.println(F("Unable to begin:"));
Serial.println(F("1.Please recheck the connection!"));
Serial.println(F("2.Please insert the SD card!"));
while(true);
}
Serial.println(F("DFPlayer Mini online."));
// Set volume
myDFPlayer.volume(30); // 0 to 30
// Play the first MP3 file
myDFPlayer.play(1);
}
void loop() {
// Do nothing, let the MP3 play
}
Heres my code, can you check it for me?
If you edit your post and add the missing code tags we will be able to read it better and tell you to look carefully at
(Please add code tags)
This library is sometimes erratic. The following small variation from yours works fine on my Nano. (I assume your wiring is correct.)
#include "SoftwareSerial.h"
#include "DFRobotDFPlayerMini.h"
SoftwareSerial mySoftwareSerial(8, 9); // RX, TX
// SoftwareSerial mySoftwareSerial(5, 4); // RX, TX
DFRobotDFPlayerMini myDFPlayer;
void setup()
{
mySoftwareSerial.begin(9600);
Serial.begin(115200);
if (!myDFPlayer.begin(mySoftwareSerial, true, false)) // my edit
{
Serial.println(F("Unable to begin:"));
Serial.println(F("1.Please recheck the connection!"));
Serial.println(F("2.Please insert the SD card!"));
while (true);
}
Serial.println(F("DFmyDFPlayer Mini online."));
// Set volume
myDFPlayer.volume(20); // 0 to 30
// Play the first MP3 file
myDFPlayer.play(1);
}
void loop()
{
// Do nothing, let the MP3 play
}
I checked my wiring multiple times and its fine, Im using arduino uno
Can you send me your wirings?
well there is clearly a mismatch between your code and the drawing...
Did you
- Try the code I gave you?
- Check your Rx, Tx connections?
- Try the recommended 1k resistor (not 330) ?
Do I need to format my sd card to fat32?
Im using 4GB sd card.
You need to fix the serial pins
Connect ONLY the DFPlayerMini like Post #6 to verify your hardware works. No lines of code will ever make broken hardware work.
I suspect you are using an 8ohm speaker... which you should not, unless you have a speaker driver... and that is what is blocking sound.
How?