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 7. Managing the Time Domain

We have come a long way, and at this point we have seen almost everything regarding digital and analog inputs and outputs. But Arduino still has some unseen characteristics that come in very handy when developing our projects. Controlling the time is one of them and a very important feature for a good number of projects.

In this chapter, we will learn about the functions in the Arduino library to control the time and will also discover sound generation and the use of speakers and buzzers. Every timer has an alarm, doesn't it?

Time control functions

The Arduino library has four functions that allow us to manage the time. We have already seen one of them, the delay() function, which we have used from our first sketch ...

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