Chapter 8 Potentiometer & LED
We have learned how to use ADC and DAC before. When using DAC output analog to drive LED, we found
that, when the output voltage is less than led turn-on voltage, the LED does not light, the output analog
voltage is greater than the LED voltage, the LED will light. This leads to a certain degree of waste of resources.
Therefore, in the control of LED brightness, we should choose a more reasonable way of PWM control. In this
chapter, we learn to control the brightness of LED through a potentiometer.
Project 8.1 Soft Light
In this project, we will make a soft light. Use PCF8591 to read ADC value of potentiometers and map it to duty
cycle ratio of PWM used to control the brightness of LED. Then you can make the LED brightness changed by
shifting the potentiometer.
Component List