Go Down

Topic: Serial communication with RS485 (Read 679 times) previous topic - next topic

arduinokid

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.

retrolefty

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

Go Up