USING INT2 on 24V input

Stuck? We'll be happy to help!
Post Reply
Posts: 1
Joined: Sat Feb 15, 2020 7:53 am

USING INT2 on 24V input

Post by Adolfito121 » Sat Feb 15, 2020 8:02 am

Hello everyone.

I'm working on a project involving a Controllino MEGA and I've read that there are more than 2 interrupts available:
The Arduino Uno has 2 and the Mega has 6 external interrupt pins available:

Arduino Uno/Controllino MINI/INT.x interrupt: 2/IN0/INT.0 – 3/IN1/INT.1
Arduino Mega/Controllino MAXI,MEGA/INT.x interrupt: 2/D0/INT.0 – 3/D1/INT.1 – 18/IN0/INT.5 – 19/IN1/INT.4 – 20/SDA/INT.3 – 21/SCL/INT.2

I've tried to wire my 24V sensors directly on the pins D20, or D21 but they are in the OUTPUT side of the board (and when I activate the sensors there is no led on the board indicating that the sensor triggering has been detected).

Is there any way that allows me to use a third interrupt with a 24V sensor with a Controllino MEGA board?

Thanks in advance for any help.

Greets from Barcelona

User avatar
Posts: 17
Joined: Fri Dec 14, 2018 10:52 am

Re: USING INT2 on 24V input

Post by Jarda » Mon Feb 17, 2020 3:50 pm

yes, MEGA has 6 interrupt pins, but for pins corresponding with outputs it is not possible to access them from outputs screw terminals, because these are outputs !
If you want to use for example /D0/INT.0 you have to use pinheader X1 where the corresponding PE4 is, to access directly the processor pin. Please note, that the pinheader is 5V only so you have to use for example divider from your 24V. And you have to properly configure this pin as input in your FW application.
Please think twice before connecting the pinheader ;-)


Post Reply