In the previous article, I showed you how to read the ADC value from a Potensometer using Arduino.
And this time I will take advantage of the reading from the ADC value.
That is adjusting the brightness of the LED.
Components that need to be prepared :
Potentiometer
Resistor 1K
Blue LED
Project board
USB mini
Laptop
See the video above to see the results.
When the potentiometer is rotated to the right, the led will be brighter.
When the potentiometer is rotated to the left, the LED will be dimmer.