Está en la página 1de 15

Home appliance control by mobile phone (DTMF)

Organization of report

Chapter I:
1.1 Abstract 1.2 Problem statement 1.3 Operating environment 1.4 Assumptions

Chapter II:
2.1 Review of related literature 2.2 Present scenario 2.3 Present and Future scope

Chapter III:
3.1 System Specifications 3.2 Block Diagram 3.3 Block Diagram description 3.4 Complexities involved

Chapter IV:
4.1 System Schematic 4.2 System Design 4.3 PCB layout 4.4 Component list

Chapter V:
5.1 System Algorithm 5.2 Program Algorithm

Chapter VI:
Performance and evaluation of the system

Refrences

CHAPTER I
1.1 Abstract
The objective of this project is to enable users to remotely control their home appliances and systems using a cell phone-based interface. To access the control unit, the user should send an authentication code along with the required/desired function/action to his/her home control system via GSM. Upon being properly authenticated, the cell phone-based interface at home (control unit) would relay the commands to a microcontroller that would perform the required function/action.

1.2 Problem Statement


The objective of this project is to develop a device that allows for a user to remotely control and monitor multiple home appliances using a cellular phone. This system 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 a microcontroller-based control module that receives its instructions and commands from a cellular phone over the GSM network. The microcontroller then will carry out the issued commands. For security purposes, a means of identification and user authentication will be implemented, and will combine caller identification with a password authorization.

1.3 Operating Environment


The control system will include two separate units: the cellular phone, and the control unit. There will therefore be two operating environments. The cellular phone will operate indoors and outdoors whereas the control unit will operate indoors.

1.4 Assumptions
The following is a list of assumptions for the project:

1. The user and control unit will establish communication via GSM. 2. All service charges from service provider apply. 3. The controlled appliances will have to have an electrical interface in order to be controlled by microcontroller.

CHAPTER II

2.1 Review of related literature:


This project has been made by several people, but most of the times a land line phone is being used. If a land line phone is used than a separate ring detector circuit is required for detecting the number of rings and then picking up the phone. It uses an extra relay and we have to enter inside the mechanism of phone. In our project we have used the auto answer facility which is present in many of the cell phones today, so we escaped from designing the ring detector circuit.

2.2 Present Scenario:


Possible customers for this product would be home improvement contractors, and supply stores. The benefit of this is the end-product can be sold in large quantities and it can be incorporated into the construction of modernize homes. The end-product will be not be sold in retails stores because reconfiguring of the end-product to control different electrical appliances will be complicated and it should only be attempted by trained technicians. Retail stores would also not be a good target for commercialization due to the system requiring a cellular phone plan in order to operate. Advertising through cellular phone providers would be a more feasible option.

2.3. Present and Future Scope:


This product is aimed toward average consumers who wish to control household appliances remotely from their cell phones provided that the appliances are electrically controllable. Example of feasible appliances and applications under consideration include; enable/disable security systems, fans, lights, kitchen appliances, and heating/ventilation/air conditioning system. Right now we have designed the project for control of two devices but it can be designed for more number of devices.It can be furthur expanded with a voice interactive system facility. A feedback system can also be included which provides the state of a device(whether it is on/off) to the remote user.

CHAPTER III

3.1 System Specifications:


1. An authenticated user can control two home appliances from any remote place having mobile phone network. 2. Regulated power supply: 5V and 500ma. 3. Relay: 230v AC 4. The system requires two phones out of which the one present at the control unit has to be a cell phone with auto answer facility.

3.2 Block Diagram Description:


Phone on the transmitting side:
The person who wants to switch on/off any device kept at the controller side calls from a phone

and, once the call gets picked up, enters the password and tones for a corresponding device. Every key has to be pressed for a minimum amount of time to get it latched at the decoder IC.

Mobile phone on the receiving side:


The mobile phone on the receiver side picks up the phone automatically after 5seconds, and then makes the tones available to the DTMF tone decoder IC through the headphone jack of the phone.

DTMF Tone Decoder IC:


The DTMF tone decoder IC converts the received tones to their respective binary values and then gives them as an input to the microcontroller. The DTMF tone decoder ICs internal architecture consists of a band split filter section which separates the low and the high tone of the received tone pair, followed by a digital decode(counting) section which verifies both the frequency and duration of the received tones before passing resultant 4-bit code to the output bus. These 4-bits along with a bit which validates a received tone are given as an input to the port1 of microcontroller.

The Microcontroller:
The five output bits of the decoder IC serve as an input to port 1 of the microcontroller. Then each tone is verified by the programmed microcontroller and once a correct sequence of code is received, output corresponding to the tones sent by the user is made available at the port0, which is connected to relay through a relay driver.

Relay Circuitry:
The output from the port0 of the microcontroller is given to the relay driver IC which drives the corresponding relay, to which the home appliances are connected.

Home Appliances:
One terminal of each appliance is connected to relay and the other terminal is connected to 230v AC. As soon as the relay gets driven by the microcontroller the device gets switched on/off.

3.3 COMPLEXTIES INVOLVED


Under this heading we are going to mention the problems that we faced while building this project:

1. Building a programmer for the microcontroller: There are several kind of microcontroller ICs available in the market. We first bought Intels 8051 IC, but found out that it does not have flash memory, so we were not able to use it. Then we bought Atmels AT89s52 and tried to build a programmer circuit for the same. After investing some time on finding a programmer, we learnt that AT89s52 supports In System Programming (ISP) and can be programmed through the parallel port of a PC. Then we found out that a software named AEC_ISP can be used to program our IC. So we built a programmer circuit whose schematic was their inside the software and were successfully able to program our IC. 2. PCB printing: For getting a printed PCB for our circuit we first needed to design a layout. We learnt that in a software named DIPTRACE we can draw a schematic of a circuit and then get its layout. So we learnt this software and printed a layout of correct scale to actual components. Learning the software was a complex task. 3. Programming the microcontroller: We programmed the microcontroller many a times and tested it, until we got the final result.

