Serial two port

i want Arduino to communicate with Zigbee and Lora module together. But i don't know how to set up leg RX and TX for both in Arduino board. Could you help me, please?

Good hunting:
"Arduino" + "Zigbee" + "Lora" - Search (bing.com)

Were I attempting to do this, I would approach Arduino + Zigbee first and add the LoRa in later. Which is to say, 'Don't bite off more than you can chew at one time.'

select an Arduino with multiple hardware serial ports, e.g. Mega, DUE, ESP32, etc
then as @mrburnette recommends implement and test communication with the devices one at a time. when you have both working you can look at implementing both in a single program
are you looking at using Lora point to point communication or LoraWAN to the cloud?

Consider that Rx and Tx are on the dumb side. Tx only sends and cannot receive anything. Rx hears stuff but cannot send anything. This stated Rx connects to Tx on the other board, same for Tx goes to Rx on the other board. You can have more then one Rx connected to the same Tx but not a Tx connected to a Tx. To accomplish this you need some additional hardware and a protocol that turns one off while another transmits.

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