Top Banner
HOME AUTOMATION SYSTEM Table of Content 1. Abstract------------------------------------------ -----------------------------------------------3 2. Literature Review -------------------------------------------------- ----------------------------4 3. Project Plan 3.1 Problem Statement -------------------------------------------------- -------------------------5 3.2 Operating Environment -------------------------------------------------- ---------------------5 3.3 Intended Users & Uses -------------------------------------------------- ---------------------5 3.4 Assumptions -------------------------------------------------- --------------------------------6 4. Proposed Approach 4.1 Functional Requirements -------------------------------------------------- --------------------6 GCOEC/INSTRUMENTATION/2012-13 Page 1
81
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Project Report on home automation

HOME AUTOMATION SYSTEM

Table of Content

1. Abstract-----------------------------------------------------------------------------------------3

2. Literature Review ------------------------------------------------------------------------------4

3. Project Plan

3.1 Problem Statement ---------------------------------------------------------------------------53.2 Operating Environment -----------------------------------------------------------------------53.3 Intended Users & Uses -----------------------------------------------------------------------53.4 Assumptions ----------------------------------------------------------------------------------6

4. Proposed Approach

4.1 Functional Requirements ----------------------------------------------------------------------64.2 Constraint Considerations --------------------------------------------------------------------74.3 Technology Considerations -------------------------------------------------------------------74.4 Technical Approach ---------------------------------------------------------------------------7

5. Testing Requirements

5.1 GSM Receiver ---------------------------------------------------------------------------------85.2 GSM to Microcontroller -----------------------------------------------------------------------8

GCOEC/INSTRUMENTATION/2012-13 Page 1

Page 2: Project Report on home automation

HOME AUTOMATION SYSTEM

5.3 Decoding of Remote User’s commands ------------------------------------------------------95.4 I/O Command’s Voltage ----------------------------------------------------------------------95.5 I/O Command Storage -----------------------------------------------------------------------95.6 Circuit’s Power Surge Protection -----------------------------------------------------------105.7 End Product Functionalities ------------------------------------------------------------------10

6. System Block diagram -------------------------------------------------------------------------11

7. Circuit Diagram7.1 Circuit Diagram -------------------------------------------------------------------------------127.2 Power Supply Section ------------------------------------------------------------------------137.3 Relay Driver Circuit--------------------------------------------------------------------------138. PCB Layout ------------------------------------------------------------------------------------14

9. Microcontroller Programming ----------------------------------------------------------------1510. Component List-------------------------------------------------------------------------------3211. Component Description

11.1 Resistors ------------------------------------------------------------------------------------3311.2 Capacitors ----------------------------------------------------------------------------------33

GCOEC/INSTRUMENTATION/2012-13 Page 2

Page 3: Project Report on home automation

HOME AUTOMATION SYSTEM

11.3 LED ------------------------------------------------------------------------------------------3411.4 Transistors ----------------------------------------------------------------------------------3511.5 Transformer --------------------------------------------------------------------------------3511.6 Diodes ---------------------------------------------------------------------------------------3611.7 Relay -----------------------------------------------------------------------------------------37

11.8 Microcontroller PIC16F67611.8.1 Features -----------------------------------------------------------------------------------3811.8.2 Pin Out ------------------------------------------------------------------------------------3911.8.3 Block Diagram -----------------------------------------------------------------------------40

11.9 DTMF Decoder MT887011.9.1 Description & Features --------------------------------------------------------------------4111.9.2 Pin Out Description ------------------------------------------------------------------------42

11.10 ULN 2003 IC --------------------------------------------------------------------------------4311.11 Voltage Regulator IC MC7812 & LM7805 -----------------------------------------------------4411.12 Diode IN4007 -------------------------------------------------------------------------------45

GCOEC/INSTRUMENTATION/2012-13 Page 3

Page 4: Project Report on home automation

HOME AUTOMATION SYSTEM

12. PCB Manufacturing Process -----------------------------------------------------------------4613. Design Specification13.1 PCB Designing -------------------------------------------------------------------------------4713.2 LAYOUT Design ------------------------------------------------------------------------------4713.3 Etching Process ----------------------------------------------------------------------------4813.4 Component Assembly -----------------------------------------------------------------------4913.5 Soldering -----------------------------------------------------------------------------------5014. Working ---------------------------------------------------------------------------------------5115. Flowchart ------------------------------------------------------------------------------------5216. Applications----------------------------------------------------------------------------------5317. Chronology------------------------------------------------------------------------------------5418. Bibliography -------------------------------------------------------------------55

GCOEC/INSTRUMENTATION/2012-13 Page 4

Page 5: Project Report on home automation

HOME AUTOMATION SYSTEM

1. ABSTRACT

Our project Home Automation System is a setup or system in which we can easily switch ON/OFF the appliances used in home. The appliances are connected through a circuit which is connected to a GSM mobile phone via a DTMF Tone Decoder IC.The human mind always needs information of interest to control systems of his/her choice. In the age of electronic systems it is important to be able to control and acquire information from everywhere.Although many methods to remotely control systems have been devised, the methods have the problems such as the need for special devices and software to control the system. This project suggests a method for control using the DTMF tone generated when the user pushes mobile phone keypad buttons or when connected to a remote mobile system. The proposed work has been done experimentally and has been verified in real time. Our project offers a novel solution for this problem by using a GSM mobile phone, a common electronic gadget. This device is build around PSoC, a powerful system-on-chip. This uses DTMF (Dual Tone Multi frequency) signals from mobile phone keypad to attain its functionality. For decoding the DTMF tones, we are using MT8870, CMOS Integrated DTMF Receiver.

FEATURES

The main features of our device control system are:-

1) Easy control of devices through mobile phone2) Can control (on/off) a maximum of 5 devices (by using decoder we can increase this number to 256)

GCOEC/INSTRUMENTATION/2012-13 Page 5

Page 6: Project Report on home automation

HOME AUTOMATION SYSTEM

2. Literature Review

Smart home is one of the recent fields in the context of computerscience. The paper named as “Remote mobile control of home appliances”by F. Meija, M. Nikolova and P. Voorwinden depicts on the homecontrolling using WAP protocol. The architecture mentioned by them ismuch complex but it gives an initial idea about the remote home appliancecontrolling.Smart home studies sometimes affected by the concern about thepossible harms to the humans’ health. A great research was done by TorilLaberg, Directorate for Health and Social Affairs of the Delta Centre,Norway. He later publish in his paper named “Smart Home Technology:Technology supporting independent living - does it have an impact onhealth?” that there is no harm on humans’ health by the technical setuprequired to support smart home technologies.Scott Davidoff, Min Kyung Lee, Charles Yiu, John Zimmerman,and Anind K. Dey in their journal named “Principles of Smart HomeControl” describe the control that families want and suggest seven designprinciples that will help end-user programming systems deliver thatcontrol.Tatsuya Yamazaki in his journal “The Ubiquitous Home”suggests that automation should not become a goal of the smart hometechnologies. In this paper he represents a real-life test bed, called theUbiquitous Home. In the Ubiquitous Home, a robot plays a role ofinterface for the residents. Three kinds of context-aware services havebeen implemented and a real-life living experiment was conducted. Theexperimental results were also reported.GL OBUS ENGINEERING COLLEGE, BHOPALPage 3Department of Electronics & Communication. Recently some projects are organized for building the architecture ofcontrolling home appliance using voice commands. VoiceXML is used forthat purpose.A smart house system named NETVOX [18] based on the ZigBeestandard is introduced recently. The system can use for home automationand industrial controls. It provides security, temperature, humidity,lighting, sensor, and multimedia control for comfort, convenience, andsafety wirelessly. The system may be accessed and controlled over thetelephone or over the Internet.

GCOEC/INSTRUMENTATION/2012-13 Page 6

Page 7: Project Report on home automation

HOME AUTOMATION SYSTEM

3. Project Plan

This section will state the basic problem, and the basic characteristics ofthe project, such as operating environment, users, etc.

3.1 Problem Statement

The objective of this project is to develop a device that allows for a userto remotely control multiple home appliances using a cellular phone. Thissystem will be a powerful and flexible tool that will offer this service at any time, and from anywhere with the constraints of the technologies being applied. Possible target appliances include (but are not limited to) climate control systems, security systems, and lights; anything with an electrical interface.The proposed approach for designing this system is to implement amicrocontroller-based control module that receives its instructions andcommands from a cellular phone over the GSM(Global System for Mobile Communications) network. The microcontroller then will carry out the issued commands.

3.2 Operating Environment

The control system will include two separate units: the cellular phone, andthe receiving control unit. There will therefore be two operatingenvironments. The cellular phone will operate indoors and outdoors whereas the receiving control unit will operate indoors within the temperature and humidity limits for proper operation of the hardware.GL OBUS ENGINEERING COLLEGE, BHOPALPage 5Dartcation3.3 Intended Users and Uses

This product is aimed toward average consumers who wish to controlhousehold appliances remotely from their cell phones provided that theappliances are electrically controllable. Example of feasible appliances andapplications under consideration include; enable/disable security systems,fans, lights, kitchen appliances, and a heating/ventilation/air conditioningsystem.

GCOEC/INSTRUMENTATION/2012-13 Page 7

Page 8: Project Report on home automation

HOME AUTOMATION SYSTEM

3.4 Assumptions

The following is a list of assumptions for the project:-

1. The user and receiver control unit will establish communication via GSM. 2. The cell phone and service provider chosen will support calling service.3. The user is familiar with the call process & IVRS on cell phone.4. Service charges from service provider may apply.5. The controlled appliances will have to have an electrical interface in order to be controlled by microcontroller.

