If an occupancy of room is zero, i.e. room is empty then light source will be switched off automatically



Similar documents
1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

Wireless Home Security System

ADVANCED FIRE ALARMING SYSTEM THROUGH MOBILE PHONE

Current Loop Application Note 1495

Wireless Security Camera

Hardware and Logic Implementation of Multiple Alarm System for GSM BTS Rooms

Cornerstone Electronics Technology and Robotics I Week 15 Voltage Comparators Tutorial

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Electronics. Discrete assembly of an operational amplifier as a transistor circuit. LD Physics Leaflets P

Product Information S N O. Portable VIP protection CCTV & Alarm System 2

POCKET SCOPE 2. The idea 2. Design criteria 3

CHAPTER 11: Flip Flops

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

GT Sensors Precision Gear Tooth and Encoder Sensors

User and installation manual

Automation System TROVIS 6400 TROVIS 6493 Compact Controller

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Conversion Between Analog and Digital Signals

AVR125: ADC of tinyavr in Single Ended Mode. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

USB to serial chip CH340

Android based Alcohol detection system using Bluetooth technology

How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player

EMBEDDED GSM MONITOR AND CONTROL USING ANDROID APPLICATION

IR-PRO IR-PRO. Operation Guide. Professional Infrared Code Capture System

Research Article. ISSN (Print) *Corresponding author Nathan David

STUDY OF CELLPHONE CHARGERS

Artificially Intelligent Home Automation System Based on Arduino as the Master Controller

User Guide Reflow Toaster Oven Controller

AN2680 Application note

Advanced Electronic System for Human Safety (Smart Watch)

Programmable Single-/Dual-/Triple- Tone Gong SAE 800

Radio sensor powered by a mini solar cell the EnOcean STM 110 now functions with even less light

LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.

AC-115 Compact Networked Single Door Controller. Installation and User Manual

Business/Home GSM Alarm System. Installation and User Manual

ABB Drives. User s Manual HTL Encoder Interface FEN-31

Combi B Alarm box. Mounting instructions

USER MANUAL V5.0 ST100

M68EVB908QL4 Development Board for Motorola MC68HC908QL4

SMART SENSOR COLLECTION

GLOLAB Two Wire Stepper Motor Positioner

Study Guide for the Electronics Technician Pre-Employment Examination

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

Tire pressure monitoring

PhidgetInterfaceKit 8/8/8

Design,DevelopmentandPerformanceStudyofL-HomeSecuritySystem

- 35mA Standby, mA Speaking pre-defined phrases with up to 1925 total characters.

LDG DTS-4/4R Desktop Coaxial Switch / Remote

AVR126: ADC of megaavr in Single Ended Mode. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

The basic set up for your K2 to run PSK31 By Glenn Maclean WA7SPY

Serial Communications

LIFT CONTROL SYSTEMS CATALOGUE 2007

VOLTAGE/CURRENT CALIBRATOR ISO-TECH ILC-421

Home Security System

DMX-K-DRV. Integrated Step Motor Driver + (Basic Controller) Manual

MODEL 5010 DUAL CHANNEL SMOKE/FIRE DETECTION MODULE

TX GSM SMS Auto-dial Alarm System. Installation and User Manual

EvB 5.1 v5 User s Guide

GPS & GSM BASED REAL-TIME VEHICLE TRACKING SYSTEM.

500r+ Installation and User Guide

Enhanced In-house Voice Communication over Power- Line Network

PolyBot Board. User's Guide V1.11 9/20/08

GSM Interfacing Board

RC2200DK Demonstration Kit User Manual

Intelligent Home Automation and Security System

Interfacing Analog to Digital Data Converters

Design of an Insulin Pump. Purpose of an Insulin Pump:

Fundamentals of Signature Analysis

Input, Process and Output

USB I/O CONTROL BOX 8 relays, 8 digital I/O lines and 8 HV inputs

HAM841K ALARM CONTROL PANEL FOR COMMERCIAL AND RESIDENTIAL SECURITY SYSTEMS

