Posted on Leave a comment

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 Core Electronics.

Want to keep in the loop about the latest in home automation? Subscribing to SuperHouse Automation on YouTube is the best place to start!

Inspired to start work on this project? Are you working on a project you would like us to feature in this blog? The team at SuperHouse Automation would love to know! Tell us about it in the comments section below or on Facebook and Twitter.

Leave a Reply

Your email address will not be published. Required fields are marked *