Pages: [1]   Go Down
Author Topic: Interfacing with more than one tx/rx serial device  (Read 344 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 39
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27145
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

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.

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 617
Posts: 49463
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: