8. LED Blink

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

How do you plan to solve it?

 Solve for resistor value to make sure that 10mA of current flows through the LED. Use Ohm's law to calculate the value of resistor.
 

 

 

 

Code

/*Paste your code here*/

const int LED = 7;

void setup() {
  // put your setup code here, to run once:
 pinMode(LED, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
digitalWrite(LED, HIGH);
delay(400);
digitalWrite(LED, LOW);
delay(800);
}

 

 

 

Output

Video

Add video of the output (know more)

https://drive.google.com/file/d/1Wwmq1-98D54uJWsAPC4iojkXLdumnvzk/view?usp=drive_link

 

Photo of Output

Add a photo of your hardware showing the output.

 

Was this helpful?
Upvote
Downvote