More Interrupts, Uno or Similar

Hello there,

Did anyone figure out how to use more than two interrupt pins on the Arduino Uno or similar board?
I need more than two (three or four or maybe more, but three would be good for now) but there are only two possible to be enabled using the Arduino library and IDE.

I would hope it is not too hard to do, but i'll put up with almost anything if it works.

Thanks :slight_smile:

http://playground.arduino.cc/Main/PinChangeInt

http://playground.arduino.cc/Main/PinChangeInterrupt

Did anyone figure out how to use more than two interrupt pins on the Arduino Uno or similar board?

Are you sure that you need more, or indeed any, interrupts ? There are legitimate reasons for using them, in which case they are needed but often questions here about interrupts end up with a different/better solution depending on the requirement.

Hello again,

Thanks for the replies, i'll have to look into that library.

I needed the extra interrupt a couple times now, because my encoder uses the two normal int's pins 2 and 3 of the Uno (or Nano). I needed at least one more.

The application is reading the frequency of an incoming digital signal range maybe 50Hz to 400Hz.
I am going to try using pulseIn() first, but that reads the timing of the pulse rather than the frequency so i will try to read the low state time and the high state time and see if i can get the frequency from that within a reasonable accuracy. If not, i'll have to move to that third interrupt.

The incoming frequency pulses are typically 200us low and 10ms high and keep repeating forever.