can anyone please guide me how to do this thing using sd card reader module which is based on SPI protocole which rather in this case was through Rx and Tx?
Not sure what you mean.
The MP3 module mentioned in this thread has an SPI card slot but the SD card is only available to the onboard MP3 chip and not to the host controler.
Via TX/RX interface you tell the on-board chip which files on the SD card to play.
Just trying to hook up another ‘cheap’ MP3 player - this is a MP3-TF-16P which pinout wise is similar to the DFMiniPlayer. It worked with the DFMiniPlayer library I had but I was getting a “clap” at the end of a track playing and a lot of “crackle” and “buzz” over the sound.
For the benefit of anyone on the Particle Community I thought I would share the tips to make this board work acceptably.
- Get your soldering iron out and remove the 0R resistor next to pin 1 of the Audio Amp (8002) on the other side of the PCB from the SD card connector. This is unnecessary and apparently just copied from the chip maker’s reference test schematic without understanding what this does!
- Bridge with solder the two pads next to pin 8 of the Audio Amp. This links the audio amp cutout to the busy pin.
- Put a 1K resistor in series with the TX pin on the Particle device and the RX pin on the MP3 player.
It is not Hi-Fi quality but the clicks and noise are mostly suppressed.
Has anyone experienced a particular file on an SD card on the DFPlayer Mini become ‘corrupt’ ? About a year ago this same file stopped playing and just makes a brief reset/crackle/pop noise instead of playing normally. All other files play beautifully. Last time this happened I just retransferred the file and normal service was resumed. I’m surprised and confused it’s happened again!
More than 4 years ago, I started this thread on the DFMiniPlayer and I’m very happy so many of you appreciated this great little gem…
In my home, I originally used several of these DFMiniPlayer modules to play music in different rooms as I enter, triggered by a movement sensor (PIR). Recently, I replaced the by tiny bluetooth modules, which are even more versatile.
But recently, I used one of my stock DFMiniPlayers to make a simple but nice door chime with different bell sounds…
I want to contribute with this simple idea: The DFMiniPlayer can be simply used as a stand-alone doorbell.
Below is my illustration which should be self explanatory:
(BTW: This is part of a full Access control system based on a Photon in my home where I can open all doors and check if they are actually closed. If anybody is interested, I can send details in a new thread.)
There is no need to buy that Access control module: Simply use your current doorbell push button.
Hey! Great to read so much information on the DF Player on this forum.
I bought it to build a jukebox. One idea I am working on is to make one dial that you can turn to ‘flip’ through all the songs on the card.
But… since almost all songs start with half a second of silence, I would really love to be able to ‘jump’ forward a few seconds when selecting a song.
Kind of what you could do with old CD players, holding down the ‘next’ button, it would then jump seconds forward to the point where you would want to listen.
I don’t see this implemented in the library and also don’t see a command for it in the manual… but maybe, maybe?
Does anybody know whether it is possible to skip forwards and backwards in a song using the DF Player?
Kind regards from Holland,
Sorry to revive this very old message but i have the exact same problem!
Playback sometimes crashes either on the start or after some seconds of playing. I thought it was current drain issue at first, as if my USB port was not enough but even pluged on 2.1Amps wall outlet i have the issue.
It’s really as if the DFPlayer reboots. The volume is reset to default after that crash.
Xenon board is OK, i’m controlling it via bluetooth and connexion isn’t lost.
Im’ powering theDFPlayer with the VUSB pin of the Xenon board.
Have you solved that issue since then ?
It drives me crazy !
Also @FiDel you mentionned this :
I found out that the speaker terminals are not “decoupled”: DC current is flowing through the speaker! This sounds poor and is dangerous…
Put an electrolytic capacitor in line with your speaker(s): Bigger = better… (220 - 2.200 uF/10V)
Attention to the correct polarity! (SPK1 = +)
Do you think this could be related to that ? May i ask more details about this ? Can I put it on any pin of the speaker ?
Also, i have an issue with the init command, but i made a specific topic for this if you have time to read it
Thanks a lot for that helpful topic !
I can’t really remember how I resolved this one but I THINK it was due to a loose ground connection and/or faulty USB plug where it connects to the Photon/Core.
I’m working on a proto board for now and the problem occurs even if i touch nothing but happens almost everytime y touch the wires so i thought it could be linked. But the fact it happens when i touch nothing made me not optimistic about that.
Now that i read your answer, i may try to solder out everything and see if the problem still happens i guess ^^
okay everything is soldered and it indeed seems much better.
I guess the DFPlayer is extremely sensitive to micro-cuts !
Fingers crossed it continues like this
Has anyone got noise issues difficult to solve…?
I added 1K resistor between RX and TX connections and i also tried adding a capacitor in series with the speaker. I also tried a power divider as exeplained here. Nothing solves the problem.
If i connect the DFPlayer to the 3.3V the noise is much quieter than with the VUSB pin but still it’s a bit noisy.
I read that having a seperate power supply for the DFPlayer and the micro controller board can help solving this issue but i have no other power supply and would like to stay with only one power cable
Any advice about this ?
Could it be the noise from your power supply?
Do you have the same noise if you power the device from a battery or battery pack?
I’m not sure if you meant “could the noise be made by the power supply” or “does the speaker’s noise depends on the power supply?”.
I power it from USB, i get the same result wether i power it from my computer or from a wall outlet USB adapter. I have no battery to try sadly
sorry for not being clearer…
What I mean is that some times the power supplies can introduce noise because they are not good enough or due to the way they convert voltage from 110 (or 220) to 5v.
Also, your computer is a very noisy environment (think about all those bits going from bus to bus creating noise) so if you plug a device on it, you can as well get noise.
So, one possible way to test if it was that the issue, would be if you had a battery, maybe a mobile phone power bank or battery pack that you use to recharge your phone when away?
Thank you for your help
Oh good idea i do have a powerbank (i was thinking about lipo battery for arduino when you talked about battery ^^").
I just tried with it and i have the same noises emitted by the speaker.
Does this reduces the causes ? (am a bit noob at electronics so it’s a bit hard for me to figure out the potential causes of this :/)
désolé, I do not have any other ideas… I thought it could be related to the power supply but apparently not.
Thank you for helping nonetheless that’s nice of you
I guess there is no “magical” way to get rid of such interferences (even more when we don’t really know where they come from…) ? Or a known component that may do the trick ?
I guess adding an amplifier would just amplify these noises?
I use these with no noise on the lines, can you share a link for the one you bought and a picture of your wiring?
I use these ones, i checked the official ones and they look very similar but maybe they’re just good copies, can’t really tell.
I just ended up unsoldering everything and tried with another DFPlayer and it seems much better (at least on a protoboard).
Maybe i fried something at some point that is the source of these noises, i don’t remember having them when first testing on a protoboard with the current faulty DfPlayer.
I guess we can say : problem solved
I bought mine from Amazon too, different seller, but very similar. Make sure you share all your grounds to the same connection if possible, multiple grounds can cause signal loss/degradation. But it sounds like you may have just had a bad one, hopefully its fixed now.