LEN s.r.l. Via S. Andrea di Rovereto 33 c.s CHIAVARI (GE) Tel Fax mailto: len@len.it url: http//

ARDUINO SEVERINO SERIAL SINGLE SIDED VERSION 3 S3v3 (REVISION 2) USER MANUAL

The $25 Son of a cheap timer This is not suitable for a beginner. You must have soldering skills in order to build this kit.

NTE923 & NTE923D Integrated Circuit Precision Voltage Regulator

TEK 1 Applications V TEKVOX, Inc San Antonio, TX 78232

Copyrights 2010 Victron Energy B.V. All Rights Reserved

Application Note 83 Fundamentals of RS 232 Serial Communications

IP Box Camera ACM Ver Hardware User s Manual

RDF1. RF Receiver Decoder. Features. Applications. Description. Ordering Information. Part Number Description Packages available

VEHICLE MONITORING CONTROLLING AND TRACKING SYSTEM BY USING ANDROID APPLICATION

RC Camera Control. User Guide v /20/2012

Technical data. General specifications. Indicators/operating means. 30 Hz Multiplex operation 30 Hz / n, n = number of sensors, n 5

Accurate Measurement of the Mains Electricity Frequency

Business/Home GSM. Alarm System(III) Installation and Users guide

Arbeitskreis Hardware. Prof. Dr. Michael Rohs, Dipl.-Inform. Sven Kratz MHCI Lab, LMU München

SMS Alarm Messenger. Setup Software Guide. SMSPro_Setup. Revision [Version 2.2]

Monitoring of Intravenous Drip Rate

How to design an insulin pump

LIFT CONTROL SYSTEMS CATALOGUE 2007

ACTIVE INFRARED MOTION DETECTOR FOR HOUSE SECURITY SYSTEM MIOR MOHAMMAD HAFIIZH BIN ABD. RANI UNIVERSITI MALAYSIA PAHANG

Simplify Data Acquisition with a Built-in LXI Web Server

LM139/LM239/LM339/LM2901/LM3302 Low Power Low Offset Voltage Quad Comparators

LABORATORY 2 THE DIFFERENTIAL AMPLIFIER

Robot Board Sub-System Testing. Abstract. Introduction and Theory. Equipment. Procedures. EE 101 Spring 2006 Date: Lab Section # Lab #6

Surveillance System Using Wireless Sensor Networks

PIKA Technical Bulletin #41. V-12 RAN Trunk Interface Implementation

Modification of an AOR AR-8600 receiver to tune it with a ACECO FC-3002 frequency finder

AVR Butterfly Training. Atmel Norway, AVR Applications Group

Embedded Systems on ARM Cortex-M3 (4weeks/45hrs)

Transcription:

EE389 Electronic Design Lab Project Report, EE Dept, IIT Bombay, Nov 2009 Fully-automated control of lighting and security system of a Room Group No: D2 Bharat Bhushan (06d04026) <bb@ee.iitb.ac.in> Sravan Kumar Jatavath (06d07018) <z6d07018@iitb.ac.in> Bhamare Jitendra Dilipkumar (06d07019) <z6d07019@iitb.ac.in> Abstract In this report we are discussing the design of an occupancy detector circuit that automatically switch ON and OFF the light in a room based on room occupancy and display the number of persons in a room on LCD, design of Light dependent Resistor (LDR) based circuit that controls the light in a room depending upon the lighting condition (intensity of ambient light), design of Temperature indicator, design of smoke detector and design of capturing an image using webcam/canon camera. 1 Introduction The motivation behind this project is Energy Saving ; we tried our level best in designing an energy efficient electronic circuit to prevent the wastage of energy after looking at hostel rooms, toilets, Central Library e.t.c. of IIT Bombay. The major parts of this project are: Occupancy Detector: An occupancy detector circuit was built using a pair of infrared transceivers (5mm Transmitter and Receiver). When an opaque object is put in between the aligned transceivers, the receiver gets toggled. Putting one transceiver on a door could be used to determine whether someone crossed the door, however, two are needed to determine the direction of the person crossing the door. This is the circuit which saves the electricity to great extent, this circuit saves approximately around the 57.8% of the energy which otherwise has been wasted. LDR based switching circuit: This circuit is basically a light sensor circuit which senses the light and accordingly switches on and off the light automatically. This is the circuit which saves the electricity to great extent. Temperature Indicator: It is designed using LM35 sensor & 2x16 LCD Display LCD Display: In this part we are displaying the room Temperature and information about room occupancy (i.e number of persons) in the room detected by an occupancy detector circuit on LCD. Smoke detector: this circuit will produce a Buzz/Voice when a smoke is detected. 1.1 Conditions for Light source to switch ON and OFF If an occupancy of room is zero, i.e. room is empty then light source will be switched off automatically If an occupancy of room is not zero then o if an ambient light is sufficient then light source will be switched OFF o otherwise light source will be switched ON

