Blink Pinled
Blink Pinled
Apparatus:
Hardware: LED, Arduino UNO, Computer or Laptop
The LED is a two-terminal semiconductor light source that emits light when current flows through it.
The word LED meaning or LED full form is Light Emitting Diode. The Light Emitting Diode is a
special type of p-n junction diode which is made of special type doped semiconductor materials. The
LED or Light Emitting Diode allows the flow of current in the forward direction and blocks the
current in the reverse direction. When the current flow in the forward direction then LED releases
energy in the form of photons. LED Consists of two terminals. These are one is positive or anode and
another one is negative or cathode. The Long terminal of the LED is the positive or anode (+) terminal
and the short terminal of the LED is the negative or cathode (-) terminal.
Figure 1. LED
Connection Diagram:
Procedure:
1. Make a circuit as shown in the schematic or LED can be directly mounted on Arduino.
2. Arduino’s pin 13 is connected to the positive terminal of LED through resister.
3. Arduino’s GND connected to negative terminal of the LED.
4. Write code and upload it on Arduino. To upload code into Arduino, need to attach Arduino
with pc using USB cable which comes with Arduino board.
5. Observe the output.
Conclusion:
LED turns on and off i.e. blinking of LED Light was successfully observed.
Code:
void setup()
{
pinMode(13, OUTPUT);
}
void loop()
{
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}