DFRobot DFPlayer Mini Demo Initializing DFPlayer ... (May take 3~5 seconds) Unable to begin: 1.Please recheck the connection! 2.Please insert the SD card!
I obviously do have an SD card in (4GB V10 A1 U1 C10 HC I) in FAT32 with 1 mp3 file name "0001.mp3". I use an external 5V amp, and I read the waves with a oscilloscope. And It's just looooot of noise out of DAC_R and DAC_L.
If I remember well, the DFPlayer supports standard microSD (SD, SDHC) cards up to 32 GB, provided they are formatted as FAT16 or FAT32 so that should work.
__ @edwylin Make sure the card is formatted with a 32 KB allocation unit size (I have read somewhere that the DFPlayer works more reliably with 32 KB clusters) and that the audio files are 16-bit MP3 or WAV.
Also make sure there is no hidden file on that SD that your OS could have added
Test the player by connecting an 8Ohm speaker to the SPK pins and then momentarily connecting AD0 pin to ground. This should trigger playing the first track.
Then you have made a mistake somewhere, because that sketch pasted directly works as expected on my Nano and Uno with a 4GB card. (As J-M-L says, any card up to 32 GB is OK.)
Assuming that you too pasted correctly then I suspect the fault is in your wiring and/or expectations. "Exact same layout" doesn't square with the schematic shown at the DFR link:
yes it's the same layout with a 880Ohms (4*220Ohms that's only what I have) between the arduino Tx and the DFPlayer Rx. I also dont have anything pluged at the output of the DFPlayer.
I tried 32 KB allocation unit size with a 16-bit MP3 file named 0001.mp3. I also double checked for hidden files and there are none. Still don't work, the program tells me
DFRobot DFPlayer Mini Demo Initializing DFPlayer ... (May take 3~5 seconds) Unable to begin: 1.Please recheck the connection! 2.Please insert the SD card!
Okay, I made some progress: I change nothing and now sometimes it works, and then it doesn't work anymore, usually when I touch to some VCC or GND stuff, like when I plugged my oscilloscope to the gnd, it disconnected the card, but when I remove the sd card and re-insert it, it usually work a couple times. Also, as I have an external amplifier, I wanted to use DAC_R and DAC_L, but there is a huge amount of noise out of these two lines, wich is then amplified.
I changed the position on the breadboard and all my cable, it seems to be more stable now (though not 100% stable). Thought I still have a lot of noise in DAC_R and DAC_L, I'm wondering if my set is bad:
Photos are no substitute for a carefully prepared schematic (circuit diagram). Pen, paper and ruler are enough, then a clear photo. Make a list of all connections first and show us that too. Or even just that list, providing it's based on your actual circuit - not the source you believe you faithfully copied.
The earlier photo in post 7 had several errors, but I see your latest photo is significantly changed. So I'll wait for the details before doing further 'photo-to- schematic' work.
You should also post your full sketch if you have made any changes to the DFR original.
Here is the setup, so it is about what was on the previous pick, but I wanted to use the PAM8403 for stereo, but its not that important. My main concern is that the setup is unstable, the DFplayer usually doesn't recognize the SD card, or it recognize at first and the it disappear.
The DFPlayer should be powered by an external 3.3V supply. Yes, I know all the documentation says it should work with 5V, but I have used a bunch of these modules over the years and I find they work best with 3.3V. I still think you should add 0.1uf caps in series but, do whatever works for you.
By the way, the DFPlayer already has a decent output for speakers (SPK_1 and SPK_2) and yes you can connect 2 speakers if you tie them to the SPK pins and GND.
here is quick respond from what I've tested before your message, with the 5V, the SPK_1/2 is around 5V and with a lot of noise, when I put a speak plugged into SPK_1 and SPK_2, it works quite fine, but when I put between SPK_X and the ground, there is a lot of noise and the magnet is always powered. I'll test with 3.3V tomorow or next week. 3.3v would be very good because it's what I want to use it with. Should the RX/TX be in 3.3V as well?
this is what the guy before told me to do so I tested, but the more I think about it, the more I think I'll go mono as it's simpler. Two in series is quite smart, I didn't think about is.