0% found this document useful (0 votes)
16 views2 pages

Exp 1 (I)

The document outlines an experiment to interface an LED or Buzzer with an Arduino, aiming to turn the LED ON for 1 second every 2 seconds. It includes a list of required components, circuit connection details, and the Arduino code necessary for the operation. The result shows that the LED will blink continuously or the buzzer will sound for the specified durations.

Uploaded by

kazirabiya785
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views2 pages

Exp 1 (I)

The document outlines an experiment to interface an LED or Buzzer with an Arduino, aiming to turn the LED ON for 1 second every 2 seconds. It includes a list of required components, circuit connection details, and the Arduino code necessary for the operation. The result shows that the LED will blink continuously or the buzzer will sound for the specified durations.

Uploaded by

kazirabiya785
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Experiment No 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:

Figure: Interfacing LED Figure: Interfacing Buzzer

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.

Item Min Max Unit


Forward Current 20 30 mA
Forward Voltage 1.8 2.2 V
Arduino Code to interface LED/ Buzzer

void setup()

pinMode(10, OUTPUT); // initialize digital pin 10 as an output.

void loop() {

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

delay(1000); // wait for 1 second

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

delay(2000); // wait for 2 second

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.

You might also like