4. Proposed approach

This section outlines the criteria that will be considered in thedevelopment of the control system.

4.1 Functional Requirements

The following is a list of functional requirements of the controlunit/module.

The Cellular Unit will have the ability to connect to the cellularnetwork automatically.

The Cellular Unit will be able to receive call and will be able to sendDTMF tone to the DTMF Decoder IC.

The DTMF Decoder IC will decode the (pressed no. by user’s cellphone & received on Cellular Unit) DTMF tone into the 4bit BCDoutput signal.

The microcontroller connected to the DTMF decoder IC will receivethe BCD output.

The logic programmed in microcontroller drive the signal to the O/Pports of microcontroller as per the BCD O/P.

Microcontroller will issue its command to the electrical appliancesthrough a simple control circuit.

GCOEC/INSTRUMENTATION/2012-13 Page 8

Page 9: Project Report on home automation

HOME AUTOMATION SYSTEM

4.2 Constraint Considerations

The following is a list of constraint considerations:-

The controlled appliances will need an electrical control interface. This simple system is only capable of controlling electrical devices. The control module will need to be shielded against electrostatic

discharges. This will increase reliability of the system.

4.3 Technology Considerations

The considerations for this system will include a choice of networks,communication protocols, and interfaces.

Cellular Networks: The widely available networks are based onGSM. This network provides a wide area of coverage and can beutilized more cost-effectively for this project.

Communication protocols: The available communication protocolsare DTMF, GPRS and SMS. The DTMF is the most efficientbecause this project requires a cellular communication and only bypressing keys we can control appliances.

I/O interfaces between microcontroller and devices: Serial orparallel I/O will be considered as options for connection between theGSM receiver and the microcontroller. Using the microcontroller,acontrol circuit will be implemented to control the electrical appliances.

4.4 Technical Approach

Assuming that the control unit is powered and operating properly, theprocess of controlling a home device will proceed through the followingsteps:-

The remote user makes a call to the GSM cellular unit andcommands to the receiver.

GSM receiver receives call automatically from user cell phone byauto answering mode.

After receiving call by GSM cellular unit user press the keys onhis cell phone.

GSM receiver receives the appropriate DTMF tone.

GCOEC/INSTRUMENTATION/2012-13 Page 9

Page 10: Project Report on home automation

HOME AUTOMATION SYSTEM

The DTMF decoder IC connected to GSM receiver detects thepressed DTMF tone & converts it to the 4 bit BCD O/P.

DTMF decoder IC sends the BCD O/P to the microcontroller. Microcontroller issues commands to the appliances via relays

connected to its O/P ports.

5. Testing Requirements

The following testing requirements will be indicators that the system cansuccessfully be implemented.

1) The GSM receiver will be tested for successful communication withnetwork. This will test include automation and consistency of theconnection and will be conducted by team members in the following way:

The cellular phone will dial the GSM receivers’ number.Once the connection is established a stream of data will be send to the GSM receiver.

The GSM receiver will be given data to be transmitted to thecellular phone.

Success/Failure criteria: The data received will be observed on both ends to verify its consistency. The test will be considered successful if the integrity of the sent and received data is maintained upstream. It will be considered a failure otherwise.

2) The GSM to microcontroller driver will be tested by verifying theintegrity of command strings sent from the remote user. The followingprocedure will be performed by team members for this phase:

The remote user will send a command to the control module. The contents of the data stream will be observed at the GSM

communication port. These contents will be compared with those received and stored at

the microcontroller’s corresponding communication port.

Success/Failure criteria: The test will be considered successful if theintegrity of the data sent upstream is maintained. It will be considered a failure otherwise.

GCOEC/INSTRUMENTATION/2012-13 Page 10

Page 11: Project Report on home automation

HOME AUTOMATION SYSTEM

3) Proper decoding of the remote user’s commands and issuance of the equivalent commands to the controlled device will be performed by team members using the following procedure:

A simulated instruction will be fed to the microcontroller communication port.

The output command at the I/O interface with the corresponding controlled device will be observed.

Success/Failure criteria: The test will be considered a success if the resulting command issued from the microcontroller is sent to the right I/O address for the desired controlled device and if that command is consistent with the command which is expected. The test will be considered a failure otherwise.

4) The I/O command’s voltage will be tested to meet the levels required to actuate the individual devices. The following procedure will beperformed by team members:

A simulated command from the microcontroller will be written to its I/O port.

The output voltage at the desired device’s control interface will be measured to verify its strength.

Success/Failure criteria: The test will be considered successful if thesimulated command from the microcontroller causes the proper voltage to be observed at the desired device’s control interface.

5) The ability of I/O to detect an input voltage and store a value in themicrocontroller’s memory will be tested by team members:

Test voltages to the input of the I/O will be applied. The contents of the memory shall be checked for validity.

Success/Failure criteria: The testing will be considered successful if the values of the memory are as expected. The test will be considered a failure otherwise.

GCOEC/INSTRUMENTATION/2012-13 Page 11

Page 12: Project Report on home automation

HOME AUTOMATION SYSTEM

6) The circuit’s power surge protection will be tested for acceptableperformance by all team members using the following procedure:

The circuit’s power supply will be removed from the circuit and connected to a dummy load.

A simulated voltage spike will be inputted by using a step signal from a signal generator.

The output voltage and current will be measured at the load.

Success/Failure criteria: The success of the test will be determined byverifying that the output signal to the dummy load falls with the toleranceindicated by the microcontroller and the GSM chip’s manufacturers. The test will be considered a failure if the measured characteristics of the power supply’s output do not meet the manufacturers’ requirements.

7) The end-product functionalities will be tested by team members andnon-team members in the following way:

Team members will ensure that all subsystems function properly together from remote user command to execution and back to completion status notification.

Non-team members from the general public will be allowed to access and use the control unit for a frame of time.

Afterward, the non-team member testing subjects will fill out a survey on the end-product’s functionalities, ease of use, difficulties, etc.

Success/Failure criteria: The testing will be considered a success if the testing subjects find the end-product user friendly, and easy to figure out.

GCOEC/INSTRUMENTATION/2012-13 Page 12

Page 13: Project Report on home automation

HOME AUTOMATION SYSTEM

6. System Block DiagramThe block diagram of the system is given below:

GCOEC/INSTRUMENTATION/2012-13 Page 13

Page 14: Project Report on home automation

HOME AUTOMATION SYSTEM

7.CIRCUIT DIAGRAM

GCOEC/INSTRUMENTATION/2012-13 Page 14

Page 15: Project Report on home automation

HOME AUTOMATION SYSTEM

RELAY DRIVER CIRCUIT

POWER SUPPLY SECTION

GCOEC/INSTRUMENTATION/2012-13 Page 15

Page 16: Project Report on home automation

HOME AUTOMATION SYSTEM

8. PCB LAYOUT

GCOEC/INSTRUMENTATION/2012-13 Page 16

Page 17: Project Report on home automation

HOME AUTOMATION SYSTEM

9. Microcontroller Programming

The microcontroller executes the program loaded in its Flash memory. This is the so called executable code comprised of seemingly meaningless sequence of zeros and ones. It is organized in 12-, 14- or 16-bit wide words, depending on the microcontroller’s architecture. Every word is considered by the CPU as a command being executed during the operation of the microcontroller. For practical reasons, as it is much easier for us to deal with hexadecimal number system, the executable code is often represented as a sequence of hexadecimal numbers called a Hex code. It used to be written by the programmer. All instructions that the microcontroller can recognize are together called the Instruction set. As for PIC microcontrollers the programming words of which are comprised of 14 bits, the instruction set has 35 different instructions in total.PIC16F676 IC is programmed by the MicroC (Programming software). We have used this Software for programming the 4 bit input coming into microcontroller to drive the appropriate relays.

Programming Codes

; ADDRESS OPCODE ASM; ----------------------------------------------$0000 $288D GOTO _main$0004 $ _calculateporta:$0004 $ Home_Automation_L_3:$0004 $1303 BCF STATUS, RP1$0005 $1283 BCF STATUS, RP0$0006 $082B MOVF FARG_calculateporta, 0$0007 $3A00 XORLW 0$0008 $1D03 BTFSS STATUS, Z$0009 $280C GOTO Home_Automation_L_4

;Home_Automation.pbas,56 :: main:$008D $ _main_main:

$008D $1303 BCF STATUS, RP1$008E $1683 BSF STATUS, RP0$008F $0187 CLRF TRISC, 1

$0090 $303F MOVLW 63$0091 $0085 MOVWF TRISA

$0093 $30FF MOVLW 255$0094 $1283 BCF STATUS, RP0$0095 $0099 MOVWF CMCON

$0096 $3007 MOVLW 7$0097 $1683 BSF STATUS, RP0$0098 $009F MOVWF ADCON1

$0099 $1283 BCF STATUS, RP0

GCOEC/INSTRUMENTATION/2012-13 Page 17

Page 18: Project Report on home automation

HOME AUTOMATION SYSTEM

$009A $0187 CLRF PORTC, 1

$009B $30BD MOVLW 189$009C $00A1 MOVWF _pw$009D $301E MOVLW 30$009E $00A2 MOVWF _pw+1

$009F $01A3 CLRF _digitno, 1

$00A0 $01A4 CLRF _temppw$00A1 $01A5 CLRF _temppw+1

$00A2 $01A6 CLRF _tempdeviceno, 1

$00A3 $01A7 CLRF _deviceno, 1

