All submissions

Solving Approach

How do you plan to solve it?

 ill connect led in series with a 330 ohms resistor to a gpio pin of the microcontroller, then ill write a program that sets the pin high for 400ms and low for 800ms in a loop. this ensure led blinks continuously with timing, the resistor chosen to limit the led current around 10 Ma
 

 

 

Code

/*Paste your code here*/
int ledPin = 13;  // GPIO pin where LED is connected

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

void loop() {
  digitalWrite(ledPin, HIGH);  // LED ON
  delay(400);                  // wait 400 ms
  digitalWrite(ledPin, LOW);   // LED OFF
  delay(800);                  // wait 800 ms
}

 

 

 

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!