How to trigger function from DFPlayer module without serial communication?

Hi. I'm trying to use this DFPlayer module with some constraints, I just need to use 3 cables for the entire setup. I need to only play one audio file whenever i want from the arduino. I tried to only connect the RX pin but it has some complexities. In the DFPlayer website it shows that a way to use it is the following:


I'm interested in the ADKEY1 pin. If i connect it to GND, it start playing the first (and only in my case) audio file in loop, and it wont stop even if i disconnect the cable. Thats exactly what i want but doing it whenever I want from the arduino and not looping it. Is there any way to trigger it from an arduino digital output pin?

Yes - connect that ADKEY1 pin to an Arduino pin. Set the pin to OUTPUT, LOW to simulate the button pressed, INPUT or OUTPUT, HIGH to simulate the button released.

This works for all Arduino boards that use 5V logic; it may or may not work for those that use 3.3V logic.

@gzanotto - Pins 9 (IO1) and 11 (IO2) are the "Next" and "Previous" buttons if you "short press" them (ground them or set the attached pin LOW). If you "long press" IO1/IO2, they act as VOL- (9) and VOL+(11). I think ADKEYx are used in conjunction with a resistor network to allow for a multi-buttonbox on two pins.

See this link/video for the bare-bones (no code) use of DFPlayerMini.

[edit]
Yes... AD is their buttonbox...

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.