Led Blink

SRJT08103

Jugaadu was invited to his friend's birthday party. This time he wants to gift his friend an innovative bouquet. He wants to incorporate some additional features in the bouquet. Suggest him any idea?

.

 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 for the turn On and turn OFF period of an LED in the code and put on supplying power with the battery, after which we can see the continuous blinking of an LED.

    int led = 13;

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

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