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; ...
Get Arduino in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.