Understanding Arduino Interrupts | Hardware, Pin Change & Timer Interrupts

DroneBot Workshop May 10, 2022
Video Thumbnail
DroneBot Workshop Logo

DroneBot Workshop

@dronebotworkshop

About

Welcome to the Workshop! The DroneBot Workshop is the place where I work with Arduino, Raspberry Pi, ESP32, and lots of other cool microcontrollers, components, and sensors. This is a channel for learning and understanding. While I do build projects, most episodes focus on showing you HOW things work, so you can use the information to bring your own designs to life. Every video has a corresponding article on my website at https://dronebotworkshop.com , along with the diagrams and code samples you’ll need to build your own creations. You can also participate in discussions on my Forum at https://forum.dronebotworkshop.com. Please note that I no longer do any sponsored videos, enquiries for these will be ignored! If you'd like to know more about me or the DroneBot Workshop you can read the FAQ at https://dronebotworkshop.com/about-dronebot-workshop/faq/ And if you have technical questions please ask them on the Forum. Welcome to the Workshop! I hope you enjoy your stay! Bill

Video Description

Learn to use Hardware, Pin Change and Timer Interrupts with the Arduino Uno. Article with code: https://dronebotworkshop.com/interrupts More articles and tutorials: https://dronebotworkshop.com Join the conversation on the forum: https://forum.dronebotworkshop.com Subscribe to the newsletter and stay in touch: https://dronebotworkshop.com/subscribe/ Today we are working with a fundamental programming concept, the use of Interrupts. Now, this certainly isn't the first time we have worked with interrupts, we have used Hardware Interrupts in several previous videos. But we have never taken a deep dive into the subject, and as it is a very important concept, I feel it's time that we did! Plus, Hardware Interrupts are just one of three types of interrupts supported by the Arduino. So we also should take a look at Pin Change and Timer Interrupts as well. We are working with an Arduino Uno today, but the concepts we are discussing are applicable to just about any microcontroller. Interrupts can help you make more responsive user interfaces, perform timed operations, or just write better and more efficient code. Here is the Table of Contents for today's video: 00:00 - Introduction 01:51 - No Interrupt Demo 07:02 - Hardware Interrupts 19:51 - Pin Change Interrupts 37:22 - Timer Interrupts 46:21 - Conclusion Hopefully the video and its associated article will prove to be a good resource as you work to improve your code with interrupts. Bill