Hello everyone, absolute novice here hoping to get some advice and wisdom -
I followed this tutorial but couldn't get it to work, so I decided to isolate each component to see where the problem was.
I tried the blink test on Arduino Nano - works fine, no problem.
Then, I tested DFPlayer Mini and followed this tutorial and encountered this issue - there is strange noise coming out of the speaker. I have uploaded a short video of it here. I encountered exactly the same issue when I tried to get it to work with Arduino.
Here is a drawing of how I connected each component:
The DFPlayer Mini is brand new, I bought it from PiHut
The SD card is new, 16GB, formatted FAT32 (formatted on Windows as I read Mac creates hidden files). I uploaded an mp3 file named 0001.mp3 under folder named mp3
The speaker is 4Ohm 3W. I thought maybe I soldered it wrong, but I showed it to someone who is an electrician and was told that it was fine
Any ideas what is going on here? Thank you in advance!
Thank you. By saying this you mean I need a battery with higher voltage? If yes, would you have any thoughts on why I was encountering the same issue with Arduino when it was powered by my laptop?
Can the df mini player handle a speaker of such low impedance? Do you have another handy that is at least 8, or a datasheet that says what the minimum is?
That YT video is rubbish. Pin 12 of the DFR should not be wired directly to ground. (The author must have dubbed the sound track at the end of the video.) The correct way is to wire it via a 51k resistor, or a close value as I've shown.
I can’t guess at the reason for that last puzzle but I’m sure that @van_der_decken ‘s diagnosis is the cause of your problem.
As shown in my post #6 the DFR module needs a minimum supply voltage of 4.2V. Try three AA alkalines, not two. Or any other methods to keep it within the range I showed, 4.5 to 5.0V.
My earlier post assumed that you didn’t want the result shown in that second video: constant repetition of a single track? Not even a normally open push button to trigger it!
As you see from that diagram based on the DFR specs, the module can deliver versatile functionality without the aid of an Arduino. But I’d still recommend you use one. Try again and come back with fuller details of why it doesn’t work.
BTW, note that the documentation from some sources has errors about the AD and IO keys..