This project discusses pulse-width modulation (PWM) and how to use it to make an LED “breathe.” The term “breathing” is used to describe how we will make the LED repeatedly grow brighter (until it is completely on) and dimmer (until it is completely off).
This project will build upon the Breathing LED with Pulse-Width Modulation project, now introducing an element of user input by allowing manual control over the brightness of the LED. To accomplish this, we will introduce a new component called a potentiometer.