O'Reilly logo

Arduino Essentials by Francis Perea

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Dealing with Interrupts

In all our previous projects, we have been constantly looking for events to occur. We have been polling, but looking for events to occur involves a relatively big effort and a waste of CPU cycles to only notice that nothing happened.

In this chapter, we will learn about interrupts as a totally new way to deal with events, being notified about them instead of looking for them constantly.

Interrupts may be really helpful when developing projects in which fast or unknown events may occur, and thus we will see a very interesting project that will lead us to develop a digital tachograph for a computer-controlled motor.

Are you ready? Here we go!

The concept of an interruption

As you may have intuited, an interrupt is a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required