General

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
Descartar
1 Respuesta
0
<div> <h5 class="o_wforum_bio_popover_name mb-0"> <address class="mb-0" itemscope="itemscope" itemtype="http://schema.org/Organization"> <div> <span itemprop="name">Andrei Postolache</span> </div> <div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress"> </div> <div> </div> </address> </h5> <span class="o_wforum_bio_popover_info"> <address class="mb-0" itemscope="itemscope" itemtype="http://schema.org/Organization"> <div class="css_non_editable_mode_hidden"> --<span class="text-muted">Andrei Postolache</span>-- </div> <div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress"> </div> <div> <div class="css_editable_mode_hidden"> <div class="mb-2"> <br/> </div> <b class="mt-4"><i class="fa fa-diamond text-secondary"></i> 2000000000</b> <div style="display: inline-block"> <b>|</b> <span class="fa fa-trophy badge-gold ml-2" role="img" aria-label="Gold badge" title="Gold badge"></span> 0 <span class="fa fa-trophy badge-silver ml-2" role="img" aria-label="Silver badge" title="Silver badge"></span> 0 <span class="fa fa-trophy badge-bronze ml-2" role="img" aria-label="Bronze badge" title="Bronze badge"></span> 0 </div> <div class="mt-2"> </div> </div> </div> </address> </span> <div class="o_wforum_bio_popover_bio"> <address class="mb-0" itemscope="itemscope" itemtype="http://schema.org/Organization"> <div class="css_non_editable_mode_hidden"> --<span class="text-muted">Andrei Postolache</span>-- </div> <div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress"> </div> <div> <span> </span> </div> </address> </div> </div> </div> "> Avatar
Andrei Postolache
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
Descartar