Automatic Night Lamp Using Arduino
Automatic Night Lamp Using Arduino
P HY SI C S L AB - 1
ST
BT E C H C SE – 1 SE ME ST E R
A U T O M A T I C NI G HT L A MP U SI NG
AR D U I NO
SU BMIT T E D BY : SU BMIT T E D T O :
O m Ag ar w al - 2 4 0 1 0 3 0 2 0 4 MR .BHU BE SH
G au r ang g ar g - 2 4 0 1 0 3 0 2 1 3 C HAND E R JO SHI
Bh r at g ar g - 2 4 0 1 0 3 0 2 2 1
C E R T IFIC AT E
T h is is t o ce r t if y t h at t h e p r o j e ct b as e d
lab o r at o r y r e p o r t t it le d ‘A U T O MA T IC
NIG HT L AM P U SING A R D U INO ’ is
s u b m it t e d b y g r o u p o f O M ag ar wal,
G au r an g gar g an d B hr at gar g , s t u dyin g in
B .T e c h C SE , B at ch B - 4 . T h i s p r o j e c t h as
b e e n s at is f act o r ily co m p le t e d an d
ve r i f i e d d u r i ng 2 0 2 4 - 2 0 2 5 u n de r t h e
s u p e r vis io n o f Mr . BH U B E SH C HA N D R A
J O SHI
AC K NO W L E D GE ME
NT
In t h e ac co m plis h m e n t o f t h is pr o j e ct
s u cce s s f u lly, m an y pe o ple h ave
be s t o we d u p o n t h e ir b le s s ing w it h
s u p po r t , W e w o u ld lik e t o t h an k all t h e
p e o p le w h o h ave b e e n c o n ce r ne d w it h
t h is p r o j e ct . I w o u ld lik e t o e x p r e s s m y
g r at it u de t o o u r pr o f e s s o r Mr . W h o s e
valu ab le g u id anc e h as b e e n t h e o ne t h at
h e lpe d u s f in is h t h is pr o j e ct . H is
s u g g e s t io n h as s e r ve d in co n t r ib u t in g
t o w ar ds t h e co m p le t io n o f t h e p r o j e ct
A ut o m at ic Nig h t L am p U s in g
A r du ino
INT R O D U C T IO N :
Automation basically means to invent a method which reduces
or eliminate human efforts. In this project, we have automate a
night lamp via a simple interfacing of Arduino and Relay .
1. Increase in productivity
3. Increased robustness
6. Highly accurate
C o m po ne nt s R e q uir e d :
1. Arduino – microcontroller
2. Relay 5 Volts
4. 10K Ohms
5. Transistor BC547
6. DC Supply 9volts
So f t w ar e R e q u ir e d :
1.Arduino IDE
2.Proteus
A u t o m at ic N igh t L am p C ir cu it D iagr am :
C om po ne nt D e s cr ipt ion
Ar du ino U NO
Arduino is basically a development board which is open source
and primarily utilizes the Microchip ATmega328P
microcontroller and is manufactured by Arduino.cc. The board
comes with a set of input/output pins comprising of digital and
analogue which can be interfaced to different expansion
boards and external circuits.
R e lay
9 is an electromagnetic switch which can be operated
electrically and made to turn on and off AC/DC appliances. It
can be controlled even with a low voltage of 5 volts like the
output provided by the Arduino pins.
LDR
T r an s is t or
So f t w ar e D e s cr ip t io n
Pr ot e us
Ar d u ino ID E
Code in Arduino :
void setup()
Serial.begin(9600);
}
void loop()
if(sensorValue<sensitivity)
digitalWrite(13,HIGH);
else
digitalWrite(13,LOW);
delay(100);
Serial.println(sensorValue); }
Code explanation :
In void setup , it talks about basic structure setup.
In void loop
Nig h L am p C ir cu it W o r k ing
The working of the circuit, here we have used a 9V DC supply
(Arduino’s 9V) and connected a 10k ohm resistor and an LDR.
The voltage which can be taken across the resistor or the LDR
and fed into the analog pin of the Arduino, pin A3 in this case.
With the help of the code mentioned above, the board will be
able to detect the analog input provided to it. This value read is
in accordance with the intensity of the light which is detected
by the LDR.
The lamp turns “OFF” when the else condition in the code
becomes true i.e. the intensity of light increases from the
threshold value provided given by us. Hence, output at pin 12
becomes “LOW” and subsequently relay is turned OFF which
turn the Lamp OFF.