Professional Documents
Culture Documents
Mini Project FINAL
Mini Project FINAL
R O O M L I G H T I N G
S Y S T E M U S I N G
M I C R O C O N T R O L L E
R
BY
M ANG ES H PAT IL 42
SHRUTI SHARMA 3
TA N V I WA G H M A R E 2
KSHITIJ 1
SUMMARY
1
• 2 x Infrared Sensors
• 16 x 2 LCD Display
• 5V Relay Module
• Lamp
• Connecting Wires
• Power Supply
THEORY
• T H E A I M O F T H I S P R O J E C T I S T O A U T O M AT I C A L L Y
TURN ON OR OFF THE LIGHTS IN A ROOM BY
D E T E C T I N G T H E H U M A N M O V E M E N T. W E I M P L E M E N T E D
THIS PROJECT USING 8051 MICROCONTROLLER AND
TWO INFRARED (IR) SENSORS.
IR SENSOR
AN INFRARED (IR) SENSOR IS AN
E L E C T R O N I C D E V I C E T H AT M E A S U R E S A N D
D E T E C T S I N F R A R E D R A D I AT I O N I N I T S
S U R R O U N D I N G E N V I R O N M E N T.
I N F R A R E D R A D I AT I O N WA S A C C I D E N T A L LY
DISCOVERED BY AN ASTRONOMER NAMED
WILLIAM HERCHEL
IN 1800. WHILE MEASURING THE
T E M P E R AT U R E O F E A C H C O L O R O F L I G H T
( S E P A R AT E D B Y A P R I S M ) , H E N O T I C E D
T H AT T H E T E M P E R AT U R E J U S T B E Y O N D T H E
R E D L I G H T WA S H I G H E S T .
IR IS INVISIBLE TO THE HUMAN EYE, AS
I T S WAV E L E N G T H I S L O N G E R T H A N T H AT O F
VISIBLE LIGHT (THOUGH IT IS STILL ON
THE SAME ELECTROMAGNETIC SPECTRUM).
A N Y T H I N G T H AT E M I T S H E AT
( E V E R Y T H I N G T H AT H A S A T E M P E R AT U R E
A B O V E A R O U N D F I V E D E G R E E S K E LV I N )
5 V R E L AY
MODULE
2-Channel 5V Relay Module is a relay interface board, it can
be controlled directly by a wide range of microcontrollers
such as Arduino, AVR, PIC, ARM and so on. It uses a low
level triggered control signal (3.3-5VDC) to control the relay.
Triggering the relay operates the normally open or normally
closed contacts. It is frequently used in an automatic control
circuit. To put it simply, it is an automatic switch to control a
high-current circuit with a low-current signal.5V relay signal
input voltage range, 0-5V. VCC power to the system. JD-
VCC relay in the power supply. JD-VCC and VCC can be a
shorted.
The main component of the project is IR Sensor and we
have used two of them. The placement of the sensors is
important as it will determine the functioning of the project.
As the visitors start leaving the
room, the visitor count will be
decremented and when the last Practically speaking, both the
person leaves the room, the sensors must be placed on the
count be come 0. During this either side of the door or
point, the microcontroller entrance of the room. The
understands that there is nobody sensor placed on the outside of
in the room and turns OFF the the room is named as Sensor 1
light and the sensor, which is placed
on the inside is named Sensor 2.
view(count);
while(1)
{
if(s1==1)
{
while(s2==0);
if(count!=99)
count=count+1;
while(s2==1);
view(count);
}
else if(s2==1)
{
while(s1==0);
if(count!=0)
count=count-1;
while(s1==1);
view(count);
}
else if(count==1)
relay=0;
else if(count==0)
relay=1;
}
}
O
U
T
P
U
T
WE
S U C C E S S F U L LY
IMPLEMENTED
C O N C L U S I O N A U T O M AT I C
LIGHTING SYSTEM
USING
MICROCONTROLLE
R