Go Down

Topic: Interfacing with more than one tx/rx serial device (Read 378 times) previous topic - next topic

mikejonesab1

So I know the catch is that only one device can use the tx and rx lines. I have two devices that require serial tx/rx communication. Is there a way around this problem? I was thinking a switch that can be switched on/off with one of the other digital pins? Thoughts? Thanks in advance.

--Mike

CrossRoads

Well, the Uno can Tx to both at same time.
Need a way to only Rx from one at a time.
What voltage levels are being used? TTL? RS232? RS485?
With TTL, you could use a pin as you suggested to enable one Rx line or the other thru their own 74HC125 buffer.
http://www.digikey.com/product-detail/en/74HC125N,652/568-1393-5-ND/762997
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

PaulS

You can also use SoftwareSerial to talk to one of (or both of) the devices.

Go Up
 

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.
Name:
Email:

shortcuts: alt+s submit/post or alt+p preview