You are on page 1of 5

Experiment No: 2.

5
Student Name: Goutam Kumar Choudhary UID: 21BSC10858
Branch: CSE Section/Group: 421 A
Semester: 2nd Date of Performance: 17 April 2022
Subject Name: BEEE Subject Code: 21ELH-101
--------------------------------------------------------------------------------------------------------------------------------------

1. Aim: Design automatic street light using LDR.

2. Apparatus: ARDUINO, LDR, Resistance 10k ohm, wires, Breadboard


3. Circuit Diagram:
4. Steps for experiment:

Open “Tinkercad.com” in pc. •


Click on “create new circuit”. • Add Arduino-UNO Board by searching
on search bar on working screen.
• Now add Breadboard on working screen.
• Search photosensor ,led and resistor on search bar and draw it on Breadboard.
• Now connect photosensor ,resistor and led to Arduino Board as show in diagram.
• Modify the code and start simulation.

5. Program code:

void setup()

Serial.begin (9600); pinMode(7,OUTPUT);

void loop()

Int c = analogRead(A0);

Serial.println(c);

If (c<850)

{
digitalWrite(7,LOW);

else

digitalWrite(7,HIGH);

6. Percentage error (if any or applicable):


Sources of error:

• Due to error in Program Code.

• Due to wrong connection of circuit.

7. Result/Output/Writing Summary:
Designing of photosensor circuit using Arduino is verified after uploading the

Learning outcomes (What I have learnt):

• On completion of the course students will be able to


• Identify the intensity of LED light.
• Design the circuit using arduino uno.
• Verify circuit using programming
Evaluation Grid:
Sr. Parameters Marks Obtained Maximum
No. 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