tag:blogger.com,1999:blog-3023733232190747494.post3736554100800042685..comments2024-03-12T10:01:17.050-07:00Comments on Markus Wobisch: Playing sounds from the Arduino with DFPlayerMarkushttp://www.blogger.com/profile/11553155400706415002noreply@blogger.comBlogger37125tag:blogger.com,1999:blog-3023733232190747494.post-336903008744953462021-04-06T11:19:55.913-07:002021-04-06T11:19:55.913-07:00Hi Steve, if you are referring to stand-alone oper...Hi Steve, if you are referring to stand-alone operation (i.e. without Arduino) of the DFPlayer, then I don't think I can help you. I've never used it like that. My projects all require a certain amount of logic, which is provided by the Arduino program.Markushttps://www.blogger.com/profile/11553155400706415002noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-18122300053940095692021-02-20T09:35:20.652-08:002021-02-20T09:35:20.652-08:00Hi Markus - I am a total noob to arduino and DFPla...Hi Markus - I am a total noob to arduino and DFPlayer. I have a little first project i am trying to do and all i need is for the DFPlayer to power up, then start playing continuous loop of a handful of files. Then after some period of time i will power it off until the next time to play. I have built the basic breadboard using the pins, button switches, and resistors per its schematic, and can command it that way and get it to play the files in sequence (weird though it may be as described above!). But i cannot figure a way to have it simply power up and "auto-play".. Do you know of a way to do that without having to use programming? Thanks for any guidance!Steve Ghttps://www.blogger.com/profile/13058145141729850434noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-42355805174741258812021-01-06T06:30:17.069-08:002021-01-06T06:30:17.069-08:00Ok so what the tips here did for me: It stabilized...Ok so what the tips here did for me: It stabilized my setup (for example: no dragging when playing tracks). So huge thanks for that.<br /><br />Btw. I found a reasonable easy solution for getting rid of the startup sound, and also the pop sounds and the cutoff tracks caused by soldering the 0ohm resistor to the busy pin: https://discourse.voss.earth/t/kopfhoereranschluss-moeglich/96/84<br /><br />This enables switching the amp on off at will via the Arduino.<br /><br />And if the the noise of the DFPlayer is really bothering someone, there seems to be a solution for that as well (have not tested this, because I am not in for a SMD soldering orgy):<br />https://discourse.voss.earth/t/brummen-aus-dem-lautsprecher/69/24Stefanhttps://www.blogger.com/profile/16355912792623011959noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-19265279662927201802021-01-02T04:27:24.239-08:002021-01-02T04:27:24.239-08:00Ad (some comment above):
Great info. If you'r...<br />Ad (some comment above):<br /><i><br />Great info. If you're worried about noise when switching the module on/off, check out this post: https://work-now-dammit.blogspot.com/2016/08/dfplayer-mp3-module-power-onoff-clicks.html?m=1<br />Haven't tried this yet, but looks promising.<br /></i><br /><br />It will get rid of the "startup sound" but will lead to a "pop" sound in between tracks (source: tried it myself, and also other forums).<br /><br />A relatively simple solution IMHO would be a switch with MOSFETs (https://discourse.voss.earth/t/geraeusch-beim-start-der-box-allerdings-nicht-bei-jedem-start/1357/34). Caveat: It introduces some kind of noise to the Audio signal. Well, at least for me when I use a Nano board, with the UNO it was fine as far as i can remember.<br /><br />Hope some of the tips here gets rid of this...Stefanhttps://www.blogger.com/profile/16355912792623011959noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-15583408860809701872021-01-02T04:26:06.336-08:002021-01-02T04:26:06.336-08:00This comment has been removed by the author.Stefanhttps://www.blogger.com/profile/16355912792623011959noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-46128894411416075642020-11-29T19:37:10.296-08:002020-11-29T19:37:10.296-08:00Dear Markus,
Thank you so much! I appreciate your ...Dear Markus,<br />Thank you so much! I appreciate your prompt response.<br />Regards,<br />FeliciaAnonymoushttps://www.blogger.com/profile/03350519756877815010noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-53524658641782348242020-11-29T11:21:52.666-08:002020-11-29T11:21:52.666-08:00Hi Felicia, yes, an 8Ohm 5W speaker will work. Jus...Hi Felicia, yes, an 8Ohm 5W speaker will work. Just connect it to the Spk_1 and Spk_2 pins. It's been quite some time that I wrote that tutorial, and since then I built many projects where I connected a speaker directly to the DFPlayer (without the PAM amp). It works fine and the loudness is always enough for indoor purposes. Maybe check my Flux Capacitor built: https://markus-wobisch.blogspot.com/2018/12/building-bttf-flux-capacitor.html (it has a video where you can hear the sound). Always keep in mind that any speaker will work better if it is sitting in an enclosure. The enclosure can be small and/or built of cardboard - but it will improve the bass response quite a lot.Markushttps://www.blogger.com/profile/11553155400706415002noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-14615373878873247272020-11-29T09:55:15.818-08:002020-11-29T09:55:15.818-08:00Hi Markus, will I be able to drive a 8ohm 5watt s...Hi Markus, will I be able to drive a 8ohm 5watt speaker directly from the dfpmini player? <br />Regards, <br />Felicia Anonymoushttps://www.blogger.com/profile/03350519756877815010noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-86699201239906547892020-11-28T20:46:20.091-08:002020-11-28T20:46:20.091-08:00Hi Macca, I do not know anything about changing th...Hi Macca, I do not know anything about changing the playback speed, and based on my (limited!) knowledge, I assume that it can't be done. Of course, you could have a number of different files corresponding to different motor sounds, heartbeats, etc. But I don't think you can achieve a continuous transition. For the heartbeat, it would be easier, as these are individual sound pieces and you could repeat them, and at some point switch to faster/slower ones.Markushttps://www.blogger.com/profile/11553155400706415002noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-65752265952989385502020-11-25T04:21:16.120-08:002020-11-25T04:21:16.120-08:00Thanks for the great info on this module. I wish I...Thanks for the great info on this module. I wish I would have found your blog before spending days trying to get this module working. Would you know if there is any way to control playback speed, such as a motor sound, heartbeat etc?Maccahttps://www.blogger.com/profile/17995140396714774709noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-60729410243170033052020-05-05T14:26:56.388-07:002020-05-05T14:26:56.388-07:00Great info. If you're worried about noise when...Great info. If you're worried about noise when switching the module on/off, check out this post: https://work-now-dammit.blogspot.com/2016/08/dfplayer-mp3-module-power-onoff-clicks.html?m=1<br />Haven't tried this yet, but looks promising.Alexhttps://www.blogger.com/profile/01438178086905342535noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-69684920715111412172019-09-25T09:17:56.851-07:002019-09-25T09:17:56.851-07:00Thank you, Hank, for the additional information. T...Thank you, Hank, for the additional information. This is almost as weird as in mode #1 where the order matters in which files are written to the card. I would use neither of them. Mode #2 allows to store 255 files in one directory. If I had more than 255 files, I would really want to organize them in different directories. But also in many other cases, for example for my <a href="https://markus-wobisch.blogspot.com/2018/12/building-bttf-flux-capacitor.html" rel="nofollow">Flux Capacitor</a>. This makes different electrostatic noises which are organized in three categories (soft, medium, heavy). The sound clips for each category are stored in a separate folder, and within each folder they are accessed randomly. Here the directory structure is very helpful as I can always add files to individual directories so my code does not have to keep track of which files belongs to which category.Markushttps://www.blogger.com/profile/11553155400706415002noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-57957824227383164592019-09-23T12:28:30.380-07:002019-09-23T12:28:30.380-07:00Markus, I found a quirk with the /mp3 mode #3.. th...Markus, I found a quirk with the /mp3 mode #3.. the actual file name is irrelevant, it’s the sort order that counts.. if you have files: <br />0001.mp3<br />0002.mp3<br />0004.mp3<br />0009.mp3<br /><br />You need to request Track 3 to play 0004.mp3 and request Track 4 to play 0009.mp3<br /><br />So the 0001...000x is just to sort the files in ascending order, but the file names are not used for playback— it’s their physical order.<br /><br />Hankhttps://www.blogger.com/profile/00943676734610892666noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-15482523621088423432019-09-23T09:11:55.678-07:002019-09-23T09:11:55.678-07:00Hank, thank you for your kind words. I'm glad ...Hank, thank you for your kind words. I'm glad it was helpful. I was also, initially, very overwhelmed by the different modes - that's why I thought the blog post might be helpful. Good luck with your project.Markushttps://www.blogger.com/profile/11553155400706415002noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-76550713170570804972019-09-20T12:58:40.519-07:002019-09-20T12:58:40.519-07:00Markus, you are a genius! I've been banging m...Markus, you are a genius! I've been banging my head for DAYS trying to figure out and fix the strange order the tracks were being played in. All the other docs online for DFPlayer conflict -- with some saying three digit file names (001.MP3), some with four digit names, some say files in the root directory, some in /mp3, and others with the /01../09 directory structure. But nowhere ELSE did anyone specify the three distinct playback modes and how to enable each one. Thank you! Thank you! Thank you!Hankhttps://www.blogger.com/profile/00943676734610892666noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-78626963082546147032019-08-26T06:56:41.388-07:002019-08-26T06:56:41.388-07:00skc351, no the busy line from the DFPlayer can be ...skc351, no the busy line from the DFPlayer can be connected directly to the Arduino input. This worked in all my projects.Markushttps://www.blogger.com/profile/11553155400706415002noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-72245747393712109242019-08-26T00:04:44.115-07:002019-08-26T00:04:44.115-07:00HI,
Is pull-down resistor required in between busy...HI,<br />Is pull-down resistor required in between busy and Arduino pin??skc351https://www.blogger.com/profile/15903474437426721602noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-25424424849234946952019-05-30T10:54:00.794-07:002019-05-30T10:54:00.794-07:00Benny, yes, the 1N4007 works too.Benny, yes, the 1N4007 works too.Markushttps://www.blogger.com/profile/11553155400706415002noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-35201268125803763852019-05-30T10:13:57.456-07:002019-05-30T10:13:57.456-07:00Hi Markus,
Thank you for the quick and full respo...Hi Markus,<br /><br />Thank you for the quick and full response !!<br />I have here a IN4007 diode, I suppose I can also use this one.<br /><br />Best regards,BennyBennyhttps://www.blogger.com/profile/05830570487566535023noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-82412495738479588242019-05-30T10:13:55.327-07:002019-05-30T10:13:55.327-07:00Hi Markus,
Thank you for the quick and full respo...Hi Markus,<br /><br />Thank you for the quick and full response !!<br />I have here a IN4007 diode, I suppose I can also use this one.<br /><br />Best regards,BennyBennyhttps://www.blogger.com/profile/05830570487566535023noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-20356291313768878462019-05-30T09:41:50.676-07:002019-05-30T09:41:50.676-07:00Benny, putting the 1N4001 diode between +5V and th...Benny, putting the 1N4001 diode between +5V and the VCC input of the DFPlayer is exactly what I described - and it always worked for me. It should work without any further capacitors, but a small one (100nF = 0.1uF - between GND and the player's VCC) would help to filter out noise. And larger one (100uF or 220uF, or more) would help to supply a little extra current at loud sound peaks. Otherwise, I experience that at loud sound peaks, the DFPlayer draws too much current, so the voltage goes down and the Arduino resets. A large capacitor would help to stabilize this (if it does not, then you need to reduce the volume).Markushttps://www.blogger.com/profile/11553155400706415002noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-49775111478346788512019-05-30T09:15:15.359-07:002019-05-30T09:15:15.359-07:00Dear Markus,
First of all, thanks for this articl...Dear Markus,<br /><br />First of all, thanks for this article.<br /><br />I have a similar set-up as yours, also with an extra amplifier.<br />I give 5v power to the DF-Player which is probably to much.<br />Would it suffice to just place a IN4001 diode between the + 5V and the VCC of the DF Player, or do I also have need a extra number of capacitors? When yes, where do I put them?<br /><br />Regards<br />BennyBennyhttps://www.blogger.com/profile/05830570487566535023noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-61239798786761559842019-03-31T09:56:18.142-07:002019-03-31T09:56:18.142-07:00Hayward, thanks for your thoughts. This makes a lo...Hayward, thanks for your thoughts. This makes a lot of sense. But, as they say, "if it ain't broke, don't fix it". I have used this setup now for six projects - it always worked absolutely stable, and for this part of the circuit I don't do any test setups on breadboards anymore - I just copy it into the next project. Maybe in my next project I keep the resistor but add a bridge over it. If it does not work reliably, I can just cut the bridge. Or maybe you can try that and let me know.Markushttps://www.blogger.com/profile/11553155400706415002noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-86525094213130235412019-03-30T21:59:13.316-07:002019-03-30T21:59:13.316-07:00Do you really need the 1K resistor in both directi...Do you really need the 1K resistor in both directions? If the TX on the DFPlayer Mini is using 3.3V logic, then a high should just barely register on the Arduino's RX. But if you put a resistor in there, you'll drop the voltage farther.<br /><br />The resistor makes sense (to me) in the other direction, since you don't want the Arduino's 5V TX to directly drive the DF Player Mini's RX.Hayward Haunterhttps://www.blogger.com/profile/10228468162890592981noreply@blogger.comtag:blogger.com,1999:blog-3023733232190747494.post-26786204944191857222019-02-09T19:42:41.920-08:002019-02-09T19:42:41.920-08:00Thank you, snaxau. You are right, in my version of...Thank you, snaxau. You are right, in my version of the code, the delay of 4sec is only applied after the last track, before it starts playing the first track again. This is what I wanted for this example. If you want to have a 4sec delay after each track, than your version is correct. <br />You could also combine both: e.g. add 2sec delay after each track (place delay(2000) where you suggested), plus additional 3sec after the last track is played (place delay(3000) where I put it). Markushttps://www.blogger.com/profile/11553155400706415002noreply@blogger.com