Forum Controladores/PLC

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

Digital inputs not working Ardbox

Avatar
John Tsouris

I have had two experienced Arduino programmers try and get the digital inputs working on this Leonardo Arduino based Ardbox.  Even when programming the most basic program to just test the digital inputs, the inputs act as if they are floating.....kind of.

The basic test program monitors two declared digital inputs, and jumps to one of two subroutines based upon one of the two inputs actuating.  The subroutines simply turn two digital outputs on and off for testing.  When running the program, it always jumps to one of the subroutines constantly with neither of the inputs being actuated.

Keep in mind, the Ardbox has indicator lights that show when a digital input has been actuated.  These stay off until one of the inputs is actually actuated. If the digital inputs are firing on their own, they do not light up the digital input LED lights when they do so.

The digital inputs have been both declared as ground, and also pulled high (supposedly) by the internal resistor. This makes no difference, the program still jumps to the subroutines without a digital input being actuated.

I haven't tried using physical resistors to make this work, but even if I do, the device shouldn't need them to work.

Is there something special about the ardbox or leonardo we're all missing here?

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">Marti Guillem Cura</span> <span><img src=https://www.industrialshields.com/es_ES/forum/forum-controladores-plc-17/question/"/web/image/res.country/68/image/España?unique=a14a800%22 class="img img-fluid country_flag" alt="España"/></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">Marti Guillem Cura</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> 1000000015</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 class="o_forum_tooltip_line"> <span>Sant Fruitós de Bages</span><span>, </span><span>España</span> </div> </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">Marti Guillem Cura</span>-- </div> <div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress"> </div> <div> <span> </span> </div> </address> </div> </div> </div> "> Avatar
Marti Guillem Cura
Best Answer

Morning,

Our industrial PLCs are ready to work using our Industrial Shields boards on the Arduino IDE. On the following page you can see how to set up all the initial configurations. As you are working on an Ardbox family product, on this link there is all the information about its settings and how to work with it: Ardbox.

In order to power up the LED's, the PLC must be connected to an external power supply (12Vdc - 24Vdc). Take in mind that some internal Arduino pins may be used for other extra features implemented on the PLC.

Finally, make sure that the switch configurations are set up correctly.

I hope I have been useful

Avatar
Descartar