LED Strobe Light

DESCRIPTION

Using the Arduino to control a LED and making it flicker like a strobe light. 

COMPONENTS

Red LED

220 ohm resistor

ARDUINO CODE

 

/*
  Blink
  Turns on an LED on for .03 second, then off for .1 second, repeatedly.
 
  This example code is in the public domain.
 */
 
void setup() {                
  // initialize the digital pin as an output.
  // Pin 13 has an LED connected on most Arduino boards:
  pinMode(13, OUTPUT);     
}
 
void loop() {
  digitalWrite(13, HIGH); // set LED on
  delay(30);             // wait for .03 second
  digitalWrite(13, LOW);  // set LED off
  delay(100);             // wait for .1 second
}
 
 
IMG_4789_0.JPG
0
Your rating: None