You are on page 1of 6

Experiment Title.

6
Student Name:VADADA JATIN UID: 20BCS2424
Branch: CSE Section/Group: CSE 25 -C
Semester: 2 Date of Performance: 1/04/2021
Subject Name: BEEE LAB Subject Code: 20 ELT-152

1. Aim:

To design Christmas dual led chaser light.

2. Apparatus:

• Arduino Board

• LEDs

3. Circuit Diagram:
4: Program (Blocks+Text):
5. Steps for experiment:

1. Login to tinkercad.com

2. Drag the required components ( LEDs , Arduino ) to your workspace.

3. Connect the LEDs to Arduino and also connect cathode and anode of adjacent
LEDs respectively.

4. Write down the code for the blinking of the LEDs for the chasing effect.

6. Observations/Discussions:

Code for the above experiment is :


void setup()

pinMode(12, OUTPUT);

pinMode(11, OUTPUT);

pinMode(10, OUTPUT);

pinMode(9, OUTPUT);

pinMode(8, OUTPUT);

void loop()

digitalWrite(12, HIGH);

delay(1000); // Wait for 1000 millisecond(s)

digitalWrite(12, LOW);

delay(1000); // Wait for 1000 millisecond(s)

digitalWrite(11, HIGH);

delay(1000); // Wait for 1000 millisecond(s)

digitalWrite(11, LOW);

delay(1000); // Wait for 1000 millisecond(s)

digitalWrite(10, HIGH);

delay(1000); // Wait for 1000 millisecond(s)

digitalWrite(10, LOW);

delay(1000); // Wait for 1000 millisecond(s)

digitalWrite(9, HIGH);

delay(1000); // Wait for 1000 millisecond(s)

digitalWrite(9, LOW);

delay(1000); // Wait for 1000 millisecond(s)


digitalWrite(8, HIGH);

delay(1000); // Wait for 1000 millisecond(s)

digitalWrite(8, LOW);

delay(1000); // Wait for 1000 millisecond(s)

7. Percentage error (if any or applicable):

no errors encountered

6. Result/Output/Writing Summary:

Blinking of LEDs with chasing effect was verified after uploading the program.

Learning outcomes (What I have learnt):

1) Understood the concept of arduino.


2) To Design a circuit using arduino

3) To Verify the circuit by programming.

Evaluation Grid:

Sr. No. Parameters Marks Obtained Maximum Marks


1. Worksheet completion including 10
writing learning objectives/Outcomes.
(To be submitted at the end of the day).

2. Post Lab Quiz Result. 5


3. Student Engagement in 5
Simulation/Demonstration/Performance
and Controls/Pre-Lab Questions.
Signature of Faculty (with Date): Total Marks Obtained:

You might also like