Led Blink

SRJT07105

Christmas is around the corner. Decorations started everywhere. Jugaadu also wants to decorate his home and Christmas tree. But he is short of colourful lights. He doesn’t want to buy them from outside as it will be much costly. Can you help him out to solve this problem?

Bag Items:

  1. Arduino UNO
  2. Arduino UNO Cable (A to B)
  3. LED
  4. PC/ Laptop

"

This can be understood by simply creating the periodical blinking of an LED using Arduino UNO. We can set the time to turn On and turn OFF period of an LED in the code and on supplying with battery, we can see the continuous blinking of an LED,which can be used for decoration purposes and others.

    int led = 13;

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

void loop() {
  digitalWrite(led, HIGH);  
  delay(1000);               
  digitalWrite(led, LOW);   
  delay(1000);           
}