Home Security System with Remote Home Automation Control

Similar documents
DTMF BASED HOME AUTOMATION

PROGRAMMABLE POWER SUPPLY

Western Washington University. Electrical Engineering Technology. Etec 471. Professor Morton. Senior Hardware Description. Automated Aquarium

Sierra Radio Systems. HamStack. Project Board Reference Manual V1.0

DEV-1 HamStack Development Board

DS1306. Serial Alarm Real Time Clock (RTC)

Accelerometer Mouse: Hardware Description

GL-104 ENCODER/DECODER MANUAL GLOLAB CORPORATION

Bolt 18F2550 System Hardware Manual

D115 The Fast Optimal Servo Amplifier For Brush, Brushless, Voice Coil Servo Motors

BMS: Installation Manual v2.x - Documentation

Display Real Time Clock (RTC) On LCD. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

2. Control Pin Functions and Applications

REDACTION BASED ATM MONITORING SYSTEM USING MSP 430

GL116 ENCODER/DECODER MANUAL GLOLAB CORPORATION

DTMF Device/ Relay Remote Controller

RKP08 Component List and Instructions

ASH Transceiver 10 mw Power Amplifier Circuit Board

solutions for teaching and learning

ECE 480 Team 5 Introduction to MAVRK module

DS1305 Serial Alarm Real Time Clock (RTC)

DSP240-LPI Inverter Controller Card. Technical Brief

Instruction Manual for BE-SP3 Circuit. 10/21/07

DS1305. Serial Alarm Real Time Clock (RTC) FEATURES PIN ASSIGNMENT ORDERING INFORMATION

Embedded Systems and Software

output devices. connected to the controller. data communications link. relay systems. user program. MECH1500Quiz1ReviewVersion2 Name: Class: Date:

Specification Sheet For electronically commutated motors

Application Note. Motorola MC to CMX865A Migration. CML Microcircuits

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

Andover ContinuumTM Infinet II

LDD M SERIES INSTRUCTION MANUAL LDD M SERIES

ES-562/564U COMBINATION CLOCK/TIMER

SRI-02 Speech Recognition Interface

DS1305EN. Serial Alarm Real-Time Clock

ES-362U PRESETTABLE MASTER TIMER

IPM650 Intelligent Panel-Mount Display

1. Introduction ALSPA MV DELTA

CHAPTER 5. Voltage Regulator

Axiom Manufacturing. Users Manual. for PROJECT DEVELOPMENT BOARD AXM xiom anufacturing

BT-22 Product Specification

K191 3 Channel RGB LED Controller

DS1305EN. Serial Alarm Real-Time Clock

Proposal for SAS 2.x Specification to Enable Support for Active Cables

icex-cmtm General specs and Installation guide

ARDUINO MEGA 2560 REV3 Code: A000067

ARDUINO MEGA ADK REV3 Code: A000069

BACnet. b3810 Series Local Controllers

T100MD PLC Installation Guide

F8008. Fiber Modem for up to 4E1 /8E1 +RS232+Ethernet. + optional V.35/QFXS/QFXO

CS485. User s Manual. Version ZYPEX, Inc.

ARDUINO LEONARDO ETH Code: A000022

DS1306 Serial Alarm Real-Time Clock

Two-wire. Jumper for 12V. J2 Enable Adjust D/A1. Super PLC Warning: Warranty Void if this label is damaged 62256LP-12 CMOS RAM 4.

Keywords Digital IC tester, Microcontroller AT89S52

Arduino Uno. Arduino Uno R3 Front. Arduino Uno R2 Front

POWER SAVER METER USING MICROCONTROLLER TO SAVE ELECTRICITY UPTO 30-40%

PK2200 Series. Features. C-Programmable Controller. Specifications Board Size Enclosure Size Operating Temp.

Andover ContinuumTM Infinet II

Wireless Power Panel Meter (WPPM)

DM9051NP Layout Guide

TEXAS INSTRUMENTS ANALOG UNIVERSITY PROGRAM DESIGN CONTEST MIXED SIGNAL TEST INTERFACE CHRISTOPHER EDMONDS, DANIEL KEESE, RICHARD PRZYBYLA SCHOOL OF

Andover Continuum Infinet II i2865/866 VAV Controllers with Built-in Actuator

AC : INFRARED COMMUNICATIONS FOR CONTROLLING A ROBOT

Robotics Training Module ABLab Solutions

User s Receptacle. User Appliance. Sensors. Outlet. Transformer. Transmitter. Receiver. Data. Microcontroller. Display. Keypad

