Automatic Room Light Controller With Bidirectional Visitor
-
Upload
santhanalakshmi-sekhar -
Category
Documents
-
view
806 -
download
8
Transcript of Automatic Room Light Controller With Bidirectional Visitor
![Page 1: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/1.jpg)
AUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER
![Page 2: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/2.jpg)
Objective: To make a controller based model
to count number of persons visiting particular room and accordingly light up the room..
To know the number of people present in room so as not to have congestion.
Here we can use sensor and can know present number of persons.
![Page 3: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/3.jpg)
![Page 4: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/4.jpg)
Tasks:reliable circuit that takes over the
task of controlling the room lights.
as well as counting number of persons/ visitors in the room.
![Page 5: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/5.jpg)
Project overview:When somebody enters into the room
then the counter is incremented by one and the light in the room will be switched ON in a sequence.
and when any one leaves the room then the counter is decremented by one. The lights will be switched OFF in a sequence when the persons in the room go out.
The total number of persons inside the room is also displayed on the LCD display.
![Page 6: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/6.jpg)
The microcontroller receives the signals from the sensors, and this signal is operated under the control of software which is stored in ROM.
Microcontroller AT89S52 continuously monitors the Infrared Receivers.
When any object pass through the IR Receiver's then the IR Rays falling on the receiver are obstructed , this obstruction is sensed by the Microcontroller.
![Page 7: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/7.jpg)
Block diagram:
![Page 8: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/8.jpg)
Block diagram descriptionPower SupplyEntry and Exit sensor circuitAT 89S52 micro-controllerRelay driver circuit
![Page 9: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/9.jpg)
Power Supply:-
Here we used +12V and +5V dc power supply.
+12V is given to relay driver. To get the +5V dc power supply
we have used here IC 7805, which provides the +5V dc regulated power supply.
![Page 10: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/10.jpg)
Enter and Exit Circuits:-
The main intention of this block is to sense the person.
For sensing the person and light we are using the light dependent register (LDR).
By using this sensor and its related circuit diagram we can count the persons.
![Page 11: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/11.jpg)
89S52 Microcontroller:-
low-power, high performance CMOS 8-bit microcontroller with 8KB of Flash Programmable and Erasable Read Only Memory (PEROM).
manufactured using nonvolatile memory technology is compatible with the MCS-51TM instruction set and
pin out. The on-chip Flash allows the program memory to be
reprogrammed in-system or by a conventional nonvolatile memory programmer.
By combining a versatile 8-bit CPU with Flash on a monolithic hip, the Atmel AT89S52 is a powerful Microcontroller, which provides a highly flexible and cost effective solution so many embedded control applications.
![Page 12: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/12.jpg)
Relay Driver Circuit:-
potential to drive the various controlled devices.
transistor and the relays are used. One relay driver circuit we are using to
control the light. Output signal from AT89S52 is given to
the base of the transistor, which we are further energizing the particular relay.
Because of this appropriate device is selected and it do its allotted function.
![Page 13: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/13.jpg)
Transmission circuit
![Page 14: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/14.jpg)
Receiver circuit
![Page 15: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/15.jpg)
Hardware Design:-
![Page 16: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/16.jpg)
List of Components:
Microcontroller – AT89S52
IC – 7805
Sensor – TSOP 1738 (Infrared Sensor)
Transformer – step down 220V/12V
Preset – 10K
Disc capacitor –
Reset button switch
Rectifier diode – Bridge rectifier
Transistor – BC 547, CL 100
LCD display
![Page 17: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/17.jpg)
Microcontroller AT89S52:
8 KB Reprogrammable flash.
32 Programmable I/O lines. 16 bit Timer/Counter—3. 8 Interrupt sources. Power range: 4V – 5.5V Endurance : 1000 Writes / Erase cycles Fully static operation: 0 Hz to 33 MHz
![Page 18: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/18.jpg)
Three level program memory lock Power off flag Full duplex UART serial channel Low power idle and power down modes Interrupt recovery from power down modes 256 KB internal RAM Dual data pointer
![Page 19: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/19.jpg)
TSOP1738 (INFRARED SENSOR)Photo detector and preamplifier
in one packageInternal filter for PCM frequencyImproved shielding against electrical field disturbance
![Page 20: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/20.jpg)
TTL and CMOS compatibilityOutput active lowLow power consumptionHigh immunity against ambient
lightContinuous data transmission
possible (up to 2400 bps)Suitable burst length .10
cycles/burst
![Page 21: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/21.jpg)
LM7805 (Voltage Regulator)
Output Current up to 1AOutput Voltages of 5, 6, 8, 9, 10, 12, 15, 18, 24V Thermal Overload Protection Short Circuit Protection Output Transistor Safe Operating Area
Protection
![Page 22: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/22.jpg)
Software design
Start
Infrared Signal
Transmission
Interrupted from
Sensor1
Interrupted from
Sensor 2
Turn On Relay
Counter Increment
ed
Counter Decrement
ed
Counter set to 0
Relay Turn Off
Turn On Light
Turn Off Light
![Page 23: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/23.jpg)
FUTURE EXPANSION
By using this circuit and proper power supply we can implement various applications
Such as fans, tube lights, etc.
By modifying this circuit and using two relays we can achieve a task of opening and closing the door.
![Page 24: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/24.jpg)
Application◦For counting purposes ◦For automatic room light control
![Page 25: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/25.jpg)
Bibliography•Reference Books
•Programming in ANSI C: E BALAGURUSAMY•The 8051microcontroller and embedded systems: MUHAMMAD ALI MAZIDI JANICE GILLISPIE MAZIDI•The 8051 microcontroller: KENNETH J. AYALA
•Website•www.datasheets4u.com •www.8051.com
![Page 26: Automatic Room Light Controller With Bidirectional Visitor](https://reader038.fdocuments.us/reader038/viewer/2022102511/544fc082af7959ff088b4708/html5/thumbnails/26.jpg)
Advantages◦Low cost◦Easy to use◦Implement in single door
Disadvantages It is used only when one single
person cuts the rays of the sensor hence it cannot be used when two person cross simultaneously.