February 2015
Beginner
206 pages
4h 16m
English
Once we know what is going to happen when we deal with analog outputs, I'll show you the circuit we are going to work with.

The circuit to connect an LED to a PWM pin
As you can see in the previous schematic, it's very similar to the circuit we used in Chapter 3, Interacting with the Environment the Digital Way, to deal digitally with an LED. However, in this case, we have to connect it to a PWM pin of the Arduino, pin 11 for this example, so that later in the program we can use the corresponding code to deal with it analogically.
The rest of the circuit is just the same as the blinking LED one, and we will use the same 220 ...
Read now
Unlock full access