keyestudio Keyestudio MEGA 2560 R3 Board

CDN503 HIGH DENSITY I/O ADAPTER USER GUIDE

ARDUINO LEONARDO WITH HEADERS Code: A000057

SECURITY FOR ORGANIZING GSM DIGITAL NOTICE BOARD Dr. Sreeja Mole S S 1, D.Gurunath 2, Yasmeen 3

RS485 3 click. How does it work? PID: MIKROE-2821

RF4431 wireless transceiver module

The IQ300 wall mount load cell indicator is a precision digital indicator for load cell and strain gauge applications.

RF4432 wireless transceiver module

Proposal for SAS 2.x Specification to Enable Support for Active Cables

Ocean Controls KTA-224 Modbus IO Module

Remote Keyless Entry In a Body Controller Unit Application

Q22 DATRAN II excel Owners Manual

ST400C-NT USER S GUIDE. Table of Contents

ARDUINO UNO REV3 SMD Code: A The board everybody gets started with, based on the ATmega328 (SMD).

Professional Radio GM Series. Controlhead Service Information

Web Site: Forums: forums.parallax.com Sales: Technical:

BG2D Solderless Connection Gate Drive Prototype Board

ericssonz LBI-38616B MAINTENANCE MANUAL FOR MTD TM SERIES AND DATA RADIO LOGIC BOARD 19D902151G3 DESCRIPTION CIRCUIT ANALYSIS TABLE OF CONTENTS

The CW Machine Hardware

Andover ContinuumTM. b3850 Series Terminal Controllers

Copyright 2014, R. Eckweiler & OCARC, Inc. Page 1 of 6

MeterBuilder MB-1 PROGRAMMABLE RF POWER METER. CIRCUIT DESCRIPTION Version 1.01 June 2011

F271XA Fiber-Optic Telephone Modem Technical Manual

BSL Hardware Guide for MP35 and MP30-1 -

Wide Bandwidth Strain Gage Input 3B18 FEATURES APPLICATIONS PRODUCT OVERVIEW FUNCTIONAL BLOCK DIAGRAM

Web Site: Forums: forums.parallax.com Sales: Technical:

C S Technology Ltd. cstech.co.uk. DTMF display 32 kit with 2 line x 16 LCD display

APPLICATION NOTE 655 Supervisor ICs Monitor Battery-Powered Equipment

5.1. Motor Protection and Monitoring. Contents. Product Overview. Monitoring Relays. D64R Series Digital Ground Fault Relays...

Arduino ADK Rev.3 Board A000069

Proposal for SAS 2.1 Specification to Enable Support for Active Cables

ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B

DS1834/A/D Dual EconoReset with Pushbutton

DPA 7000 PATENTS PENDING TELEPHONE AND LINE ANALYZER

Isolated Process Current Input 7B32 FEATURES APPLICATIONS PRODUCT OVERVIEW FUNCTIONAL BLOCK DIAGRAM

Transcription:

Home Security System with Remote Home Automation Control Justin Klumpp Senior Project Hardware Description Western Washington University April 24 2005 Professor Todd Morton

Introduction: This document describes the Home Security with Remote Automation Control System and its hardware implementation. This control system allows a person to monitor and control their home at a remote location. Once properly initialized this home control system has the ability to call the end user and notify them of any break-in to their security system. This system also, allows the end user to call into their home and remotely control household appliances such as a sprinkler valve or lights by using an automated voice menu. With cell phones becoming so popular, this home security uses this fact and turns a cell phone into the ultimate remote control for the home. Hardware: There are three main modules in this control system: base control module, wireless alarm module and wireless appliance control module. The base control module will be the main controller that takes care of all the hand shaking with the phone line, user interface and the communication link between all remote modules. The base control unit has the ability to control 16 wireless alarm modules, and 4 wireless appliance control modules. This allows the end user to have the ability to expand their system for complete control and security feedback from all around their home. Base Control Module: This module is the heart of the entire system with 9 different top level components. The Motorola MC9S12DP256B microcontroller [U3] is used to synchronize and control all the components of the base control module. To Home Control System 1

