Sunteți pe pagina 1din 8

CELL PHONE OPERATED DEVICE SWITCHING

Conventionally, wireless-controlled devices use RF circuits, which have the drawbacks of limited working range, limited frequency range and limited control. Use of a mobile phone for device control can overcome these limitations. It provides the advantages of robust control, working range as large as the coverage area of the service provider, no interference with other controllers and up to twelve controls.

Project Overview
In this project, the appliances in an office or home are controlled by .a mobile phone that makes a call to the mobile phone attached to the receiver section. In the- course of a call, if any button is pressed, a tone corresponding to the button pressed is heard at the other end of the call. This tone is called Dual- Tone Multiple- Frequency (DTMF) tone. The receiver section perceives this DTMF tone with the help of the phone stacked in the receiver section. The received tone is processed by the AT89C52 microcontroller with the help of DTMF decoder MT8870. The decoder decodes the DTMF tone into its equivalent binary number and this binary number is sent to the microcontroller. The microcontroller is programmed to take a decision for any given input and outputs its decision to the relay driver in order to drive the relays to switch ON or OFF the corresponding device. The mobile that make call to the mobile phone stacked in the receiver section acts as a remote. So this simple project doesnt require the construction of receiver and transmitter units. DTMF signaling is used for telephone signaling over the line in the voice-frequency band to the call switching centre. The version of DTMF used for telephone tone dialing is known as Touch-Tone. DTMF assigns a specific frequency (consisting of two separate tones) to each key so that it can easily be identified by the electronic circuit. The signal generated by the DTMF encoder is a direct algebraic summation, in real time, of the amplitudes of two sine (cosine) waves of different frequencies, i.e., pressing 5 will send a tone made by adding 1336 Hz and 770 Hz to the other end of the line. The tones and assignments in a DTMF system are shown in Table I.

Circuit Diagram of Cell Phone Operated Device switching

CIRCUIT DIAGRAM FOR THE RELAY SECTION

Table I Tones and assignments In a DTMF system

Frequencies 697Hz 770Hz 852Hz 941Hz

1209Hz 1 4 7 *

1336Hz 2 5 8 0

1477Hz 3 6 9 #

1633Hz A B C D

mmm Mobile Phone

Mobile Used as Remote

DTMF Decoder

Microcontroller

Relay Driver

Five Relay Network

Fig.1 Block Diagram of cell phone operated device switching

Table II DTMF Data Output Low Group(Hz ) 697 697 697 770 770 770 852 852 852 941 941 941 697 770 852 941 -High Group(Hz ) 1209 1336 1477 1209 1336 1477 1209 1336 1447 1209 1336 1447 1633 1633 1633 1633 -Digit D3 1 2 3 4 5 6 7 8 9 0 * # A B C D ANY L L L L L L L H H H H H H H H L Z D2 L L L H H H H L L L L H H H H L Z D1 L H H L L H H L L H H L L H H L Z D0 H L H L H L H L H L H L H L H L Z

Table III Actions Performed Corresponding to the Keys Pressed Number pressed By user 1 2 3 4 5 6 7 8 9 0 * # Output of DTMF Decoder MT8870 0x01 00000001 0x02 00000010 0x03 00000011 0x04 00000100 0x05 00000101 0x06 00000110 0x07 00000111 0x08 00001000 0x09 00001001 0x0A 00001010 0x0B 00001011 0x0C 00001100 Input to the Microcontroller 0xFE 11111110 0xFD 11111101 0xFC 11111100 0xFB 11111011 0xFA 11111010 0xF9 11111001 0xF8 11111000 0xF7 11110111 0xF6 11110110 0xF5 11110101 0xF4 11110100 0xF3 11110011 Device Switched ON/OFF Device1-ON Device2-ON Device3-ON Device4-ON All-ON Device5-ON Device4-OFF All-OFF Device5-OFF Device2-OFF Device1-OFF Device3-OFF

Circuit Description
Fig.1 shows the block diagram of the microcontroller based mobile phone operated device switching. The important components of this circuit are microcontroller, DTMF decoder and relay driver. An MT8870 series DTMF decoder used here. All types of the MT8870 series use digital counting techniques to detect and decode all the 16 DTMF tone pairs into a 4-bit code output. The built-in dial tone rejection circuit eliminates the need for pre-filtering. When the input signal given at pin 2 (IN-) in single-ended input configuration is recognized to be effective, the correct 4-bit decode signal of the DTMF tone is transferred to Q1 (pin 11) through Q4 (pin 14) outputs.

Table II shows the DTMF data output table of MT8870. Q1 through Q4 outputs of the DTMF decoder (U1) are connected to port pins P1.0 through P1.3 of AT89C52 microcontroller (U3) after inversion by N1 through N4, respectively. The AT89C52 is a low power, 8-bit, CMOS microcontroller. It provides the following features: 8kB of in-system ROM, 256 bytes of RAM and 32 general purpose input/output lines. ULN2003 is used as relay driver. Output from the microcontroller from port pins P0.0 to P0.4 are fed as the five inputs to the ULN2003. ULN2003 will energize the appropriate relay upon getting the corresponding input from the microcontroller.

S-ar putea să vă placă și