Solving Approach

How do you plan to solve it?

by using arduino on wokwi and when getting to make sure that around 10mA of current flows through the LED:

assuming the LED forward voltage drop=2v and the supply voltage is= 5

2-5= 3V

10mA will be  0.01A

using the formula ohms law VR/I: 3V/0.01 = 300Ω/ohms

 

 

 

Code

/*Paste your code here*/
void setup() {
  pinMode(3, OUTPUT);
}

void loop() {
  digitalWrite(3, HIGH);
  delay(400);
  digitalWrite(3, LOW);
  delay(800);
}

 

 

 

Output

by configuring the LED pin as output so we can drive it HIGH/LOW.

-Turn LED ON = wait 400 ms

-Turn LED OFF →=wait 800 ms

The delays define the ON and OFF durations exactly.

Video

Add video of the 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!