13. LED Brightness Control Using PWM

Control LED brightness using Arduino UNO, such that gradually increase the brightness from 0% to 100% over 2 seconds, then decrease it back to 0% over 1 second. 

Repeat this cycle continuously with smooth transitions.

 

Submit Your Solution