Using one UART Connection for Multiple Devices

Hi,

I am using an ATMega328 which has one TX and RX pin. My application requires me to use two different devices: HC07 Bluetooth Module and Adafruit Ultimate GPS Module, both of which send/receive data using the UART pins.

I do not need to use both devices simultaneously so can I connect both of them to the same TX and RX pins on the ATMega328 chip? Both the devices have enable pins and I was thinking of controlling them using these pins in software. Will this work or will it be better to use a multiplexers?

Thanks!

That should work just fine. Just realize you cannot receive data from the unit not selected.

1 Like

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