r/arduino • • 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

12 comments sorted by

View all comments

Show parent comment

0

u/DiegoMike1303 Oct 04 '26

Hello All, OP Here. Thank you for the help, I have it working almost exactly the way I need. BTW, I apologize for creating some confusion with my original request – I shouldn’t have said “no coding”. I meant that I wanted to avoid all the serial connections and library coding. Happily, the first response nailed it:

“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.”

My code for this looks like: 

pinMode(7,INPUT);    

pinMode(7,OUTPUT);

digitalWrite(7,LOW);

This works and now I have another question: I want to stop the recording after, let’s say, 5 seconds.  I tried changing the trigger pin back to INPUT using

delay(5000);

pinMode(7,INPUT);

 

but that doesn’t seem to work. How can I do this?