not enough interrupts!

Hi,

Arduino newbie here, I looked around a bit and could not find the info I am seeking, hence this post.

I am using and Arduino Uno and stacking a sparkfun weather shield (https://www.sparkfun.com/products/13630) and CC3000 Wifi Shield. Both shields are built and working independently with the Arduino (yay!) and when I started putting together the code to integrate everything, I had a (sad trombone) moment upon discovering that the CC3000 needs one interrupt pin and the weather shield requires two more pins (rain gauge and wind), but it looks like unfortunately the Uno only has two interrupt pins (2,3). I couldn’t come up with any clever ways to have two devices share an interrupt pin, so I think my only options at this point are to either get another arduino board that has more interrupt pins or another wifi shield that doesn’t have an interrupt pin requirement. Any other options I should consider?

If I do go the route of getting another board, it looks like the leonardo has five available interrupt pins (https://www.arduino.cc/en/Reference/AttachInterrupt) would this be a good board that is compatible with the two shields I am using? or would it be better to get a Mega or a Due or ???

Thank you for any advice or info you have.

Do a search on Arduino pin change interrupts. You will find that you have all the interrupts you need on the Uno.

Good luck,

  • Chip

Awesome! Thanks Chip. I did not know about pin change interrupts, looks like exactly what I need.