Connect five LEDs and a Potentiometer to Arduino UNO and create the following pattern.
We can observe alternate LED Fade in/out patterns. Where the fading speed is controlled by a potentiometer smoothly.
Speed Control: