0% found this document useful (0 votes)
51 views6 pages

Automatic Night Lamp Using LDR

This document describes designing an automatic night lamp using an Arduino, light dependent resistor (LDR), resistor, LED, and breadboard. The circuit connects the LDR and LED to the Arduino. Code is written to read the LDR value and map it to control the LED brightness based on the light level. Testing showed the lamp turns on in the dark and brightness adjusts automatically based on ambient light levels. The student learned how to build circuits with Arduino, program it, and understand concepts like LDR usage.

Uploaded by

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

Automatic Night Lamp Using LDR

This document describes designing an automatic night lamp using an Arduino, light dependent resistor (LDR), resistor, LED, and breadboard. The circuit connects the LDR and LED to the Arduino. Code is written to read the LDR value and map it to control the LED brightness based on the light level. Testing showed the lamp turns on in the dark and brightness adjusts automatically based on ambient light levels. The student learned how to build circuits with Arduino, program it, and understand concepts like LDR usage.

Uploaded by

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

Automatic Night Lamp using LDR

Student Name: PRAKRIT SHUKLA UID: 20BCS2336


Branch: CSE Section/Group: 25(C)
Semester: 2nd Date of Performance:22/4/21
Subject Name: BEEE Subject Code: 20ELP-152

1. Aim: Design automatic night lamp using arduino .

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

3. Circuit Diagram:
4. Steps for experiment:

STEP-1. Open TINKERCAD .


STEP-2. Place Arduino in white space.
STEP-3. connect LDR with Arduino.
STEP-4. connect LED, Resistor and Arduino.
STEP-5. make other necessary connections using connecting wires.
STEP-6. write the correct code in code section of TINKERCAD.
5. Calculations/Theorems /Formulas used etc:

Block Code:

Text Code:

int Set_LDR = 0;

int LDR = 0;

void setup()

pinMode(A0, INPUT);

pinMode(11, OUTPUT);
}

void loop()

LDR = analogRead(A0);

analogWrite(11, map(LDR, 0, 1023, 0, 180));

delay(10); // Delay a little bit to improve simulation performance

6. Observations/Discussions:

NONE

7. Percentage error (if any or applicable):

NONE
8. Result/Output/Writing Summary:

Designing of automatic night lamp was verified after uploading the program.

Learning outcomes (What I have learnt):

1. Design of circuit using using arduino.

2. Verify the circuit by programming .

3. Learn how to connect wires with Arduino.

4. Understand the concept of arduino.

5. Understand the concept of LDR.

Evaluation Grid:

Sr. No. Parameters Marks Obtained Maximum Marks


1. Worksheet completion including writing 10
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.

You might also like