Room Light Control

download Room Light Control

of 16

Transcript of Room Light Control

  • 7/30/2019 Room Light Control

    1/16

    Automatic Room Light Controller with

    Visitor Counter

    BYK. Immanuel (Roll No. 2011273009)

    C. Jaganathan(Roll No. 2011273010)

    ME - Applied Electronics (PT)

  • 7/30/2019 Room Light Control

    2/16

    Objective

    To implement an automatic room light controller that automatically

    makes glow the light when there is at least one person in the room.

    Also this setup has an embedded LCD display module that displays

    the visitor count in the room.

  • 7/30/2019 Room Light Control

    3/16

    Sections of the Project Power Supply

    Sensor Setup

    Microcontroller

    LCD Display

    Light Section

  • 7/30/2019 Room Light Control

    4/16

    Block Diagram

    Microcontroller

    Section

    LCD Display

    Power Supply

    IR Trans-receiverSection

    Light Control

    Section

  • 7/30/2019 Room Light Control

    5/16

    Working Two IR LED & Photo-diode sensors are implemented at the entrance

    of the room to sense the entry or exit of a person.

    According to the action sensed the visitor count is increased or

    decreased.

    For counts greater than zero the light switches ON and the visitor

    count reaches zero the light is switched OFF

  • 7/30/2019 Room Light Control

    6/16

    Power SupplyA Switch Mode Power Supply (SMPS) is used to convert 220v AC

    supply into 5v DC suitable for the operation of the microcontroller.

    The 5v DC supply is given as the Vcc and all the components of the

    project, work in the 0-5v scale.

  • 7/30/2019 Room Light Control

    7/16

    Sensor Setup Two IR-LEDs act as transmitters and two photo-diodes act as

    receivers.

    The received sources are given to comparator for deciding whether

    the light source is obstructed. first followed by Source 2 the action

    sensed is incoming of a person.

    Whenever Source 2 is obstructed first followed by Source 1 the

    action sensed is outgoing of a person

  • 7/30/2019 Room Light Control

    8/16

    Sensor Setup LM 358

    This is a comparator IC

    This IC has two comparators

    Two inputs and an output for each comparator

  • 7/30/2019 Room Light Control

    9/16

    Microcontroller

    Atmel 89S52 microcontroller is used

    The light controller is interfaced with Port 0

    The sensor setup is interfaced with Port 1

    The command/data-lines of the LCD module is interfaced with Port 2

    The control-lines of the LCD module is interfaced with Port 3

    Crystal Oscillator producing 11.0592 Mhz is used

  • 7/30/2019 Room Light Control

    10/16

    Microcontroller

  • 7/30/2019 Room Light Control

    11/16

    LCD Display Module 2 X 16 LCD Display is used

    This LCD module has two line display each line is capable of

    displaying 16 characters

    8 command/data lines are available for sending command words or

    data to be displayed in the LCD module

    3 Control lines are available for performing operations like read/

    write, reset, enable etc.

  • 7/30/2019 Room Light Control

    12/16

    Light Control In the prototype model a bright white high wattage LED is used as

    the room light in order to make the kit portable

    A transistor BC 547 is used to drive the glowing of the LED and also

    cater to the current requirement for the LED

  • 7/30/2019 Room Light Control

    13/16

    Circuit Diagram

  • 7/30/2019 Room Light Control

    14/16

    Tools used Keil C Compiler

    Progisp burning software

    ISP, AT series USB burner kit

    Languages Used: Embedded C.

  • 7/30/2019 Room Light Control

    15/16

    Advantages Saves current by switching OFF the light when no one is present in

    the room

    Displays number of persons inside the room at any time

    Also gives information of total number of visitors who entered the

    room

  • 7/30/2019 Room Light Control

    16/16