$00A4 $01A8 CLRF _getresponse, 1

$00A5 $01A9 CLRF _delaywait, 1

$00A6 $ _main_chkpw:

$00A6 $01A9 CLRF _delaywait, 1$00A7 $ Home_Automation_L_42:$00A7 $0829 MOVF _delaywait, 0$00A8 $3C05 SUBLW 5$00A9 $1C03 BTFSS STATUS, C$00AA $28D1 GOTO Home_Automation_L_45

$00AB $ Home_Automation_L_46:$00AB $1687 BSF PORTC, 5$00AC $ Home_Automation_L_47:

$00AC $3082 MOVLW 130$00AD $00DB MOVWF STACK_11$00AE $30FF MOVLW 255$00AF $00DA MOVWF STACK_10$00B0 $0BDB DECFSZ STACK_11, F$00B1 $28B3 GOTO $+2$00B2 $28B6 GOTO $+4$00B3 $0BDA DECFSZ STACK_10, F$00B4 $28B3 GOTO $-1$00B5 $28B0 GOTO $-5$00B6 $3087 MOVLW 135$00B7 $00DA MOVWF STACK_10$00B8 $0BDA DECFSZ STACK_10, F$00B9 $28B8 GOTO $-1$00BA $0000 NOP

$00BB $1287 BCF PORTC, 5$00BC $ Home_Automation_L_49:

$00BC $3041 MOVLW 65$00BD $00DB MOVWF STACK_11$00BE $30FF MOVLW 255$00BF $00DA MOVWF STACK_10$00C0 $0BDB DECFSZ STACK_11, F$00C1 $28C3 GOTO $+2$00C2 $28C6 GOTO $+4$00C3 $0BDA DECFSZ STACK_10, F$00C4 $28C3 GOTO $-1

GCOEC/INSTRUMENTATION/2012-13 Page 18

Page 19: Project Report on home automation

HOME AUTOMATION SYSTEM

$00C5 $28C0 GOTO $-5$00C6 $30C3 MOVLW 195$00C7 $00DA MOVWF STACK_10$00C8 $0BDA DECFSZ STACK_10, F$00C9 $28C8 GOTO $-1$00CA $0000 NOP

$00CB $0829 MOVF _delaywait, 0$00CC $3A05 XORLW 5$00CD $1903 BTFSC STATUS, Z$00CE $28D1 GOTO Home_Automation_L_45$00CF $ Home_Automation_L_43:$00CF $0AA9 INCF _delaywait, 1$00D0 $28A7 GOTO Home_Automation_L_42$00D1 $ Home_Automation_L_45:

$00D1 $01A4 CLRF _temppw$00D2 $01A5 CLRF _temppw+1

$00D3 $3001 MOVLW 1$00D4 $00A3 MOVWF _digitno$00D5 $ Home_Automation_L_50:$00D5 $0823 MOVF _digitno, 0$00D6 $3C04 SUBLW 4$00D7 $1C03 BTFSS STATUS, C$00D8 $2971 GOTO Home_Automation_L_53

$00D9 $01A9 CLRF _delaywait, 1

$00DA $ Home_Automation_L_54:

$00DA $0A29 INCF _delaywait, 0$00DB $00D2 MOVWF STACK_2$00DC $0852 MOVF STACK_2, 0$00DD $00A9 MOVWF _delaywait

$00DE $0852 MOVF STACK_2, 0$00DF $3A64 XORLW 100$00E0 $1D03 BTFSS STATUS, Z$00E1 $28E6 GOTO Home_Automation_L_60$00E2 $ Home_Automation_L_59:

$00E2 $01A4 CLRF _temppw$00E3 $01A5 CLRF _temppw+1

$00E4 $1287 BCF PORTC, 5$00E5 $ Home_Automation_L_63:

$00E6 $3082 MOVLW 130$00E7 $00DB MOVWF STACK_11$00E8 $30FF MOVLW 255$00E9 $00DA MOVWF STACK_10$00EA $0BDB DECFSZ STACK_11, F$00EB $28ED GOTO $+2$00EC $28F0 GOTO $+4$00ED $0BDA DECFSZ STACK_10, F$00EE $28ED GOTO $-1$00EF $28EA GOTO $-5$00F0 $3087 MOVLW 135$00F1 $00DA MOVWF STACK_10

GCOEC/INSTRUMENTATION/2012-13 Page 19

Page 20: Project Report on home automation

HOME AUTOMATION SYSTEM

$00F2 $0BDA DECFSZ STACK_10, F$00F3 $28F2 GOTO $-1$00F4 $0000 NOP

$00F5 $ Home_Automation_L_55:$00F5 $3000 MOVLW 0$00F6 $1A85 BTFSC PORTA, 5$00F7 $3001 MOVLW 1$00F8 $00D2 MOVWF STACK_2$00F9 $0852 MOVF STACK_2, 0$00FA $3A01 XORLW 1$00FB $1D03 BTFSS STATUS, Z$00FC $28FE GOTO Home_Automation_L_57$00FD $ Home_Automation_L_58:$00FD $28FF GOTO Home_Automation_L_56$00FE $ Home_Automation_L_57:$00FE $28DA GOTO Home_Automation_L_54$00FF $ Home_Automation_L_56:

$00FF $ Home_Automation_L_64:

$00FF $ Home_Automation_L_65:$00FF $3000 MOVLW 0$0100 $1A85 BTFSC PORTA, 5$0101 $3001 MOVLW 1$0102 $00D2 MOVWF STACK_2$0103 $0852 MOVF STACK_2, 0$0104 $3A00 XORLW 0$0105 $1D03 BTFSS STATUS, Z$0106 $2908 GOTO Home_Automation_L_67$0107 $ Home_Automation_L_68:$0107 $2909 GOTO Home_Automation_L_66$0108 $ Home_Automation_L_67:$0108 $28FF GOTO Home_Automation_L_64$0109 $ Home_Automation_L_66:

$0109 $ Home_Automation_L_69:$0109 $1687 BSF PORTC, 5$010A $ Home_Automation_L_70:

$0119 $1287 BCF PORTC, 5$011A $ Home_Automation_L_72:

$011A $0805 MOVF PORTA, 0$011B $00AA MOVWF _tempporta

$011C $082A MOVF _tempporta, 0$011D $00AB MOVWF FARG_calculateporta$011E $2004 CALL _calculateporta

$011F $0820 MOVF _inporta, 0$0120 $3A0A XORLW 10$0121 $1D03 BTFSS STATUS, Z$0122 $2926 GOTO Home_Automation_L_74$0123 $ Home_Automation_L_73:

$0123 $01A4 CLRF _temppw$0124 $01A5 CLRF _temppw+1

$0125 $28A6 GOTO _main_chkpw$0126 $ Home_Automation_L_74:

GCOEC/INSTRUMENTATION/2012-13 Page 20

Page 21: Project Report on home automation

HOME AUTOMATION SYSTEM

$0126 $ Home_Automation_L_75:

$0126 $ Home_Automation_L_78:$0126 $0823 MOVF _digitno, 0$0127 $3A01 XORLW 1$0128 $1D03 BTFSS STATUS, Z$0129 $2939 GOTO Home_Automation_L_79$012A $ Home_Automation_L_77:

$012A $0820 MOVF _inporta, 0$012B $00D0 MOVWF STACK_0$012C $01D1 CLRF STACK_0+1$012D $30E8 MOVLW 232$012E $00D4 MOVWF STACK_4$012F $3003 MOVLW 3$0130 $00D5 MOVWF STACK_4+1$0131 $2062 CALL _mul_16x16_u$0132 $0850 MOVF STACK_0, 0$0133 $07A4 ADDWF _temppw, 1$0134 $0851 MOVF STACK_0+1, 0$0135 $1803 BTFSC STATUS, C$0136 $3F01 ADDLW 1$0137 $07A5 ADDWF _temppw+1, 1$0138 $296B GOTO Home_Automation_L_76$0139 $ Home_Automation_L_79:

$0139 $ Home_Automation_L_81:$0139 $0823 MOVF _digitno, 0$013A $3A02 XORLW 2$013B $1D03 BTFSS STATUS, Z$013C $294B GOTO Home_Automation_L_82$013D $ Home_Automation_L_80:

$013D $0820 MOVF _inporta, 0$013E $00D0 MOVWF STACK_0$013F $01D1 CLRF STACK_0+1$0140 $3064 MOVLW 100$0141 $00D4 MOVWF STACK_4$0142 $01D5 CLRF STACK_4+1$0143 $2062 CALL _mul_16x16_u$0144 $0850 MOVF STACK_0, 0$0145 $07A4 ADDWF _temppw, 1$0146 $0851 MOVF STACK_0+1, 0$0147 $1803 BTFSC STATUS, C$0148 $3F01 ADDLW 1$0149 $07A5 ADDWF _temppw+1, 1$014A $296B GOTO Home_Automation_L_76$014B $ Home_Automation_L_82:

$014B $ Home_Automation_L_84:$014B $0823 MOVF _digitno, 0$014C $3A03 XORLW 3$014D $1D03 BTFSS STATUS, Z$014E $295D GOTO Home_Automation_L_85$014F $ Home_Automation_L_83:

$014F $0820 MOVF _inporta, 0$0150 $00D0 MOVWF STACK_0$0151 $01D1 CLRF STACK_0+1$0152 $300A MOVLW 10

GCOEC/INSTRUMENTATION/2012-13 Page 21

Page 22: Project Report on home automation

HOME AUTOMATION SYSTEM

