A Practical Activity Report Submitted For Engineering Design Project-II (UTA-014) by
A Practical Activity Report Submitted For Engineering Design Project-II (UTA-014) by
by
Submitted to
INDIA
July-Dec 2020
Experiment: 2
Objective: To study the different functions used in Arduino
Theory:
1.ARDUINO UNO: The Arduino Uno is an open-source microcontroller board based on
the Microchip ATmega328P microcontroller . The board is equipped with sets of digital and
analog input/output (I/O) pins that may be interfaced to various expansion boards (shields)
and other circuits.[1] The board has 14 digital I/O pins (six capable of PWM output), 6 analog
I/O pins, and is programmable with the Arduino IDE (Integrated Development Environment),
via a type B USB cable.
2.LED: A light-emitting diode (LED) is a semiconductor light source that emits light
when current flows through it. Electrons in the semiconductor recombine with electron holes,
releasing energy in the form of photons.
Coding:
int pin1=13;
int pin2=12;
void setup()
pinMode(pin1, OUTPUT);
pinMode(pin2, OUTPUT);
}
void loop()
digitalWrite(pin1 ,HIGH);
delay(500);
digitalWrite(pin1 ,LOW);
delay(200);
digitalWrite(pin2 ,HIGH);
delay(500);
digitalWrite(pin2 ,LOW);
delay(200);
Discussion:
In this experiment, we have learnt how make a circuit of two LED’S and make them glow
one by one. The delay function helps us in recording the time between the ON state of one
LED and the OFF state of the other.