1.2 Block Diagram: 2 Occupancy Detector 2.1 Circuit Implementation: The voltage that develops across the receiver is dependent on the opaqueness of the object and the distance between the transmitter and receiver. To deal with this, an inverting Schmitt Trigger (IC40106B) was used. This design permits easy interfacing with the microcontroller as it provides an active-low signal to indicate a specific sensor has toggled. The transmitter/receiver Pair has an active range of detection of about 10 and was tested for acceptable operation of 0.25m, 0.5m, 0.75m, 1m. 2.2 Algorithm: The circuit feeds information to the microcontroller, so an appropriate algorithm needed to be developed. Conceptually, when a person walks into the room through a door with the sensors, Sensor A is toggled first followed by Sensor B. Similarly, when a person leaves the room, Sensor B is toggled before Sensor A. In order to account for cases when a person walks half-way through the door (toggling

only Sensor A) and decides to reverse direction and leave never entering the room, the following algorithm was implemented. The number of people in the room will only be increased if the sensors are toggled in the following specific order: 1. Sensor A 2. Sensor A and Sensor B 3. Sensor B In an analogous manner, the number of people will only be decreased if the following sensors are toggled in order: 1. Sensor B 2. Sensor B and Sensor A 3. Sensor A All other combinations are ignored. 2.3 Circuit Diagram:

3 LDR based switching circuit 3.1 Circuit Implementation: This circuit is made using Light dependent Resistor (LDR) of dark resistance equal to 51kohms, the voltage developed across the resistance R is given to Schmitt Trigger, output of Schmitt Trigger is one of the input of AND gate, the other input of AND gate is an output of occupancy detector, when both are at logic 1 then they turn ON the switch and the Light source will glow. 3.2 Circuit Diagram:

4 Switching of CFL bulb : A 5 volt DC relay (GS-SH-205T) is connected to the CFL bulb as a switch. When a 5 volt is applied to relay it gets switched on. As 5v DC relay requires sufficient current to function properly, a transistor BD139 is introduced as an another switch for relay. 4.1 Circuit Diagram: 5. Temperature Indicator ( Using LM35 sensor & 2x16 LCD Display) 5.1 LM35 Sensor : The LM35 series are precision integrated-circuit temperature sensors, whose output voltage is linearly proportional to the Celsius (Centigrade) temperature.

We connect the Vcc to 5V,GND to Gnd and the Out to one of the ADC (analog to digital converter channel). The output linearly varies with temperature. The output is 10 millivolts per degree centigrade. Ex : When the temperature is 27 degree C, the output of the LM35 sensor would be 270 mv. We fetch this voltage to the Analog to Digital Converter of ATMEGA32 microcontroller. 5.2 Analog to Digital Converter (ADC) : The resolution of ATMEGA16 ADC is 10bit and for reference voltage we are using 5V so the resolution in terms of voltage is 5/1024 = 5mV approx So ADCs result corresponds to 5mV resolution i.e. if ADC reading is 10 it means 10 x 5mV = 50mV ADC Initialization : We have to configure the ADC by setting up ADMUX and ADCSRA registers. (a) ADC Multiplexer Selection Register ADMUX the reference voltage. REFS1 REFS0 selects Our reference voltage will be Vcc(5v). So we set ADMUX=(1<<REFS0); (b)adc Control and Status Register A ADCSRA ADEN We set this to 1 to enable ADC ADPS2-ADPS0 Prescaler for ADC.We select division factor as 128. So ADC clock frequency = 16000000/128 = 125000 = 125KHz

