O'Reilly logo

Arduino in Action by Martin Evans, Joshua Noble, and Jordan Hochenbaum

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 2. Digital input and output

This chapter covers

  • Blinking more than one LED
  • Using a push button to control a sequence of blinking LEDs
  • Building a project step by step
  • Learning about interrupts
  • Building a reactometer

Now that you have a sense of what an Arduino can do and have completed your first test run, it’s time to delve deeper. You’re going to build on what you learned in chapter 1 and build your first complete project, a reactometer that uses LEDs, a push button, and a timer to record reaction times.

Let’s get started.

2.1. Getting started

To complete your reactometer, you need a handful of components:

  • A breadboard on which to assemble the project
  • A selection of jumpers to connect components together
  • Six red LEDs; ...

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