Pages: [1]   Go Down
Author Topic: Serial communication with RS485  (Read 662 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is there any way we can use other I/O pins(not TX and RX) in Arduino for serial communication. I need to send 16 bytes of data serially to a RS485 port which is a slave and receive 16 bytes of data from it. The RX and TX pins of Arduino are taken by XBEE which connected to the Arduino.
Logged

Left Coast, CA (USA)
Online Online
Brattain Member
*****
Karma: 362
Posts: 17306
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is there any way we can use other I/O pins(not TX and RX) in Arduino for serial communication. I need to send 16 bytes of data serially to a RS485 port which is a slave and receive 16 bytes of data from it. The RX and TX pins of Arduino are taken by XBEE which connected to the Arduino.

It depends on the specfic Arduino board you have. A Arduino mega board has four hardware serial ports avalible. The standard 168/328 boards have only the one. However you can utilize a software serial library to utilize any two pins for another serial link:

http://arduino.cc/en/Reference/SoftwareSerial

Lefty
Logged

Pages: [1]   Go Up
Jump to: