16. LED Brightness Control Using PWM

Back To All Submissions
Previous Submission
Next Submission

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.

 

 

 

 


 

Was this helpful?
Upvote
Downvote