Python/Arduino Beginner here...
I have a DFplayer I am trying to hook to my Arduino and I want to hook it up through the regular pins instead of the RX and TX pins, but I've not been able to find detailed information on if I can do that and how to set it up... Is this possible to do?
-
3docs.arduino.cc/learn/built-in-libraries/software-serialJuraj– Juraj ♦2023年06月15日 04:04:51 +00:00Commented Jun 15, 2023 at 4:04
1 Answer 1
Yes, it is possible. You need to use the SoftwareSerial.h library, which comes with the AVR libraries package preinstalled in Arduino IDE. You just need to find some library which supports declaring the DFPlayer object with custom serial port as a parameter in constructor, or use it without any additional library and send commands to it by yourself.
Here is a tutorial for the SoftwareSerial library: https://docs.arduino.cc/tutorials/communication/SoftwareSerialExample
Explore related questions
See similar questions with these tags.