$0153 $00D4 MOVWF STACK_4$0154 $01D5 CLRF STACK_4+1$0155 $2062 CALL _mul_16x16_u$0156 $0850 MOVF STACK_0, 0$0157 $07A4 ADDWF _temppw, 1$0158 $0851 MOVF STACK_0+1, 0$0159 $1803 BTFSC STATUS, C$015A $3F01 ADDLW 1$015B $07A5 ADDWF _temppw+1, 1$015C $296B GOTO Home_Automation_L_76$015D $ Home_Automation_L_85:

$015D $ Home_Automation_L_87:$015D $0823 MOVF _digitno, 0$015E $3A04 XORLW 4$015F $1D03 BTFSS STATUS, Z$0160 $296B GOTO Home_Automation_L_88$0161 $ Home_Automation_L_86:

$0161 $0820 MOVF _inporta, 0$0162 $00D0 MOVWF STACK_0$0163 $01D1 CLRF STACK_0+1$0164 $0850 MOVF STACK_0, 0$0165 $07A4 ADDWF _temppw, 1$0166 $0851 MOVF STACK_0+1, 0$0167 $1803 BTFSC STATUS, C$0168 $3F01 ADDLW 1$0169 $07A5 ADDWF _temppw+1, 1$016A $296B GOTO Home_Automation_L_76$016B $ Home_Automation_L_88:$016B $ Home_Automation_L_76:

$016B $0823 MOVF _digitno, 0$016C $3A04 XORLW 4$016D $1903 BTFSC STATUS, Z$016E $2971 GOTO Home_Automation_L_53$016F $ Home_Automation_L_51:$016F $0AA3 INCF _digitno, 1$0170 $28D5 GOTO Home_Automation_L_50$0171 $ Home_Automation_L_53:

$0171 $0825 MOVF _temppw+1, 0$0172 $0622 XORWF _pw+1, 0$0173 $1D03 BTFSS STATUS, Z$0174 $2977 GOTO L_main_0$0175 $0821 MOVF _pw, 0$0176 $0624 XORWF _temppw, 0$0177 $ L_main_0:$0177 $1D03 BTFSS STATUS, Z$0178 $299C GOTO Home_Automation_L_90$0179 $ Home_Automation_L_89:

$0179 $01A4 CLRF _temppw$017A $01A5 CLRF _temppw+1

$017B $1287 BCF PORTC, 5$017C $ Home_Automation_L_93:

$019B $299F GOTO _main_showstatus

$019C $ Home_Automation_L_90:

GCOEC/INSTRUMENTATION/2012-13 Page 22

Page 23: Project Report on home automation

HOME AUTOMATION SYSTEM

$019C $01A4 CLRF _temppw$019D $01A5 CLRF _temppw+1

$019E $28A6 GOTO _main_chkpw

$019F $ _main_showstatus:

$019F $01A4 CLRF _temppw$01A0 $01A5 CLRF _temppw+1$01A1 $ Home_Automation_L_94:$01A1 $0825 MOVF _temppw+1, 0$01A2 $3C00 SUBLW 0$01A3 $1D03 BTFSS STATUS, Z$01A4 $29A7 GOTO L_main_1$01A5 $0824 MOVF _temppw, 0$01A6 $3C04 SUBLW 4$01A7 $ L_main_1:$01A7 $1C03 BTFSS STATUS, C$01A8 $2A31 GOTO Home_Automation_L_97

$01A9 $3001 MOVLW 1$01AA $00D2 MOVWF STACK_2$01AB $0824 MOVF _temppw, 0$01AC $00D3 MOVWF STACK_3$01AD $0852 MOVF STACK_2, 0$01AE $00D0 MOVWF STACK_0$01AF $0853 MOVF STACK_3, 0$01B0 $ L_main_2:$01B0 $1903 BTFSC STATUS, Z$01B1 $29B6 GOTO L_main_3$01B2 $0DD0 RLF STACK_0, 1$01B3 $1050 BCF STACK_0, 0$01B4 $3FFF ADDLW 255$01B5 $29B0 GOTO L_main_2$01B6 $ L_main_3:$01B6 $0807 MOVF PORTC, 0$01B7 $05D0 ANDWF STACK_0, 1$01B8 $0850 MOVF STACK_0, 0$01B9 $00D2 MOVWF STACK_2$01BA $0853 MOVF STACK_3, 0$01BB $ L_main_4:$01BB $1903 BTFSC STATUS, Z$01BC $29C1 GOTO L_main_5$01BD $0CD2 RRF STACK_2, 1$01BE $13D2 BCF STACK_2, 7$01BF $3FFF ADDLW 255$01C0 $29BB GOTO L_main_4$01C1 $ L_main_5:$01C1 $0852 MOVF STACK_2, 0$01C2 $3A00 XORLW 0$01C3 $1D03 BTFSS STATUS, Z$01C4 $29E6 GOTO Home_Automation_L_99$01C5 $ Home_Automation_L_98:

$01C5 $ Home_Automation_L_101:$01C5 $1687 BSF PORTC, 5$01C6 $ Home_Automation_L_102:

$01C6 $3003 MOVLW 3$01C7 $00DC MOVWF STACK_12

GCOEC/INSTRUMENTATION/2012-13 Page 23

Page 24: Project Report on home automation

HOME AUTOMATION SYSTEM

$01C8 $30FF MOVLW 255$01C9 $00DB MOVWF STACK_11$01CA $30FF MOVLW 255$01CB $00DA MOVWF STACK_10$01CC $0BDC DECFSZ STACK_12, F$01CD $29CF GOTO $+2$01CE $29D6 GOTO $+8$01CF $0BDB DECFSZ STACK_11, F$01D0 $29D2 GOTO $+2$01D1 $29D5 GOTO $+4$01D2 $0BDA DECFSZ STACK_10, F$01D3 $29D2 GOTO $-1$01D4 $29CF GOTO $-5$01D5 $29CC GOTO $-9$01D6 $308C MOVLW 140$01D7 $00DB MOVWF STACK_11$01D8 $30FF MOVLW 255$01D9 $00DA MOVWF STACK_10$01DA $0BDB DECFSZ STACK_11, F$01DB $29DD GOTO $+2$01DC $29E0 GOTO $+4$01DD $0BDA DECFSZ STACK_10, F$01DE $29DD GOTO $-1$01DF $29DA GOTO $-5$01E0 $30A1 MOVLW 161$01E1 $00DA MOVWF STACK_10$01E2 $0BDA DECFSZ STACK_10, F$01E3 $29E2 GOTO $-1$01E4 $0000 NOP$01E5 $2A05 GOTO Home_Automation_L_100

$01E6 $ Home_Automation_L_99:

$01E6 $ Home_Automation_L_103:$01E6 $1687 BSF PORTC, 5$01E7 $ Home_Automation_L_104:

$01E7 $3002 MOVLW 2$01E8 $00DC MOVWF STACK_12$01E9 $30FF MOVLW 255$01EA $00DB MOVWF STACK_11$01EB $30FF MOVLW 255$01EC $00DA MOVWF STACK_10$01ED $0BDC DECFSZ STACK_12, F$01EE $29F0 GOTO $+2$01EF $29F7 GOTO $+8$01F0 $0BDB DECFSZ STACK_11, F$01F1 $29F3 GOTO $+2$01F2 $29F6 GOTO $+4$01F3 $0BDA DECFSZ STACK_10, F$01F4 $29F3 GOTO $-1$01F5 $29F0 GOTO $-5$01F6 $29ED GOTO $-9$01F7 $3006 MOVLW 6$01F8 $00DB MOVWF STACK_11$01F9 $30FF MOVLW 255$01FA $00DA MOVWF STACK_10$01FB $0BDB DECFSZ STACK_11, F$01FC $29FE GOTO $+2$01FD $2A01 GOTO $+4$01FE $0BDA DECFSZ STACK_10, F

GCOEC/INSTRUMENTATION/2012-13 Page 24

Page 25: Project Report on home automation

HOME AUTOMATION SYSTEM

$01FF $29FE GOTO $-1$0200 $29FB GOTO $-5$0201 $300A MOVLW 10$0202 $00DA MOVWF STACK_10$0203 $0BDA DECFSZ STACK_10, F$0204 $2A03 GOTO $-1

$0205 $ Home_Automation_L_100:

$0205 $1287 BCF PORTC, 5$0206 $ Home_Automation_L_106:

$0225 $3000 MOVLW 0$0226 $0625 XORWF _temppw+1, 0$0227 $1D03 BTFSS STATUS, Z$0228 $2A2B GOTO L_main_6$0229 $3004 MOVLW 4$022A $0624 XORWF _temppw, 0$022B $ L_main_6:$022B $1903 BTFSC STATUS, Z$022C $2A31 GOTO Home_Automation_L_97$022D $ Home_Automation_L_95:$022D $0AA4 INCF _temppw, 1$022E $1903 BTFSC STATUS, Z$022F $0AA5 INCF _temppw+1, 1$0230 $29A1 GOTO Home_Automation_L_94$0231 $ Home_Automation_L_97:

$0231 $ _main_selectdevice:

$0231 $01A4 CLRF _temppw$0232 $01A5 CLRF _temppw+1$0233 $ Home_Automation_L_107:$0233 $0825 MOVF _temppw+1, 0$0234 $3C00 SUBLW 0$0235 $1D03 BTFSS STATUS, Z$0236 $2A39 GOTO L_main_7$0237 $0824 MOVF _temppw, 0$0238 $3C64 SUBLW 100$0239 $ L_main_7:$0239 $1C03 BTFSS STATUS, C$023A $2A6E GOTO Home_Automation_L_110

