November 09, 2012

Adding pin-change interrupts to your Arduino sketch

 As most seasoned Arduino users will know, there are two hardware interrupts available on digital pins two and three. However with the correct coding you can also have pin-change interrupts on other pins as well. They can detect a (i.e. be triggered) on a rising or falling state of the pin involved.To make this possible Lex Talionis has written his arduino-pinchangeint library specifically for the task. At the time of writing it works with boards that use the ATmega168 and '328 microcontrollers such as the Ardino Duemilanove, Uno, Freetronics Eleven, KitTen, EtherTen and more. 


For a complete explanation, code and library download visit the project page. And for more, we're on twitter and Google+, so follow us for news and product updates as well.

If you often work with barebones or non-board Arduino microcontroller projects - you'll appreciate our new Arduino pinout microcontroller labels:



By simply applying one on the top of an ATmega328, you'll never need to recall the data sheet or worry if you "got it wrong" at 3am when wiring up your prototypes. For more information and to order, click here



Leave a comment

Comments have to be approved before showing up.