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
View all comments
Show parent comment
1
u/gm310509 400K , 500K , 600K , 640K , 750K Sep 20 '26
I am not sure I follow your question:
I do not see a play pin on the guide that I linked. There are two "Key" pins labelled ADKEY1 and ADKey2.
These look like they are setup as some sort of voltage divider with an internal pullup resistor within the MP3 player module. I assume a pullup resistor because the buttons are connected to GND.
So, when the button marked K1 is pressed (corresponding to the "Play mode", a 200K resistor is inserted into the circuit.
If I am correct (about the voltage divider), then the resulting analog voltage is detected and the module does whatever "Play Mode" means.
There is also a "Pause/Play" button labelled as K5. When K5 is pressed a 33K resistor is inserted into the circuit resulting in a different analog voltage being presented to ADKEY1 and the module will react accordingly when it sees that particular voltage.
So, if my guess as to your question is correct, the answer is neither, the buttons as shown in the AD Key Mode diagram are a voltage divider and if you pulled the lines LOW, then you will get "K10" (or K11 for ADKEY2) and if you set them HIGH, then probably nothing will happen as that is the "no button pressed state".
If you haven't done the basics, I suggest you try googling voltage dividers and experiment with the some of the
analogReadexamples in your starter kit and/or the IDE's builtin examples.