communicate with the DTMF [U4] and voice IC [U1], SPI will be used to send and receive data. For asynchronous wireless communication, SCI was chosen to transfer data at a baud rate of 300bps. For the MCU reset circuitry, a Maxim MAX6314 [U9] reset IC will reset the microcontroller if the supply input voltage is less than 4V. DTMF Transceiver: In order to make a phone call and to understand the user s keypad input on the remote side, a DTMF transceiver [U4] is used in the base control module. To generate a DTMF tone when making a phone call, the microcontroller will output a nibble of data. This data will come from pins PM3 to PM0 on the MCU, which is connected in parallel to pins D3 to D0 on the DTMF chip. For example, to generate the tone 5 in DTMF, the microcontroller [U3] will output 0 to D3, 1 to D2, 0 to D1 and 1 to D0. Once the DTMF chip has verified the data on pins D3-D0 a DTMF tone will be output through the TONE pin. To decode DTMF signals coming over the phone line, the signal will be imported differentially into the IN+/- pins this differential signal will cancel out the common mode noise. When a valid tone is detected, the DTMF chip will present the tone in a binary nibble on pins D3 to D0. ISD 4002 Voice Chip: This chip serves two purposes in the operation of this home automation system. One part is to play back prerecorded messages when the base microcontroller has determined that a wireless alarm module has gone off. The voice messages will tell which alarm sensor has gone off, or if an alarm sensor has gone offline. The second purpose for this chip is to hold the voice streams that will be used for the voice automated menu to control household appliances. Home Control System 2

This IC requires a 3 volt power supply, so the output of low dropout voltage regulator [U10] will be used to step 5 volts down to 3 volts. The voice IC has the capability to record up to 240 seconds of voice messages that are each stored at a designated memory address on the chip itself. The ISD chip uses a 16 bit internal shift register for all operational control. This register is broken down into two parts; 5 bits are used for control and 11 bits are used for data addressing. This chip uses SPI to communicate with the microcontroller. The MOSI, SCLK, and SS_L pins are connected respectively to PORTP: PP0, PP1, and PP3 on microcontroller [U3]. Data is clocked in when the SS_L pin is asserted low, and clocked out on the rising edge. When a valid play instruction is set, the voice message will be played on the AUD OUT pin and broadcast over the phone line through the DAA [U5]. DAA: The Data Access Arrangement (DAA) IC is connected to the phone line using an RJ-11 connector. From the input of the RJ-11 jack, the tip and ring input to this IC is connected to the green (tip) and red (ring) data wires of the RJ-11 cable. These two wires will be isolated by a 350V Sidactor [SP1] and two 3000V [C10, C11] snooping capacitors to prevent any transient voltage from damaging the IC. Since this system is developed for use in the U.S. market, it will be configured using a resistive termination to make it compatible with the U.S. telephone lines. The OH pin [pin 8], is an active low input pin, which is connected to the microcontroller [U3] to control the DAA s on/off hook state. When OH is set to a logical low, the DAA is in the off hook state which allows for a phone call to be made or to communicate over already established phone connection. To terminate a phone call, the OH pin should be Home Control System 3

set to a logic high which puts the DAA in the on-hook state. The other pin that is connected to the microcontroller is the RING pin [pin 9], it is used to signal the microcontroller if a call is detected. The active low ring detect output will go low for 1 second then high for 2 seconds continuously when a call is detected from the phone line. The TX pin on the DAA is used to broadcast both voice and dual tone multifrequency (DTMF) signals over the phone line. The TX pin connection has an internal operational amplifier; both the voice and DTMF chips are connected to the inverting side of this operational amplifier using 50 ohm resistors. The RX- and RX+ pins are differential outputs which connect to the DTMF IC [U4] for signal decoding. Real Time Clock: To keep time accurately even with a power outage, a battery backed real time clock (BBRTC) is used [U6]. This component uses SPI communication with the microcontroller. The accuracy of the RTC is dependent upon the accuracy of the crystal and its capacitance; in this particular setup, the crystal [X2] is rated for 30ppm, 6pF for a perfect capacitance match and better accuracy. Once the initial setup and time is written to the BBRTC, it will start tracking from the written setup time. If V cc1 [pin 16] is out of service, the BBRTC will be powered by the 3V lithium battery [B1] with a max current draw of 400nA, until V cc1 is back in service. Sprinkler Valve: The sprinkler valve is an off-the-shelf Rain Bird APAS-100; to make it compatible with the home control system, a relay and driver are required. The relay [K1] has a coil rated at 5V, 40mA with 112Ω of resistance. To avoid over driving the output pin of the Home Control System 4