ADCSRA=(1<<ADEN) (1<<ADPS2) (ADPS1) (ADPS0); //Enable ADC with Prescalar=Fcpu/128 Reading the analog value : We read the value of any ADC channel using the function ReadADC(ch); Where ch is channel number (0-5) in case of ATmega8. If you have connected the LM35's out put to ADC channel 0 then call adc_value = ReadADC(0) This will store the current ADC reading in variable adc_value. The data type of adc_value should be int as ADC value can range from 0-1023. As we saw ADC results are in factor of 5mV and for 1 degree C the output of LM35 is 10mV, =>So 2 units of ADC = 1 degree. So to get the temperature we divide the adc_value by to Temperature = adc_value/2 Finally we display this value in the LCD Module. Schemati c of the tempera ture sensing circuit - We connect the LCD Module to port D to display the tempera ture

6 LCD Display Numbers of persons present in the room are displayed on LCD 6.1 Circuit Diagram: 6.2 Circuit Implementation: We are using only four pins D4, D5, D6 and D7 of LCD to interface with microcontroller.

7. Smoke Detector It consists of photo-emitter and photo-detector. Whenever smoke is introduced between emitter and detector, the detector diode does not receive any photo-radiation from emitter thus it becomes open (logically 1) in the circuit, which causes high voltage at point A, Which is connected to a npn transistor (BD139). Thus it enables the transistor to turn on. This transistor acts as a switch for an Alarm (Buzzer). 7.1 Schematic: 8. Image capturing by webcam As a part of security of the room, whenever a person enters inside the room, the webcam capture his/her image and store it in the PC hard-disk. Position of webcam: In front of the door passage

8.1 Block Diagram 8.2 Mechanism and Working Connections: Whenever IR sensors detects a person coming inside the room, they conveys it to the microcontroller (Atmega 16). The microcontroller sends a signal to the MAX 232. The logical voltage values (i.e. 0V or +5V) get converted into serial port compatible voltage ( i.e. +9 or -9) by MAX 232 IC and are sent to the DB9 (serial Port ). Here, the signal coming from MAX232 IC goes into the Data Carrier Detect (DCD) pin of the DB9, which is the PIN1 of the DB9. A serial port to USB converter is used to connect DB9 to the PC. Pinouts of the serial port (DB9) Code Algorithm(code written in MATLAB): Code contains an image capturing function, (which controls the webcam) when it is called, snaps are taken by a webcam.the bit value of Data Carrier Detect (DCD) Pin can be read in the code. (which is, here, set by microcontroller). When this value becomes 1, program calls an image capturing function, thus an image gets captured. 9. Image capturing by Canon camera: 9.1 Requirements: In order to trigger a CHDK camera remotely, we will need to install CHDK on your camera

connect a suitable triggering device to be connected to the USB socket of your camera ensure "Enable remote" to have been selected in CHDK run a suitable script (see example below) place your camera in shoot mode (i.e. not playback mode, movie mode, alt mode, etc) with CHDK still running operate the trigger 9.2 USB remote cable A popular method for remotely triggering CHDK-enabled cameras involves constructing a simple triggering device from a 3V battery, a USB extension cable, and a push switch. The camera's USB cable is then attached to the camera at one end and to the triggering device by the other end. Below is a circuit diagram of such a switch. If we are cutting up a commercially-made USB extension cable, then wires 1 and 4 are red and black, respectively, according to the USB standard. It seems that even cheaply made USB cables follow this standard. 9.3 Script @title Remote button while 1 wait_click 1 if is_key "remote" then shoot wend end