Lesson 98-4: Fading an LED Light Using Arduino: Brightness Control

Video thumbnail for Lesson 98: Arduino 10 LED Push button Projects,  Potentiometer LED Voltmeter, Traffic Light RJT441

Lesson 98-4: Fading an LED Light Using Arduino: Brightness Control

In this lesson, we learn how to use LEDs and push buttons in these 10 LED projects. The wiring diagram is shown; the code is fully explained and demonstrated with multiple changes of settings for each project. We read the potentiometer's voltage and display the voltage by turning each LED on to represent the voltage. A simple traffic light project.

This code is part of a video lecture. This is project 4 code. This code will turn the LED on or off with a fading value. So the LED will get brighter slowly and will turn off slowly, fading out.

Code Snippets

Comments will be displayed here.