LED Brightness Control Using PWM

Solving Approach:

How do you plan to solve it?

I will increase the pwm in according timeline and put a delay function behind each of increasement.

 

 

Code

/*Paste your code here*/
Loop(){
Analogwrite(led,62.5);
Delay(500);
Analogwrite(led,125);
Delay(500);
Analogwrite(led,187.5);
Delay(500);
Analogwrite(led,187.5);
Delay(250);
Analogwrite(led,125);
Delay(250);
Analogwrite(led,62.5);
Delay(250);
Analogwrite(led,0);
Delay(250);
}


 

Output

Video

Add video of output (know more)

 

 

 

 

 

Photo of Output

Add a photo of your hardware showing the output.

 

 

 

 


 

Upvote
Downvote

Submit Your Solution

Note: Once submitted, your solution goes public, helping others learn from your approach!