You are on page 1of 8

ASSIGNMENT 1

NAME: Bhave Akshay Shailesh

BRANCH: ELN

DIVISION: C

PRN NO: 21410071

TITLE OF THE EXPERIMENT : Blink onboard LED with arduino.

OVERVIEW:

1. LED’s are light emmiting diodes. They are small, compact and easy to use.

2. The longer leg of led represent anode where as the short leg represent cathode.

3. The Arduino Uno is an open-source microcontroller board based on the Microchip


ATmega328P microcontroller and developed by Arduino.cc. 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

4. The arduino board is used to control the blinking of LED.

SCHEMATIC DIAGRAM:
ARDUINO IDE CODE:

void setup ()

pinMode (13, OUTPUT); // declare pin 13 as output

void loop() {

digitalWrite (13, HIGH); // Led on

delay (1000);

digitalWrite (13, LOW); // Led off

delay (1000);

NEW COMMANDS USED IN THE EXPERIMENT:

1) Pin mode (pin no, output)

Tells arduino whether the mentioned pin is on I/P or O/P.

2) Digital write (pin no, high)

When you are using a pin as an O/P you can command it to high (output 5 volts) or low
(output

0 volts).

RESULT:

The LED was seen blinking at a given rate.


ASSIGNMENT 2

NAME: Bhave Akshay Shailesh

BRANCH: ELN

DIVISION: C

PRN NO:21410071

TITLE OF EXPERIMENT: Tricolour LED with ArduIno.

OVERVIEW:

A LED (Light Emitting Diode) is a semiconductor device that works on the principle of


electro luminous. The term electro luminous was discovered by combining  silicon
Carbide and a Cat whisker detector in the year 1907 by H.J Round of Marconi Lab. The
very first usage of commercial LED  was to overcome the drawbacks of incandescent,
neon indicator lamps, and a 7 segment display. The main advantage of using these LEDs
is that they are small in size, longer lifetime, good switching speed, etc.  Hence by using
different semiconductor elements and changing their intensity property we can obtain
single color LED in different color LEDs, like Blue and ultraviolent LED, White
LED, OLED’s, Other white LEDs. The color of the light can be determined based on the
energy gap of the semiconductor. Tricolour LED has three different colour viz. red, blue
and green colours . Arduino uno is used to control blinking of tricolor LED.

SCHEMATIC DIAGRAM:
ARDUINO IDE CODE:

void setup(){
pinMode(10,OUTPUT);//red LED

pinMode(11,OUTPUT);//green LED

pinMode(12,OUTPUT);//blue LED

void loop() {

digitalWrite(10,HIGH);//red LED ON

delay(500);

digitalWrite(10,LOW);//red LED OFF

delay(500);

digitalWrite(11,HIGH);//blue LED ON
delay(500);

digitalWrite(11,LOW);//blue LED OFF

delay(500);

digitalWrite(12,HIGH);//green LED ON

delay(500);

digitalWrite(12,LOW);//green LED ON

delay(500);

NEW COMMENTS USED :

1. pinMode()

2. digitalWrite()

3. delay();

RESULT: Blinking of Tricolor LED can be controlled using Arduino uno .


ASSIGNMENT 3 A

NAME: Bhave Akshay Shailesh

BRANCH: ELN

DIVISION: C

PRN NO:21410071

TITLE OF EXPERIMENT: use of special pins on arduino Uno.

OVERVIEW:

1. Set up serial command serial.begin(boud rate), so serial communication starts.

2. Read the data on Rx pin

SCHEMATIC DIAGRAM:

ARDUINO IDE CODE:

1.

void setup(){

Serial.begin(9600);

void loop(){
Serial.println(“Hello world”);

delay(1000);

2.

int value=0;

int led=13;

void setup() {

Serial.begin(9600);

pinMode(led, OUTPUT);

void loop() {

if(Serial.available()>0)

value=Serial.read();

delay(5);

if(value =='1'){

digitalWrite(led, HIGH);

Serial.println("LED is on");

if(value=='0'){

digitalWrite(led, LOW);

Serial.println("LED is off");

}
}

NEW COMMENTS USED:

1. Serial.begin():

To set up serial communication.

2. Serialprintln().

3. Serial.available():

To check some data .

RESULT:

We checked the analog voltage using arduino board.

You might also like