Solving Approach

How do you plan to solve it?

 Voltage drop of the LED =1.8 V

Voltage accross the resistor= 5V- 1.8V

                                                  =3.2 V

So to achieve 10 mA of current , resistor value should be,

Resistor, R= V/I

                  =3.2/ 0.010

                  = 320 Ohms
 

Code

/*Paste your code here*/

const int ledpin= 4;

void setup(){
 pinMode(ledPin, OUTPUT);
}

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

 

 

 

Output

Video

Add video of the output (know more)

 

 

Photo of Output

Add a photo of your hardware showing the output.

Blink | Arduino Documentation

 

Upvote
Downvote

Submit Your Solution

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