$023B $3000 MOVLW 0$023C $1A85 BTFSC PORTA, 5$023D $3001 MOVLW 1$023E $00D2 MOVWF STACK_2$023F $0852 MOVF STACK_2, 0$0240 $3A01 XORLW 1$0241 $1D03 BTFSS STATUS, Z$0242 $2A53 GOTO Home_Automation_L_112$0243 $ Home_Automation_L_111:

$0243 $ Home_Automation_L_114:

$0243 $ Home_Automation_L_115:$0243 $3000 MOVLW 0$0244 $1A85 BTFSC PORTA, 5$0245 $3001 MOVLW 1

GCOEC/INSTRUMENTATION/2012-13 Page 25

Page 26: Project Report on home automation

HOME AUTOMATION SYSTEM

$0246 $00D2 MOVWF STACK_2$0247 $0852 MOVF STACK_2, 0$0248 $3A00 XORLW 0$0249 $1D03 BTFSS STATUS, Z$024A $2A4C GOTO Home_Automation_L_117$024B $ Home_Automation_L_118:$024B $2A4D GOTO Home_Automation_L_116$024C $ Home_Automation_L_117:$024C $2A43 GOTO Home_Automation_L_114$024D $ Home_Automation_L_116:

$024D $0805 MOVF PORTA, 0$024E $00AA MOVWF _tempporta

$024F $082A MOVF _tempporta, 0$0250 $00AB MOVWF FARG_calculateporta$0251 $2004 CALL _calculateporta

$0252 $2A6F GOTO _main_selecteddevicestatus$0253 $ Home_Automation_L_112:

$0253 $ Home_Automation_L_113:

$0253 $3082 MOVLW 130$0254 $00DB MOVWF STACK_11$0255 $30FF MOVLW 255$0256 $00DA MOVWF STACK_10$0257 $0BDB DECFSZ STACK_11, F$0258 $2A5A GOTO $+2$0259 $2A5D GOTO $+4$025A $0BDA DECFSZ STACK_10, F$025B $2A5A GOTO $-1$025C $2A57 GOTO $-5$025D $3087 MOVLW 135$025E $00DA MOVWF STACK_10$025F $0BDA DECFSZ STACK_10, F$0260 $2A5F GOTO $-1$0261 $0000 NOP

$0262 $3000 MOVLW 0$0263 $0625 XORWF _temppw+1, 0$0264 $1D03 BTFSS STATUS, Z$0265 $2A68 GOTO L_main_8$0266 $3064 MOVLW 100$0267 $0624 XORWF _temppw, 0$0268 $ L_main_8:$0268 $1903 BTFSC STATUS, Z$0269 $2A6E GOTO Home_Automation_L_110$026A $ Home_Automation_L_108:$026A $0AA4 INCF _temppw, 1$026B $1903 BTFSC STATUS, Z$026C $0AA5 INCF _temppw+1, 1$026D $2A33 GOTO Home_Automation_L_107$026E $ Home_Automation_L_110:

$026E $28A6 GOTO _main_chkpw

$026F $ _main_selecteddevicestatus:

$026F $0820 MOVF _inporta, 0$0270 $3A0B XORLW 11

GCOEC/INSTRUMENTATION/2012-13 Page 26

Page 27: Project Report on home automation

HOME AUTOMATION SYSTEM

$0271 $1D03 BTFSS STATUS, Z$0272 $2A76 GOTO Home_Automation_L_120$0273 $ Home_Automation_L_119:

$0273 $30FF MOVLW 255$0274 $0087 MOVWF PORTC

$0275 $299F GOTO _main_showstatus$0276 $ Home_Automation_L_120:

$0276 $ Home_Automation_L_121:

$0276 $0820 MOVF _inporta, 0$0277 $3A0C XORLW 12$0278 $1D03 BTFSS STATUS, Z$0279 $2A7C GOTO Home_Automation_L_123$027A $ Home_Automation_L_122:

$027A $0187 CLRF PORTC, 1

$027B $299F GOTO _main_showstatus$027C $ Home_Automation_L_123:

$027C $ Home_Automation_L_124:

$027C $0820 MOVF _inporta, 0$027D $3A0A XORLW 10$027E $1D03 BTFSS STATUS, Z$027F $2A81 GOTO Home_Automation_L_126$0280 $ Home_Automation_L_125:

$0280 $28A6 GOTO _main_chkpw$0281 $ Home_Automation_L_126:

$0281 $ Home_Automation_L_127:

$02A0 $3002 MOVLW 2$02A1 $00A6 MOVWF _tempdeviceno$02A2 $ Home_Automation_L_128:$02A2 $0826 MOVF _tempdeviceno, 0$02A3 $3C06 SUBLW 6$02A4 $1C03 BTFSS STATUS, C$02A5 $2B32 GOTO Home_Automation_L_131

$02A6 $0826 MOVF _tempdeviceno, 0$02A7 $0620 XORWF _inporta, 0$02A8 $1D03 BTFSS STATUS, Z$02A9 $2B2C GOTO Home_Automation_L_133$02AA $ Home_Automation_L_132:

$02AA $0826 MOVF _tempdeviceno, 0$02AB $00A7 MOVWF _deviceno

$02AC $3002 MOVLW 2$02AD $0226 SUBWF _tempdeviceno, 0$02AE $00D0 MOVWF STACK_0$02AF $3001 MOVLW 1$02B0 $00D2 MOVWF STACK_2$02B1 $0850 MOVF STACK_0, 0

GCOEC/INSTRUMENTATION/2012-13 Page 27

Page 28: Project Report on home automation

HOME AUTOMATION SYSTEM

$02B2 $00D3 MOVWF STACK_3$02B3 $0852 MOVF STACK_2, 0$02B4 $00D0 MOVWF STACK_0$02B5 $0853 MOVF STACK_3, 0$02B6 $ L_main_9:$02B6 $1903 BTFSC STATUS, Z$02B7 $2ABC GOTO L_main_10$02B8 $0DD0 RLF STACK_0, 1$02B9 $1050 BCF STACK_0, 0$02BA $3FFF ADDLW 255$02BB $2AB6 GOTO L_main_9$02BC $ L_main_10:$02BC $0807 MOVF PORTC, 0$02BD $05D0 ANDWF STACK_0, 1$02BE $0850 MOVF STACK_0, 0$02BF $00D2 MOVWF STACK_2$02C0 $0853 MOVF STACK_3, 0$02C1 $ L_main_11:$02C1 $1903 BTFSC STATUS, Z$02C2 $2AC7 GOTO L_main_12$02C3 $0CD2 RRF STACK_2, 1$02C4 $13D2 BCF STACK_2, 7$02C5 $3FFF ADDLW 255$02C6 $2AC1 GOTO L_main_11$02C7 $ L_main_12:$02C7 $0852 MOVF STACK_2, 0$02C8 $3A00 XORLW 0$02C9 $1D03 BTFSS STATUS, Z$02CA $2AEC GOTO Home_Automation_L_136$02CB $ Home_Automation_L_135:

$02CB $ Home_Automation_L_138:$02CB $1687 BSF PORTC, 5$02CC $ Home_Automation_L_139:

$030C $3003 MOVLW 3$030D $00DC MOVWF STACK_12$030E $30FF MOVLW 255$030F $00DB MOVWF STACK_11$0310 $30FF MOVLW 255$0311 $00DA MOVWF STACK_10$0312 $0BDC DECFSZ STACK_12, F$0313 $2B15 GOTO $+2$0314 $2B1C GOTO $+8$0315 $0BDB DECFSZ STACK_11, F$0316 $2B18 GOTO $+2$0317 $2B1B GOTO $+4$0318 $0BDA DECFSZ STACK_10, F$0319 $2B18 GOTO $-1$031A $2B15 GOTO $-5$031B $2B12 GOTO $-9$031C $308C MOVLW 140$031D $00DB MOVWF STACK_11$031E $30FF MOVLW 255$031F $00DA MOVWF STACK_10$0320 $0BDB DECFSZ STACK_11, F$0321 $2B23 GOTO $+2$0322 $2B26 GOTO $+4$0323 $0BDA DECFSZ STACK_10, F

GCOEC/INSTRUMENTATION/2012-13 Page 28

Page 29: Project Report on home automation

HOME AUTOMATION SYSTEM

$0324 $2B23 GOTO $-1$0325 $2B20 GOTO $-5$0326 $30A1 MOVLW 161$0327 $00DA MOVWF STACK_10$0328 $0BDA DECFSZ STACK_10, F$0329 $2B28 GOTO $-1$032A $0000 NOP

$032C $0826 MOVF _tempdeviceno, 0$032D $3A06 XORLW 6$032E $1903 BTFSC STATUS, Z$032F $2B32 GOTO Home_Automation_L_131$0330 $ Home_Automation_L_129:$0330 $0AA6 INCF _tempdeviceno, 1$0331 $2AA2 GOTO Home_Automation_L_128$0332 $ Home_Automation_L_131:

$0332 $299F GOTO _main_showstatus

$0333 $ _main_makeonoff:

$0333 $01A4 CLRF _temppw$0334 $01A5 CLRF _temppw+1$0335 $ Home_Automation_L_144:$0335 $0825 MOVF _temppw+1, 0$0336 $3C00 SUBLW 0$0337 $1D03 BTFSS STATUS, Z$0338 $2B3B GOTO L_main_13$0339 $0824 MOVF _temppw, 0$033A $3C64 SUBLW 100$033B $ L_main_13:$033B $1C03 BTFSS STATUS, C$033C $2BE5 GOTO Home_Automation_L_147

