Go Down

Topic: More than 1 DFPlayer (Read 838 times) previous topic - next topic

Alonada

Hi. Is it possible to connect more than 1 DFPlayer to 1 Arduino (Uno) board?

Grumpy_Mike


Power_Broker

Yes.
More specifically: yes, if you use softwareserial.h to create a "new" serial port to control each DFPlayer. Or, you could use a Mega and use the multiple hardware UART serial ports (one port for each player).
"The desire that guides me in all I do is the desire to harness the forces of nature to the service of mankind."
   - Nikola Tesla

Alonada

Thank.
Currently I have only Arduino Uno. Can you please suggest a way how to create new serial port?
I believe I have to amend somehow these lines?:

SoftwareSerial mySoftwareSerial(10, 11); // RX, TX
DFRobotDFPlayerMini myDFPlayer;


Can I skip the TX in order to win more serial ports?

Grumpy_Mike

Quote
Can I skip the TX in order to win more serial ports?
No? Without a TX you can not send data to your DFPlayer which I thought was the whole point.

Quote
Can you please suggest a way how to create new serial port?
Yes use something like:-
SoftwareSerial mySoftwareSerial(10, 11);
That creates a second serial port, you already have one real serial port on your Arduino Uno.

Note with software serial you can have as many instances as you want but only receive on one port at a time, which will not be an issue with what you want to do.

Go Up