You are on page 1of 20

AUTOMATIC ROOM LIGHT

CONTROL WITH VISITOR


COUNTING FOR POWER SAVING
APPLICATIONS IN SEMINAR HALLS

11W91A0295
11W91A0283
11W91A02C0
11W91A0261

INTRODUCTION
The main aim of the project is to control the lighting
in a room depending upon lighting that is present in
the room
Use of embedded technology makes this closed
loop feedback control system efficient and
reliable
Liquid crystal display (LCD) makes the system
user-friendly
AT89S52 micro controller is the heart of the
circuit as it controls all the functions

The system comprises of two IR TransmitterReceiver pairs, one of which is located in front of
the door outside the room & the other inside the
room
LDR is placed outside the room and is used to
identify whether it is day or night time
Initially the light is switched off in the room
Whenever a person tries to enter into the room,
the receiver of first IR pair identifies the person
Then the microcontroller opens the door by
rotating the stepper motor

After the person had entered into the room


completely, the door will be closed automatically
The light is switched off even if anyone is present
inside the room during the day time
Similarly, the light is switched off if no one is
there inside the room or if it is night times
Thus, depending on the intensity of light the
required action is performed by the
microcontroller.
LCD displays the number of persons present
inside the room

Power supply

AT89S52 MICROCONTROLLER

8052 is an 8-bit processor, meaning that the


CPU can work on only 8 bits of data at a time.
Data larger than 8 bits has to be broken into
8-bit pieces to be processed by the CPU.

FEATURES OF
AT89S52

ROM
RAM
Timer
I/O pins
Serial port
Interrupt sources -

8K bytes
256 bytes
3
32
1
8

PIN DIAGRAM
P1.0
P1.1
P1.2
P1.3
P1.4
P1.5
P1.6
P1.7
RST
(RXD)P3.0
(TXD)P3.1
(INT0)P3.2
(INT1)P3.3
(T0)P3.4
(T1)P3.5
(WR)P3.6
(RD)P3.7
XTAL2
XTAL1
GND

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

AT89S52

40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21

Vcc
P0.0(AD0)
P0.1(AD1)
P0.2(AD2)
P0.3(AD3)
P0.4(AD4)
P0.5(AD5)
P0.6(AD6)
P0.7(AD7)
EA/VPP
ALE/PROG
PSEN
P2.7(A15)
P2.6(A14)
P2.5(A13)
P2.4(A12)
P2.3(A11)
P2.2(A10)
P2.1(A9)
P2.0(A8)

RELAY
A Relay is an electrically controllable switch widely used in industrial controls, automobiles, etc

inductor

DPDT RELAY
In this project we will be using
4 DPDT 5 pin relays to switch
on the load applications
DPDT stands for double pole
double throw relay
Relay is an electromagnetic
device used to separate two
circuits electrically and connect
them magnetically
They are often used to
interface an electronic circuit,
which works at a low voltage

Diagrammatic explanation:
N/C

INDUCTOR

IRON
ARM

AC
230V
COM
ON

N/O

BULB
OFF

Light Sensor(LDR)
APHOTORESISTOR

ORLIGHT
DEPENDENT
RESISTOR(LDR) IS A
RESISTOR WHOSE
RESISTANCE
DECREASES WITH
INCREASING INCIDENT
LIGHT INTENSITY.

IT CAN ALSO BE
REFERRED TO AS
APHOTOCONDUCTO
R.

IR Sensor
INFRARED SENSORS ALSO
HAVE IMPORTANT
SCIENTIFIC, MILITARY,
SECURITY

Liquid crystal display (LCD):

A liquid crystal display (LCD) is a thin, flat


panel used for electronically displaying
information such as text, images, and moving
pictures including monitors for computers,
televisions, instrument panels.

Pin Description of LCD:


1.

Ground

2.

Vcc +5V

3.

Contrast control

4.

Register select (RS)

5.

Read/Write (RD/WR)

6.

Enable (EN)

7.

7 14 pins all are data pins D0 D7

8.

Vcc +5V }

9.

Ground

For backlight purpose

ADVANTAGES:
A major advantage of a lighting control system over
conventional individualswitching
Switching is the ability to control any light, group
of lights, or all lights in a building from a single
user interface device.
Any light or device can be controlled from any
location.
Reduces emissioncarbon footprints.
A lighting scene can create dramatic changes in
atmosphere, for aresidence or thestage, by a
simple button press

APPLICATIONS:

Used in Inlandscape design

landscape lighting

fountainpumps

water spaheating

swimming poolcovers

motorizedgates

outdoor fireplaceignition can be remotely or


automatically controlled

CONCLUTION
Hence by this project we can design a standalone automatic
room light controller with auto door opening and closing to
control the lighting in a room depending upon lighting that
is present in the room.

K
N
A
H
T

U
YO

You might also like