$033D $3000 MOVLW 0$033E $1A85 BTFSC PORTA, 5$033F $3001 MOVLW 1$0340 $00D2 MOVWF STACK_2$0341 $0852 MOVF STACK_2, 0$0342 $3A01 XORLW 1$0343 $1D03 BTFSS STATUS, Z$0344 $2BCA GOTO Home_Automation_L_149$0345 $ Home_Automation_L_148:

$0345 $ Home_Automation_L_151:

$0345 $ Home_Automation_L_152:$0345 $3000 MOVLW 0$0346 $1A85 BTFSC PORTA, 5$0347 $3001 MOVLW 1$0348 $00D2 MOVWF STACK_2$0349 $0852 MOVF STACK_2, 0$034A $3A00 XORLW 0$034B $1D03 BTFSS STATUS, Z$034C $2B4E GOTO Home_Automation_L_154$034D $ Home_Automation_L_155:$034D $2B4F GOTO Home_Automation_L_153$034E $ Home_Automation_L_154:$034E $2B45 GOTO Home_Automation_L_151$034F $ Home_Automation_L_153:

GCOEC/INSTRUMENTATION/2012-13 Page 29

Page 30: Project Report on home automation

HOME AUTOMATION SYSTEM

$034F $0805 MOVF PORTA, 0$0350 $00AA MOVWF _tempporta

$0351 $082A MOVF _tempporta, 0$0352 $00AB MOVWF FARG_calculateporta$0353 $2004 CALL _calculateporta

$0354 $0820 MOVF _inporta, 0$0355 $3C01 SUBLW 1$0356 $1803 BTFSC STATUS, C$0357 $2B5D GOTO Home_Automation_L_157$0358 $ Home_Automation_L_156:

$0358 $0820 MOVF _inporta, 0$0359 $3A0A XORLW 10$035A $1903 BTFSC STATUS, Z$035B $2B5D GOTO Home_Automation_L_160$035C $ Home_Automation_L_159:

$035C $2A6F GOTO _main_selecteddevicestatus$035D $ Home_Automation_L_160:

$035D $ Home_Automation_L_161:$035D $ Home_Automation_L_157:

$035D $ Home_Automation_L_158:

$035D $0820 MOVF _inporta, 0$035E $3A0A XORLW 10$035F $1D03 BTFSS STATUS, Z$0360 $2B94 GOTO Home_Automation_L_163$0361 $ Home_Automation_L_162:

$0361 $3002 MOVLW 2$0362 $0227 SUBWF _deviceno, 0$0363 $00D4 MOVWF STACK_4$0364 $3001 MOVLW 1$0365 $00D3 MOVWF STACK_3$0366 $0854 MOVF STACK_4, 0$0367 $00D2 MOVWF STACK_2$0368 $0853 MOVF STACK_3, 0$0369 $00D0 MOVWF STACK_0$036A $0852 MOVF STACK_2, 0$036B $ L_main_14:$036B $1903 BTFSC STATUS, Z$036C $2B71 GOTO L_main_15$036D $0DD0 RLF STACK_0, 1$036E $1050 BCF STACK_0, 0$036F $3FFF ADDLW 255$0370 $2B6B GOTO L_main_14$0371 $ L_main_15:$0371 $09D0 COMF STACK_0, F$0372 $0850 MOVF STACK_0, 0$0373 $0587 ANDWF PORTC, 1$0374 $ Home_Automation_L_166:

$0393 $299F GOTO _main_showstatus$0394 $ Home_Automation_L_163:

GCOEC/INSTRUMENTATION/2012-13 Page 30

Page 31: Project Report on home automation

HOME AUTOMATION SYSTEM

$0394 $ Home_Automation_L_164:

$0394 $0820 MOVF _inporta, 0$0395 $3A01 XORLW 1$0396 $1D03 BTFSS STATUS, Z$0397 $2BCA GOTO Home_Automation_L_168$0398 $ Home_Automation_L_167:

$0398 $3002 MOVLW 2$0399 $0227 SUBWF _deviceno, 0$039A $00D4 MOVWF STACK_4$039B $ Home_Automation_L_170:$039B $3001 MOVLW 1$039C $00D3 MOVWF STACK_3$039D $0854 MOVF STACK_4, 0$039E $00D2 MOVWF STACK_2$039F $0853 MOVF STACK_3, 0$03A0 $00D0 MOVWF STACK_0$03A1 $0852 MOVF STACK_2, 0$03A2 $ L_main_16:$03A2 $1903 BTFSC STATUS, Z$03A3 $2BA8 GOTO L_main_17$03A4 $0DD0 RLF STACK_0, 1$03A5 $1050 BCF STACK_0, 0$03A6 $3FFF ADDLW 255$03A7 $2BA2 GOTO L_main_16$03A8 $ L_main_17:$03A8 $0850 MOVF STACK_0, 0$03A9 $0487 IORWF PORTC, 1$03AA $ Home_Automation_L_171:

$03AA $3003 MOVLW 3$03AB $00DC MOVWF STACK_12$03AC $30FF MOVLW 255$03AD $00DB MOVWF STACK_11$03AE $30FF MOVLW 255$03AF $00DA MOVWF STACK_10$03B0 $0BDC DECFSZ STACK_12, F$03B1 $2BB3 GOTO $+2$03B2 $2BBA GOTO $+8$03B3 $0BDB DECFSZ STACK_11, F$03B4 $2BB6 GOTO $+2$03B5 $2BB9 GOTO $+4$03B6 $0BDA DECFSZ STACK_10, F$03B7 $2BB6 GOTO $-1$03B8 $2BB3 GOTO $-5$03B9 $2BB0 GOTO $-9$03BA $308C MOVLW 140$03BB $00DB MOVWF STACK_11$03BC $30FF MOVLW 255$03BD $00DA MOVWF STACK_10$03BE $0BDB DECFSZ STACK_11, F$03BF $2BC1 GOTO $+2$03C0 $2BC4 GOTO $+4$03C1 $0BDA DECFSZ STACK_10, F$03C2 $2BC1 GOTO $-1$03C3 $2BBE GOTO $-5$03C4 $30A1 MOVLW 161$03C5 $00DA MOVWF STACK_10$03C6 $0BDA DECFSZ STACK_10, F$03C7 $2BC6 GOTO $-1

GCOEC/INSTRUMENTATION/2012-13 Page 31

Page 32: Project Report on home automation

HOME AUTOMATION SYSTEM

$03C8 $0000 NOP

$03C9 $299F GOTO _main_showstatus$03CA $ Home_Automation_L_168:

$03CA $ Home_Automation_L_169:$03CA $ Home_Automation_L_149:

$03CA $ Home_Automation_L_150:

$03CA $3082 MOVLW 130$03CB $00DB MOVWF STACK_11$03CC $30FF MOVLW 255$03CD $00DA MOVWF STACK_10$03CE $0BDB DECFSZ STACK_11, F$03CF $2BD1 GOTO $+2$03D0 $2BD4 GOTO $+4$03D1 $0BDA DECFSZ STACK_10, F$03D2 $2BD1 GOTO $-1$03D3 $2BCE GOTO $-5$03D4 $3087 MOVLW 135$03D5 $00DA MOVWF STACK_10$03D6 $0BDA DECFSZ STACK_10, F$03D7 $2BD6 GOTO $-1$03D8 $0000 NOP

$03D9 $3000 MOVLW 0$03DA $0625 XORWF _temppw+1, 0$03DB $1D03 BTFSS STATUS, Z$03DC $2BDF GOTO L_main_18$03DD $3064 MOVLW 100$03DE $0624 XORWF _temppw, 0$03DF $ L_main_18:$03DF $1903 BTFSC STATUS, Z$03E0 $2BE5 GOTO Home_Automation_L_147$03E1 $ Home_Automation_L_145:$03E1 $0AA4 INCF _temppw, 1$03E2 $1903 BTFSC STATUS, Z$03E3 $0AA5 INCF _temppw+1, 1$03E4 $2B35 GOTO Home_Automation_L_144$03E5 $ Home_Automation_L_147:

GCOEC/INSTRUMENTATION/2012-13 Page 32

Page 33: Project Report on home automation

HOME AUTOMATION SYSTEM

Image of window while Programming Microcontroller with MicroC

LOGICThe basic logic used that configure the IC MT8870 through making the port D as input. The 4 bit BCD input taken from PinD0, PinD1, PinD3, PinD4. The O/P port is PORTB to drive the relays are port pins PORTB 1 – PORTB 5.As depending on input signals we used the IF ELSE conditions to drive the relays1-5, when signal input is 1. Whereas there is no signal input means no BCD input to microcontroller.

GCOEC/INSTRUMENTATION/2012-13 Page 33

Page 34: Project Report on home automation

HOME AUTOMATION SYSTEM

10.COMPONENT LIST

Component Name Quantity Price(Amount)GSM Mobile Phone 1 `1000Transformer[0-15V, 750mA] 1 `190Microcontroller IC PIC16F676 1 `150

DTMF Decoder IC 1 `38Driver IC ULN2003 1 `35Regulating IC MC7812 1 `20Regulating IC LM7805 1 `18Relays [SPDT, 12V] 5 `126Diode IN4007 4 `8Capacitor [1000 μF, 25V] 1 `25Capacitor [100 μF,25V] 1 `20

Capacitor [10 μF, 50V] 1 `15

Capacitor[0.1 μF, 50V] 6 `30

Capacitor[22pF] 2 `4

