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

By
Molle
on 10/15/18, 5:58 AM 145 views

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


0
Industrial Shields Forum user

Andrei Postolache

--Andrei Postolache--

2000000000
| 0 0 0
--Andrei Postolache--
Andrei Postolache
On 6/17/20, 9:47 AM

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.

Keep Informed

About This Community

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. Read Guidelines

Question tools

3 follower(s)

Stats

Asked: 10/15/18, 5:58 AM
Seen: 145 times
Last updated: 6/17/20, 9:47 AM