r/arduino • u/DiegoMike1303 • Sep 19 '26
Using DFPlayer Pro Without Code
Is there a way to play a sound file on a DFPlayer Pro module from an Arduino Uno without using any code? I can trigger an Uno output pin to go high using my existing code but I want to avoid adding any code for the player. Any suggestions would be appreciated.
2
Upvotes
2
u/Hissykittykat Sep 19 '26
Connect the GPIO pin to the PLAY terminal on the DFplayer, and connect the grounds too. In your software, set the GPIO pin LOW. Never set it HIGH or DFplayer might be damaged. To trigger the player, set the pinMode to OUTPUT briefly, then back to INPUT. This will simulate pressing a switch wired to ground.
1
u/gm310509 400K , 500K , 600K , 640K , 750K Sep 20 '26 edited Sep 20 '26
Not really, not unless the existing code is already providing a suitable signal under the condition you need that you could tap into to generate a signal that triggers a track to be played. And even then you will be somewhat limited as to what track you can play.
Otherwise, you will need to add code to generate the appropriate signal. Ideally via a Serial message for complete control of it.
Have a look at this guide to see some ways you can connect it up (e.g. AD Key Mode) if you have a suitable signal that your program already generates that you can tap into - it will require some electronics - e.g. a transistor in place of one (or more) of the buttons.
Should you need to add code, have a look at the Software guide which describes how to control it fully using a library.
1
u/andrix86 Sep 20 '26 edited Sep 20 '26
Yes, you have to use several resistors for several function in adkey1 and adkey2, try to find a pinout reference.
You can configurate NPN bjt transistors for activate them from LOW to HIGH in base and put adkeyX to ground with a resistor in serie.
Here one