Interrupt Inputs Ardbox / MDuino

This post shows how to use the interrup inputs that Industrial Shields PLCs have available. For information and description on what are interrupt inputs and how these work see this link. The interrupt inputs for Industrial Shields PLCs are listed in the pinout section of the datasheet.

In this example the interrupt input I0.0 is used to caught the pulse of an encoder (for proper connection and wiring check this post). Every time that interrupt I00 a RISING edge, the ‘encoder’ function will be triggered and count value increased by one unit. The count value is printed on the serial monitor.