Hello i have 2 components, a geetech voice module and a GPS-Neo 6m module. Both modules require a Rx and Tx connection, and i need to use them on an arduino mega. How should i proceed concerning the programming part for it because i know that on a mega there is 4 sets of Tx and Rx ports.
You use two of the spare serial ports to talk to your devices. Use the names Serial1 and Serial2 to use them just like the normal serial pin.
1 Like
Connect one of them to e.g. TX1/RX1 and use Serial1 in your code, connect the other one to TX2/RX2 and use Serial2 in your code.
1 Like
Leave TX and RX for use with the Serial Monitor, for debugging your code, and do as Grumpy and Sterretje suggest.
C
1 Like
Okay, thank you guys, i will give it a try
Don't forget the common ground!
1 Like
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.