Crystal Oscillator 11.0592 MHz

1 `15

Crystal Oscillator 3.57MHz 1 `15Red LED 8 `16Green LED 1 `2Resistance 1KΩ 9 `4.50Resistance 560 Ω 1 `0.50Resistance 330K Ω 1 `0.50Resistance 100K Ω 2 `1Wire main cord 1 `25Connecting wires bundle 1 `30Solder wire 50 gram `75CCB-18[6*6] 1 `40FeCl3 50 gram `35

Soldering Iron 1 `100Hand Drill 1 `1200.8mm bit 5 `301mm bit 1 `35

Total `2223.50

GCOEC/INSTRUMENTATION/2012-13 Page 34

Page 35: Project Report on home automation

HOME AUTOMATION SYSTEM

11. COMPONENT DESCRIPTION

11.1 RESISTORS: -

A Resistor is a heat-dissipating element and in the electronic circuits it is mostly used for either controlling the current in the circuit or developing avoltage drop across it, which could be utilized for many applications. There are various types of resistors, which can be classified according to a number of factors depending upon:

(I) Material used for fabrication(II) Wattage and physical size(III) Intended application(IV) Ambient temperature rating(V) Cost

Basically the resistor can be split in to the following four parts from theconstruction viewpoint.

(1) Base(2) Resistance element(3) Terminals(4) Protective means.Resistors may be classified as(1) Fixed(2) Semi variable(3) Variable resistor.(4) In our project carbon resistors are being used.

11.2 CAPACITORS

The fundamental relation for the capacitance between two flat plates separated by a dielectric material is given by:-

GCOEC/INSTRUMENTATION/2012-13 Page 35

Page 36: Project Report on home automation

HOME AUTOMATION SYSTEM

C=0.08854KA/DWhere: -C= capacitance in pf.K= dielectric constantA=Area per plate in square cm.D=Distance between two plates in cmDesign of capacitor depends on the proper dielectric material withparticular type of application. The dielectric material used for capacitors may be grouped in various classes like Mica, Glass, air, ceramic, paper,Aluminum, electrolyte etc. The value of capacitance never remains constant. It changes with temperature, frequency and aging.

11.3 LED (Light Emitting Diodes)

As its name implies it is a diode, which emits light when forward biased. Charge carrier recombination takes place when electrons from the N-side cross the junction and recombine with the holes on the P side. Electrons are in the higher conduction band on the N side whereas holes are in the lower valence band on the P side. During recombination, some of the energy is given up in the form of heat and light. In the case of semiconductor materials like Gallium arsenide (GaAs), Gallium phoshide (Gap) and Gallium arsenide phoshide (GaAsP) a greater percentage of energy is released during recombination and is given out in the form of light. LED emits no light when junction is reverse biased.

GCOEC/INSTRUMENTATION/2012-13 Page 36

Page 37: Project Report on home automation

HOME AUTOMATION SYSTEM

11.4 TRANSISTOR: -A transistor consists of two junctions formed by sandwiching either ptypeor n-type semiconductor between a pair of opposite types. Accordingly,there are two types of transistors namely: -

(1) n-p-n transistor (2) p-n-p transistor

An n-p-n transistor is composed of two n-type semiconductors separated by a thin section of p type. However a p-n-p transistor is formed by two p sections separated by a thin section of n-type. In each type of transistor the following points may be noted.

1. There are two p-n junctions; therefore a transistor may be regarded ascombination of two diodes connected back to back.2. There are three terminals taken from each type of semiconductor.3. The middle section is a very thin layer, which is the most importantfactor in the functioning of a transistor.Transistor can be used as an Amplifier also. A transistor raises the strength of a weak signal and thus acts as an amplifier. The weak signal is applied between emitter base junction and output is taken across the load RC connected in the collector circuit (in common emitter configuration).

11.5 TRANSFORMER

Definition: - The transformer is a static electro-magnetic device that transformsone alternating voltage (current) into another voltage (current). However, powerremains the same during the transformation. Transformers play a major role in the transmission and distribution of ac power.

GCOEC/INSTRUMENTATION/2012-13 Page 37

Page 38: Project Report on home automation

HOME AUTOMATION SYSTEM

Principle: - Transformer works on the principle of mutual induction. A transformer consists of laminated magnetic core forming the magnetic frame.Primary and secondary coils are wound upon the two cores of the magnetic frame, linked by the common magnetic flux. When an alternating voltage is applied across the primary coil, a current flows in the primary coil producing magnetic flux in the transformer core. This flux induces voltage in secondary coil.

Transformers are classified as: -

(a) Based on position of the windings with respect to core i.e.(1) Core type transformer(2) Shell type transformer

(b) Transformation ratio:(1) Step up transformer(2) Step down transformer

(a) Core & shell types: Transformer is simplest electrical machine, whichconsists of windings on the laminated magnetic core. There are two possibilities of putting up the windings on the core.(1) Winding encircle the core in the case of core type transformer(2) Cores encircle the windings on shell type transformer.

(b) Step up and Step down: In this Voltage transformation takes place according to whether the Primary is high voltage coil or a low voltage coil.(1) Lower to higher-> Step up(2) Higher to lower-> Step down

11.6 DIODES

It is a two terminal device consisting of a P-N junction formed either ofGe or Si crystal. The P and N type regions are referred to as anode andcathode respectively. Commercially available diodes usually have somemeans to indicate which lead is P and which lead is N.

GCOEC/INSTRUMENTATION/2012-13 Page 38

Page 39: Project Report on home automation

HOME AUTOMATION SYSTEM

11.7 RELAY

In this circuit a 12V sugar cube relay is used. In sugar cube relay, insulatedcopper wire coil is used to magnetize and attract the plunger .The plunger is normally connected to N/C terminal. A spring is connected to attract theplunger upper side. When output is received by relay, the plunger is attracted and the bulb glows.

GCOEC/INSTRUMENTATION/2012-13 Page 39

Page 40: Project Report on home automation

HOME AUTOMATION SYSTEM

GCOEC/INSTRUMENTATION/2012-13 Page 40

Page 41: Project Report on home automation

HOME AUTOMATION SYSTEM

GCOEC/INSTRUMENTATION/2012-13 Page 41

Page 42: Project Report on home automation

HOME AUTOMATION SYSTEM

GCOEC/INSTRUMENTATION/2012-13 Page 42

Page 43: Project Report on home automation

HOME AUTOMATION SYSTEM

GCOEC/INSTRUMENTATION/2012-13 Page 43

Page 44: Project Report on home automation

HOME AUTOMATION SYSTEM

GCOEC/INSTRUMENTATION/2012-13 Page 44

Page 45: Project Report on home automation

HOME AUTOMATION SYSTEM

GCOEC/INSTRUMENTATION/2012-13 Page 45

Page 46: Project Report on home automation

HOME AUTOMATION SYSTEM

GCOEC/INSTRUMENTATION/2012-13 Page 46

Page 47: Project Report on home automation

HOME AUTOMATION SYSTEM

GCOEC/INSTRUMENTATION/2012-13 Page 47

Page 48: Project Report on home automation

HOME AUTOMATION SYSTEM

GCOEC/INSTRUMENTATION/2012-13 Page 48

Page 49: Project Report on home automation

HOME AUTOMATION SYSTEM

12 P.C.B. MANUFACTURING PROCESS

It is an important process in the fabrication of electronic equipment. Thedesign of PCBs (Printed Circuit Boards) depends on circuit requirements like noise immunity, working frequency and voltage levels etc. High power PCBs requires a special design strategy. The fabrication process to the printed circuit board will determine to a large extent the price and reliability of the equipment. A common target aimed is the fabrication of small series of highly reliable professional quality PCBs with low investment. The target becomes especially important for customer tailored equipments in the area of industrial electronics. The layout of a PCB has to incorporate all the information of the board before one can go on the artwork preparation. This means that a concept which clearly defines all the details of the circuit and partly defines the final equipment, is prerequisite before the actual lay out can start. The detailed circuit diagram is very important for the layout designer but he must also be familiar with the design concept and with the philosophy behind the equipment.

PCB BOARD TYPES:

The two most popular PCB types are:

1. Single Sided BoardsThe single sided PCBs are mostly used in entertainment electronicswhere manufacturing costs have to be kept at a minimum. However inindustrial electronics cost factors cannot be neglected and single sidedboards should be used wherever a particular circuit can beaccommodated on such boards.

2. Double Sided BoardsDouble-sided PCBs can be made with or without plated through holes.The production of boards with plated through holes is fairly expensive.Therefore plated through hole boards are only chosen where the circuitcomplexities and density of components does not leave any otherchoice.

GCOEC/INSTRUMENTATION/2012-13 Page 49

Page 50: Project Report on home automation

HOME AUTOMATION SYSTEM

13. DESIGN SPECIFICATION

(I) STEPS TAKEN WHILE PREPARING CIRCUIT

13.1 PCB DESIGNING

The main purpose of printed circuit is in the routing of electric currentsand signal through a thin copper layer that is bounded firmly to an insulating base material sometimes called the substrate. This base is manufactured with integrally bounded layers of thin copper foil which has to be partly etched or removed to arrive at a pre-designed pattern to suit the circuit connections or other applications as required. From the constructor’s point of view, the main attraction of using PCB is its role as the mechanical support for small components. There is less need for complicated and time consuming metal work of chassis contraception except perhaps in providing the final enclosure. Most straight forward circuit designs can be easily converted in to printed wiring layer the thought required to carry out the inversion cab footed high light an possible error that would otherwise be missed in conventional point to point wiring .The finished project is usually neater and truly a work of art. Actual size PCB layout for the circuit shown is drawn on the copperboard. The board is then immersed in FeCl3 solution for 12 hours. In this process only the exposed copper portion is etched out by the solution. Now the petrol washes out the paint and the copper layout on PCB is rubbed with a smooth sand paper slowly and lightly such that only the oxide layers over the Cu are removed. Now the holes are drilled at the respective places according to component layout as shown in figure.

