[ppt]“automatic room light controller with ... · web viewautomatic room light controller with...

26
AUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER

Upload: hamien

Post on 02-Apr-2018

523 views

Category:

Documents


71 download

TRANSCRIPT

Page 1: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

AUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER

Page 2: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

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: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count
Page 4: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

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: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

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: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

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: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

Block diagram:

Page 8: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

Block diagram descriptionPower SupplyEntry and Exit sensor circuitAT 89S52 micro-controllerRelay driver circuit

Page 9: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

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: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

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: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

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: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

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: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

Transmission circuit

Page 14: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

Receiver circuit

Page 15: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

Hardware Design:-

Page 16: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

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: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

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: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

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: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

TSOP1738 (INFRARED SENSOR)Photo detector and preamplifier

in one packageInternal filter for PCM frequencyImproved shielding against electrical field disturbance

Page 20: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

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: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

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: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

Software design

StartInfrared Signal

Transmission

Interrupted from

Sensor1

Interrupted from

Sensor 2Turn On Relay

Counter Increment

ed

Counter Decrement

ed

Counter set to 0

Relay Turn Off

Turn On Light

Turn Off Light

Page 23: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

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: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

Application◦For counting purposes ◦For automatic room light control

Page 25: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

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: [PPT]“AUTOMATIC ROOM LIGHT CONTROLLER WITH ... · Web viewAUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER Objective: To make a controller based model to count

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.