CHAPTER IV

4.1 SYSTEM SCHEMATIC

4.2 SYSTEM DESIGN

Design values for CM8870


1 The DTMF tones from the mobile phone on the receiver side are given to a differential amplifier whose gain can be varied by connecting a feedback resistor from pin no. 3(which is the output of opamp) of CM8870. In our application the required gain is unity so we select, R1=100Kohms R2=100Kohms =>Gain=R2/R1=1. 2. The internal clock circuit of CM8870 is completed with addition of a ceramic resonator having resonant frequency of 3.58MHz. 3. Before the registration of a decoded tone pair, the receiver (CM8870) checks for a valid signal duration (duration for which a key is pressed by the remote user).This check is performed by an external RC time constant driven by Est .The minimum time duration for which a key should be pressed to validate itself is decided by R3 & C3.There values are decided by the formula: Trec=tdp+tgtp Where, tgtp=0.67*R3*C3 tdp is the time to detect the presence of a valid signal. So it is a parameter of the device. trec is the minimum time duration for which a key must be pressed by the remote user for validation. For, trec= 40ms R3=300Kohms C3=0.1uf 4. TOE(pin no. 10 of CM8870)->This is the Tone Output Enable. A low level shifts Q1-Q4 to its high impedance state. A high level makes the binary output available on the output pins (Q1-Q4).

Design values for Microcontroller(AT89S52):


1. Port 1 of the microcontroller is made an input port by writing all ones to it, and port 0 is the output port which is connected to the relay driver IC (U3). 2. The reset pin of U2 (pin no. 9) is connected to the reset circuit ie, R4=10Kohms C5=10uf

4.3 Components List:


To build and access this project the requisites are:

1. 2. 3. 4. 5. 6.

Transformer with turns ratio 230:15. A voltage regulator IC (7805) 4 diodes(1N4007) 1 electrolytic capacitors of 470uf. 4 ceramic capacitors, 2 of value 33pf and 2 of 0.1uf. 4 Resistances: 100Kohms (2 q) 300Kohms(1q) 10Kohms(1q) 7. 2 crystals: 3.58MHz 12MHz 8. 4 two pin relimates (male and female). 9. Two phones-We need one cell phone with auto answer facility on the receiver side and one phone(which can either be a cell phone or land line) with the remote user. 10. A Chord with a male connector-We need a chord with a male connector connected on one side and one end left open. The dimensions of the connector should be same as the dimensions of the jack present in the phone with the control unit. (In our case we used a 3.5mm jack) 11. DTMF tone decoding IC-IC for converting DTMF toness to their respective binary values. We used CM8870. 12. Microcontroller-AT89s52 microcontroller. 13. Relay deriver IC- ULN 2803 14. Two relays of 5v driving voltage each. 15. Two bulbs of power rating 25Watts.

CHAPTER V

IMPLEMENTATION OF SYSTEM
System Algorithm:
1. Person who wants to switch on/off a device calls on the phone at the receiver side. 2. The call gets answered automatically if it is not picked up manually till 5seconds. 3. Once the call gets answered we have to enter a password for authentication (in our case it is 1 2). 4. Then after entering the password we have to make a choice for switching on/off any device (Press * for switch on and # for switch off). 5. Then we have to enter the corresponding number for a device that we wish to switch on/off (6 for first device and 7 for the second). 6. After switching on/off device once, if we again want to switch on/off a device than we again have to enter the password and repeat the whole procedure. Note: On the transmitter side the user controlling the appliances has to press each digit for a minimum duration of time, which is 40ms.

Program algorithm:
1. 2. 3. 4. 5. On start of the system all the devices are off. If a key press is detected, program goes to 3, else it stays here. If the pressed key is 1 then program goes to 4, else it goes to 2. If 2 is pressed (correct password) program goes to 5,else it goes to 2. Now the microcontroller checks whether you want to switch on/off the device.(* for switch on and # for switch off) i). If any other key except '*' or '#' is pressed, program goes to step 2. ii).If * is pressed than it goes to (iii),if # then it goes to (v) iii).Now the microcontroller checks which device is to be switched on. iv). If 6 or 7 are pressed it switches on device number 1 or 2 respectively, and goes to 2, else it goes to 2 without switching on any device. v). Now the microcontroller checks for which device is to be switch off. vi). if 6 or 7 are pressed it switches off device number 1 or 2 respectively and goes to 2, else it goes to 2 without switching off any off the device.

CHAPTER 6

6.1 Performance and evaluation of the system


1. The receiver must reside in a location where a signal with sufficient strength can be received from a cellular phone network. 2. The only person who can communicate with the control module is the person who will be successfully authenticated. 3. Only devices with electrical controlling input ports will be possible targets for control. 4. The receiver must have a power source (230V) attached at all times.

6.2 Cost of the components

Component Resistance Diode Ceramic Cap. Electrolytic Cap. Crystal IC 7805 IC CM8870 IC AT89S52 ULN 2803 Relay PCB Bulb TOTAL COST

Quantity 4 4 4 2 2 1 1 1 1 2 1 2

Price/one 50p 1Re 50p 5Rs 8Rs 7Rs 50Rs 55Rs 25Rs 30Rs 80p/cm2 12Rs

Total price(Rs) 2 4 2 10 16 7 50 55 25 60 210 24 465/-

References:

www.8051projects.net www.edaboard.com Mazidi-8051 microcontroller Dip trace Help Datasheets of the IC's

También podría gustarte