13.2) LAYOUT DESIGN:

When designing the layout one should observe the minimum size(component body length and weight). Before starting to design the layout we need all the required components in hand so that an accurate assessment of space can be made. Other space considerations might also be included from case to case of mounted components over the printed circuit board or to access path of present components.It might be necessary to turn some components around to a differentangular position so that terminals are closer to the connections of the

GCOEC/INSTRUMENTATION/2012-13 Page 50

Page 51: Project Report on home automation

HOME AUTOMATION SYSTEM

components. The scale can be checked by positioning the components on the squared paper. If any connection crosses, then one can reroute to avoid such condition.All common or earth lines should ideally be connected to a commonline routed around the perimeter of the layout. This will act as the groundplane. If possible try to route the outer supply line to the ground plane. Ifpossible try to route the other supply lines around the opposite edge of thelayout through the center. The first set is tearing the circuit to eliminate thecrossover without altering the circuit detail in any way.Plan the layout looking at the topside to this board. First this should betranslated inversely; later for the etching pattern large areas are recommended to maintain good copper adhesion. It is important to bear in mind always that copper track width must be according to the recommended minimum dimensions and allowance must be made for increased width where termination holes are needed. From this aspect, it can become little tricky to negotiate the route to connect small transistors.

There are basically two ways of copper interconnection patternsunderside the board. The first is the removal of only the amount of coppernecessary to isolate the junctions of the components to one another. Thesecond is to make the interconnection pattern looking more like conventional point wiring by routing uniform width of copper from component to component.

13.3) ETCHING PROCESS:

Etching process requires the use of chemicals. Acid resistant dishes andrunning water supply. Ferric chloride is mostly used solution but otheretching materials such as ammonium per sulphate can be used. Nitric acidcan be used but in general it is not used due to poisonous fumes.The pattern prepared is glued to the copper surface of the board using alatex type of adhesive that can be cubed after use. The pattern is laid firmly on the copper using a very sharp knife to cut round the pattern carefully to remove the paper corresponding to the required copper pattern areas. Then apply the resistant solution, which can be a kind of ink solution for the Purpose of maintaining smooth clean outlines as far as possible. While the board is drying, test all the components.Before going to next stage, check the whole pattern and cross check

GCOEC/INSTRUMENTATION/2012-13 Page 51

Page 52: Project Report on home automation

HOME AUTOMATION SYSTEM

with the circuit diagram. Check for any free metal on the copper. The etching bath should be in a glass or enamel disc. If using crystal of ferric- chloride these should be thoroughly dissolved in water to the proportion suggested.There should be 0.5 lt. of water for 125 gm of crystal.To prevent particles of copper hindering further etching, agitate the solutions carefully by gently twisting or rocking the tray. The board should not be left in the bath a moment longer than is needed to remove just the right amount of copper. Inspite of there being a resistive coating there is no protection against etching away through exposed copper edges. This leads to over etching. Have running water ready so that etched board can be removed properly and rinsed. This will halt etching immediately.Drilling is one of those operations that call for great care. For most purposes a 0.5mm drill is used. Drill all holes with this size first those thatneed to be larger can be easily drilled again with the appropriate larger size.

13.4) COMPONENT ASSEMBLY: -

From the greatest variety of electronic components available, whichruns into thousands of different types it, is often a perplexing task to knowwhich is right for a given job.

There could be damage such as hairline crack on PCB. If there are, thenthey can be repaired by soldering a short link of bare copper wire over theaffected part.

The most popular method of holding all the items is to bring the wires far apart after they have been inserted in the appropriate holes. This will hold the component in position ready for soldering.Some components will be considerably larger .So it is best to start mounting the smallest first and progressing through to the largest. Before starting, be certain that no further drilling is likely to be necessary because access may be impossible later.

Next will probably be the resistor, small signal diodes or other similarsize components. Some capacitors are also very small but it would be best to fit these afterwards. When fitting each group of components mark off

GCOEC/INSTRUMENTATION/2012-13 Page 52

Page 53: Project Report on home automation

HOME AUTOMATION SYSTEM

each one on the circuit as it is fitted so that if we have to leave the job we know where to recommence.

Although transistors and integrated circuits are small items there aregood reasons for leaving the soldering of these until the last step. The mainpoint is that these components are very sensitive to heat and if subjected toprolonged application of the soldering iron, they could be internallydamaged.

All the components before mounting are rubbed with sand paper so thatoxide layer is removed from the tips. Now they are mounted according to the component layout.

13.5) SOLDERING: -

This is the operation of joining the components with PCB after thisoperation the circuit will be ready to use to avoid any damage or fault during this operation following care must be taken.

1. A longer duration contact between soldering iron bit & componentslead can exceed the temperature rating of device & cause partial or totaldamage of the device. Hence before soldering we must carefully readthe maximum soldering temperature & soldering time for device.2. The wattage of soldering iron should be selected as minimum aspermissible for that soldering place.3. To protect the devices by leakage current of iron its bit should beearthed properly.4. We should select the soldering wire with proper ratio of Pb & Tn toprovide the suitable melting temperature.5. Proper amount of good quality flux must be applied on the solderingpoint to avoid dry soldering.

GCOEC/INSTRUMENTATION/2012-13 Page 53

Page 54: Project Report on home automation

HOME AUTOMATION SYSTEM

14. WORKING

HOW TO USE?

We have to maintain the uninterrupted power supply to the receiver unit. The mobile phone is connected with the control unit via DTMF decoder IC by means of Headphone of mobile phone.The battery of mobile phone should regularly charge and mobile phone withcontrol unit is kept at the pace where the receiver gets perfect signal strength.The appliances connected are also kept connected with power supply.

WORKING: -

The user dials the mobile number of the receiver unit cell phone by hismobile phone.Once the connection is established by the GSM service provider thecall is automatically attended by receiving unit cell phone because ofauto answering mode.When the call connected user presses the key from 1-7 one by one &send control to the receiving unit.The receiving unit cell phone is connected with DTMF decoderMT8870 hence received DTMF signals are decoded & converted into 4bit o/p.The 4bit converted O/P sent to microcontroller IC where it drivesappropriate relay & hence connected appliance.The appliances connected are being ON/OFF by pressing same keys.We could ON/OFF all appliances at once by pressing key 1 & 0.

GCOEC/INSTRUMENTATION/2012-13 Page 54

Page 55: Project Report on home automation

HOME AUTOMATION SYSTEM

15. FLOWCHART

GCOEC/INSTRUMENTATION/2012-13 Page 55

Page 56: Project Report on home automation

HOME AUTOMATION SYSTEM

16. APPLICATIONS

Our project is very useful in controlling home appliances. Some otherapplications are listed below-

1. As a complementary option of Industrial Automation.2. For security & other equipment control.3. Military & Intelligence operations for switching equipments atdistance.

Advantages:

1. No need to go on field.2. Higher reliability.3. Cost effective.4. Fast efficient.5. Five devices can be controlled by single key command .

FURTHER DEVELOPEMENT

The device can be used in very advance manner. It can develop the deviceas data saving facility, remote applications & user authentication and withsmart biometric access services.

GCOEC/INSTRUMENTATION/2012-13 Page 56

Page 57: Project Report on home automation

HOME AUTOMATION SYSTEM

17. CHRONOLOGY

The following steps have been followed in carrying out the project.

1. Study the books on the relevant topic.

2. Understand the working of the circuit.

3. Prepare the circuit diagram.

4. Prepare the list of components along with their specification. Estimatethe cost and procure them after carrying out market survey.

5. Plan and prepare PCB for mounting all the components.

6. Fix the components on the PCB and solder them.

7. Test the circuit for the desired performance.

8. Trace and rectify faults if any.

9. Give good finish to the unit.

10. Prepare the project report.

GCOEC/INSTRUMENTATION/2012-13 Page 57

Page 58: Project Report on home automation

HOME AUTOMATION SYSTEM

18. BIBILIOGRAPHY

REFERENCE FOR TECHNICAL INFORMATION FROM FOLLOWING BOOKS:

1. DTMF Based Remote Control System - R. Sharma, K. Kumar, andS. Viq, IEEE International Conference ICIT, pp. 2380-2383,December 2006.

2. A phone based Remote Controller for Home- I. Coskun and H.Ardam IEEE Trans.Consumer , vol.44,no. 4,pp. 1291-1297,November 1998

3. Electronics For You

4. Integrated Electronics by Millman & Hawlkiwas.

5. Basic Electronics by J. B. Gupta

6. High Performance Printed Circuit Board – Charles Harper

7. Industrial automation Magazine

REFERENCE FOR ARTICLES & TECHNICAL INFORMATION ONREMOTE ACCESS TERMINAL FROM FOLLOWING SITES:

http://www.google.co.in (Google search engine)http://www.whereisdoc.comhttp://www.electronicsforu.comhttp://electrosofts.com/dtmfhttp://www.electronicprojects.comwww.atmel.com/dyn/resources/prod_documents/doc2543.pdfwww.datasheetcatalog.net/

GCOEC/INSTRUMENTATION/2012-13 Page 58