Help

Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

Serial TTL on Ardbox Relay

Avatar
Molle

Hi,

Where should I connect Serial TTL (TX/RX) on a Ardbox Relay (PLC Arduino ARDBOX PLC 20 I/Os RELAY HF) to get the Leonardo board's Serial1 connection?

Best regards,

Erik

Avatar
Discard
1 Answer
0
Best Answer

This device doesn't have Serial Port available because the Leonardo board's Serial1 is used tu run the RS-232 and RS-485.

To solve the problem we have two solution: 

1. Use a RS - 232 to Serial TTL convertor, taking into account that we won't be able to use RS-232 at the same time.

2.  Use the library Software Serial to simulate the Serial Port.

For the Ardbox family all pins can be used for Tx while for Rx the following can be used, of Leonardo: pin 14 (SO), pin 15 (SCK) or pin 16 (SI). We recommend to use RX as digital pin 14 (SO) and connect it to the TX of the other device and TX as the digital pin 15 (SCK) connected at RX.

To see an example of how to program it you can have a look here.
Avatar
Discard