microcontroller, this relay will be control using a NPN transistor [Q2]. This transistor will work as an electrical switch to allow power to the relay coil during saturation. While the relay is on, its contact will allow the 24VAC from J2 to turn on the sprinkler valve. A diode is in place across the relay coil to eliminate any fly-back EMF induced by the relay coil once the power is off. Wireless Modules: For the wireless communication, a Radiotronix RCT-418-AS transmitter [U7] and RCR-418-RP receiver [U8] are used. Both of these parts communicate at 418 MHz and use on/off keying (OOK) for data transmission. These wireless ICs are designed to keep all external components to a minimum. In this system s configuration, the antennas [ANT1, ANT2] have an impedance of 50Ω to match the ANT input/output of the wireless ICs. A 0.01µF shunt capacitor is placed between the power and ground to filter out high frequency noise from the power supply. Keypad and LCD The keypad and LCD modules will be primarily used during the initialization of the home control system. Both of these modules will be used together for setting the user parameters during setup. The keypad will also be used to reset the home control system, or to modify the initial setup values. The LCD is a 4 line, 20 character display. This LCD display has a backlit display that requires an additional two pins for LED+ and LED-. The keypad is a 4 x 4 matrix with 16 different keys. Home Control System 5

Wireless Alarm Module: This module is powered by a 9 volt battery which is fed into a GL7805 [U2] 5 volt voltage regulator that is capacitor coupled on the output with a 10uF capacitor. The 5 volt output will then be used as the power supply for the wireless alarm module. The wireless alarm module uses a General Electric motion detector as the alarm sensor. This particular motion sensor has an output of 8 volts DC, when the sensor is on and an output of 0 volts DC when it is off. The output of the motion detector is fed into a current limiting 8kΩ resistor, and the diodes [D1, D2] ensure zero and 5 volt output to the PSoC CY8C29466 microcontroller [U1]. This microcontroller is setup to wake up every second, send out a byte of data, and then go back to sleep. The byte of data is encoded with information telling about the status of the motion sensor (on/off), and the alarm sensor ID, which is a number ranging from 1-16. The microcontroller s active high reset [pin 19] is tied low, and low voltage detection is done in the software. A Radiotronix RCT-418-AS, 418 MHz wireless transmitter [U4] is hooked to P0[0] on the PSoC microcontroller. This transmitter sends out data at a rate of 300bps through the DATA pin which is connected to a ¼ wave antenna. A shunt capacitor with a 0.01µF capacitance is placed between the power and ground to filter out high frequency noise from the supply. The wireless transmitter has an output impedance of 50Ω which is matched to the 50Ω input impedance of the antenna. The alarm sensor ID is a selected by using an 8 pin dip switch which is hooked using pull-ups with the outputs being pins 7,8,20,21 on the PSoC microcontroller. When the motion sensor is on, the Alarm Status LED will be blinking at a rate of 1 flash per second. This LED is used to visually indicate that the alarm has been tripped. Home Control System 6

Wireless Appliance Control Module: The appliance control module is connected and powered directly from the 120V, 60Hz wall socket. On the other side of the wall plug, the hot and ground terminal is stepped down through an 18 to 1 transformer [T1]. The resulting output is a 9.4V peak AC signal which is then applied to the bridge rectifier [CR1], and output through a coupled 100uF capacitor to create 9VDC for the input of the regulator [U2]. The regulator has an output of 5V which will be used to power the rest of this wireless module. For this module s output jack, the neutral and ground are connected directly to the wall plug. To control power to this jack, a relay is placed between the two hot terminals. When driving this relay, a PN2222A [Q1] transistor is used as an on/off switch to avoid over driving the output pin from the PSoC controller. There is a 35kΩ resistor at the base input of the transistor to drive [Q1] into saturation and limit the output current from the P0[7] pin. When the transistor is on, the current will flow through the relay coil and connect the two hot terminals together. To protect the transistor from fly-back EMF from the relay coil, a shunt diode [D1] is connected across the relay coil. For added protection, a 10A fuse [F1] is placed between the relay and wall plug to prevent excessive current from destroying the relay module. This module uses a PSoC CY8C29466 as the main controller. There is a wireless receiver [U3] hooked to pin P2[1] on the MCU, the antenna and receiver are impedance matched with 50Ω. The receiver will receive data from the base control module, at a rate of a 300bps. The microcontroller will be looking for a byte of information encoded with a start nibble of 1010, and then 1 bit for on/off control and 2 bits for the sensor ID. The sensor ID will be unique for each wireless appliance module; Home Control System 7

this ID will be used to determine which module needs to be turned on or off. The ID will be selected on the wireless module itself using a 4 pin dip switch that is connected on pins P0[2] and P0[0] on the microcontroller. Home Control System 8