Flashing LED Light

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Flashing LED Light

Summary

Use an Arduino to control the flashing of an LED light.

Materials
Arduino Uno x 1
5mm red LED light x 1
220Ω resistance x 1
Bread board x 1
A number of Dupont wires

Product Description

LED is a Light Emitting Diode, a semi-conductor which lights when current flows
through it. They are widely used in signboards and advertising and increasingly in
lighting.
Technical Parameters
Lens: 5mm Diameter / Frosted / Round
Emitting Color: Red
Viewing Angle: 120 Degree
Polarity: Anode (Longer Part) | Cathode (Shorter Part)

Wiring Diagram
Sample Code

void setup() {

// initialize digital pin 13 as an output.

pinMode(13, OUTPUT);

void loop() {

digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage


level)

delay(1000); // wait for a second

digitalWrite(13, LOW); // turn the LED off by making the voltage


LOW

delay(1000); // wait for a second

Results

LED continuously flashes.

You might also like