Skip to Content

Inputs


Outputs


Arduino pins

The Ardbox and M-Duino series PLCs expose some of the pins of the Arduino inside them. As the Arduino pins, they can be used as input or output, and their operating voltage is 5V.

As these pins are directly connected to the Arduino Leonardo/MEGA inside the Ardbox/M-Duino PLCs,  you need to be careful when using them. Do not surpass the operating voltage of 5V or the Arduino board could be damaged.

There is not any circuitry between the Arduino inside the PLC and these pins, so they can be used in the same ways as a regular Arduino board pin. For example:

  • Use them as slave select for SPI devices.
  • Interface with OneWire devices, such as the DS18B20 temperature probe. 

The pins available for each PLC model are the following:

PLC

Pins

Ardbox

2*, 3*

M-Duino

2, 3

*Pins 2 and 3 in the Ardbox, which can be used for I2C as well, need to be activated using the corresponding switches that you can see above.


Usage

These pins can be used with the regular Arduino functions: pinMode(), digitalRead() and digitalWrite(), as well as other libraries that make use of them, such as the OneWire library.

Check out the Arduino Digital Pins documentation page for more detailed info about this topic.

Rating
0 0

There are no comments for now.

to be the first to leave a comment.