May 07, 2017

Skill Sunday: Arduino Interrupts

Interrupts are a fantastic tool to help increase the efficiency of your Arduino code and are typically very underutilized! So what exactly is an interrupt? In simple terms, interrupts are a mechanism found on Arduino (and many other microcontrollers) that simplify the process of reacting to real time events. This is achieved by constantly monitoring the status of a pin and immediately executing code, interrupting whatever was currently running, when the state of a pin changes (or on a rising or falling edge as desired). As you can imagine, this is significantly more efficient than having to wait for your code to reach the specific line where it checks the status of an input, and it frees up your Arduino to focus on other tasks rather than monitoring the state of a pin. To learn more about interrupts and how you can use them in your projects check out the video below from one of our re sellers, Core Electronics.  


Have you been reading about cool projects like this and would like to understand more? Checkout our Experimenter's Kit for Arduino:

Experimenter's Kit

The package includes a wide variety of parts, sensors and modules including: a servo motor, lights, buttons, switches, sound, sensors, breadboard, wires and more. Furthermore a Freetronics Eleven Arduino-compatible board is included to make this an extensive hobby experimenter, inventor and starter kit. The kit also includes a great project and instruction booklet, plus access to a supporting web page and software examples. To get started or for more information and to order, checkout the product page.

Did you learn something this Skill Sunday? Let us know in the comments section below or on Facebook and Twitter.  

Leave a comment

Comments have to be approved before showing up.