Chapter 3. Interacting with the Environment the Digital Way

Now it's time to start working hands on with our Arduino boards by connecting electronic circuits to them and programming the microcontrollers to interact with the external circuitry.

In this chapter, we are going to deal with digital outputs, as it is the simplest way to interact with the outside world, and we will learn about the necessary code to drive them.

Let's begin with some considerations regarding digital and analog signals, move on to the circuit assembly, and finish by writing some code to make the microcontroller command the external circuit.

Digital versus analog signals

When working with electronics signals, you will constantly see references to digital and analog signals, ...

Get Arduino Essentials 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.