All submissions

Solving Approach

How do you plan to solve it?

 To get a current of 10 mA, based on the given input voltage and drop voltage for the led we can say that the resistor should be (5-1.8)*1000/10 ohm

~=320 ohm  sor as per the standard resistors available 330 ohm 
 

 

 

 

Code

/*Paste your code here*/
#define led 2
void setup() {
 pinMode(led, OUTPUT);          // Set the LED pin as an output
}

void loop() {
  digitalWrite(led, HIGH);        // LED is turn ON
  delay(400);                     // waits for a 400 millisecond 
  digitalWrite(led, LOW);         // LED is turn OFF
  delay(800);                     // waits for a 800 millisecond
}

 

 

 

Output

Video

Add video of the output (know more)

 

 

Photo of Output

Add a photo of your hardware showing the output.

 

Submit Your Solution

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