Exp 1 (I)
Exp 1 (I)
Aim: To interface LED/Buzzer with Arduino and write a program to ‘turn ON’ LED for 1
sec after every 2 seconds.
Components Required:
Sl No Components Quantity
1 Arduino Uno Board 1
2 LED or Buzzer 1
3 USB cable for Arduino UNO 1
4 Connecting wires 1
Circuit Connection:
Theory: LED, which stands for Light Emitting Diode, is a semiconductor device that emits
light when an electric current passes through it. LEDs are widely used for various
applications due to their energy efficiency, long lifespan, and versatility. Here are some key
points about LEDs.
Basic Operation: LEDs work on the principle of electroluminescence. When electrons and
holes (positive counterparts of electrons) recombine within the semiconductor material, they
release energy in the form of photons, which produces light.
void setup()
void loop() {
digitalWrite(10, LOW); // turn the LED off by making the voltage LOW
Result: LED will blink continuously; It will be ON for 1 second and OFF for 2 seconds. If
we connect buzzer in place of LED then buzzer will sound for 1 second and buzzer will be
OFF for 2 seconds.