DTMF Based Home Automation
DTMF Based Home Automation
DTMF Based Home Automation
CHAPTER 1
INTRODUCTION
The aim of the proposed system is to develop a cost effective solution that will
provide controlling of home appliances remotely and enable home security against intrusion
in the absence of homeowner. The system provides availability due to development of a low
cost system. The home appliances control system with an affordable cost was thought to be
built that should be mobile providing remote access to the appliances and allowing home
security.
So if you forgot to switch off the lights or other appliances while going out, it
helps you to turn off the appliance with your cell phone. Your cell phone works as remote
control to your home appliances. You can control the desired appliance by presetting the
corresponding key. Though devices connected as home and office appliances consume
electrical power. These devices should be controlled as well as turn on/off if required. Most
of the times it was done manually. Now it is a necessity to control devices more effectively
and efficiently at anytime from anywhere. This system is designed for controlling arbitrary
devices. It includes a cell phone which is connecting to the system via head set. To active the
cellular phone unit on the system a call is to be made and as the call is answered, in response
the user would enter a number corresponding to which device is on or off. The device
switching is achieved by Relays. Security preserved because the system works only when
incoming call from the registered phone.
The underlying principle mainly relies up on the ability of DTMF (Dual Tune
Multi Frequency) ICs to generate DTMF corresponding to a number or code in the number
pad and to detect the same number or code from its corresponding DTMF. In detail, a DTMF
generator generates two frequencies corresponding to a number or code in the number pad
which will be transmitted through the communication networks, constituting the transmitter
section which is simply equivalent to a mobile set. In the receiver part, the DTMF detector
IC, for example IC MT 8870 detects the number or code represented by DTMF back, through
the inspection of the two transmitted frequencies.
Dept. of Electronics 1
Mini Project Report
Figure shows the detailed block diagram of DTMF Based Home Automation System.
The basic block diagram includes DTMF Decoder, Mobile phone, Relay Driver, AC
Appliances such as Light, Fan, TV
Dept. of Electronics 2
Mini Project Report
In this project ULN2003A used as the relay driver. The relay driver uln2003 IC is a
high voltage and current darlington array IC, it comprises of 7-open collector darlington pairs
with common emitters. A pair of darlington is an arrangement of two bipolar transistors. This
IC belongs to the family of ULN200x ICs and various types of this family interface to various
logic families. This ULN2003 IC is for 5V TTL and CMOS logic devices. These ICs are used
as relay drivers as well as to drive a wide range of loads, line drivers, display drivers etc. This
IC is also normally used while driving Stepper Motors.
1.1.3 MOBILE:-
Mobile phone is the heart of this project. This system consists of two parts- the
transmitter and the receiver. The transmitter is the cell phone of the user. At the receiver side,
a cell phone or a landline is present which receives the call from the user cell phone. It is
interfaced to a DTMF decoder which receives the DTMF tones and decodes it get the original
data. The switching of any load can be achieved by just pressing a number on the cell phone.
A person can dial a number from his/her mobile and this number is redirected to another
mobile from where the tones are taken and decoded and the number is used as a command to
operate the loads.
1.1.4 AC APPLIANCES:-
There are two AC appliances is used in this project instead of fan and TV. One is a
CFL lamb and other one is a LED lamb. Here these lamps are used as loads and each lamp is
driven by a relay. All the relays are operated by a relay driver which has inputs and outputs
for each relay. Each load is assigned a particular number. When a particular number is dialled
on the user mobile, the call gets directed to the system cell phone.
We can also use TV, FAN, and MOTOR instead of lights In this project DTMF
Based Home Automation System we are going to control our home appliances wirelessly.
Dept. of Electronics 3
Mini Project Report
1.2 OBJECTIVES
The aim of this project is to extend a device that allows for a user to somewhat
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. Many times a situation occurs when we have to
control various devices from a long/remote location according to our choice .Consider
following examples
1) If, we are working in some industry and have to reach at workplace at the earliest to turn
on some electrical device like boiler or conveyor belt.
2) In our normal day to day life we go out of home and forgot to turn off fan/light
3) In summer season we want to turn on Fan or AC Air cooler before we reach home.
For all above situations, we need a device / controller which can turn on / off the devices. To
implement this system the consumer should send a unique code accompanied by the required
function to his home control system through DTMF.
Dept. of Electronics 4
Mini Project Report
CHAPTER 2
HARDWARE IMPLIMENTATION
Today, most telephone equipment use a DTMF receiver IC. One common DTMF
receiver IC is the Motorola MT8870 that is widely used in electronic communications
circuits. The MT8870 is an 18-pin IC. It is used in telephones and a variety of other
applications. When a proper output is not obtained in projects using this IC, engineers or
technicians need to test this IC separately. A quick testing of this IC could save a lot of time
Dept. of Electronics 5
Mini Project Report
Dept. of Electronics 6
Mini Project Report
IC should indicate proper bi-nary values corresponding to the decimal number pressed on
your telephone key-pad.
DTMF:-
DTMF stands for dual tone multiple frequencies. DTMF is a term which used in
telephone industry. When any key on telephone or mobile phone is pressed one tone is
generated and it is audible which nothing but a DTMF tone.
DTMF (Dual tone multi frequency) as the name suggests uses a combination of two
sine wave tones to represent a key. These tones are called row and column frequencies as
they correspond to the layout of a telephone keypad.
A DTMF keypad (generator or encoder) generates a sinusoidal tone which
is mixture of the row and column frequencies. The row frequencies are low group
frequencies. The column frequencies belong to high group frequencies. This prevents
misinterpretation of the harmonics. Also the frequencies for DTMF are so chosen that none
have a harmonic relationship with the others and that mixing the frequencies would not
produce sum or product frequencies that could mimic another valid tone. The high-group
Dept. of Electronics 7
Mini Project Report
frequencies (the column tones) are slightly louder than the low-group to compensate for the
high-frequency roll off of voice audio systems. The row and column frequencies
corresponding to a DTMF keypad have been indicated in the above figure.
DTMF tones are able to represent one of the 16 different states or symbols on the
keypad. This is equivalent to 4 bits of data, also known as nibble
DTMF CODE:-
When any of the key like 1, 2, *, # etc is pressed particular code is
transmitted. This code is consisting of two frequencies among which one is higher frequency
and second one is lower frequency. Following table shows the combination of frequency for
respected keys.
Table 2.2.1
In Given table we can see two groups of different frequencies. When one upper
and one lower frequencies mixed then a tone is created that tone we calls Dual Tone Multiple
Frequency. In this project we control ac appliances by pressing dial pad keys like 1, 2, 3, 4, 5
and more.
According to above table 8 is combination of lower frequency of 852 Hz and
higher frequency of 1336 Hz and # is of lower frequency of 941 Hz and higher frequency
of 1447 Hz.
Dept. of Electronics 8
Mini Project Report
DTMF DETECTION:-
Today, most telephone equipment use a DTMF receiver IC. One common DTMF
receiver IC is the Motorola MT8870 that is widely used in electronic communications
circuits. The MT8870 is an 18-pin IC. It is used in telephones and a variety of other
applications. This IC can be used to encode the DTMF code.
The MT8870 is a complete DTMF receiver integrating both the band -split filter
and digital decoder functions. The filter section uses switched capacitor techniques for high
and low group filters; the decoder uses digital counting techniques to detect and decode all 16
DTMF tone-pairs into a 4-bit code. External component count is minimized by on chip
provision of a differential input amplifier, clock oscillator and latched three-state bus
interface.
PIN DESCRIPTION:-
1. IN+
2. IN-
3. GS Gain Select.
Dept. of Electronics 9
Mini Project Report
Gives access to output of front end differential amplifier for connection of feedback
resistor.
Active high. Powers down the device and inhibits the oscillator. This pin input is
internally pulled down.
A 3.579545 MHz crystal connected between pins OSC1 and OSC2 completes the
internal oscillator circuit.
0 V typical.
Logic high enables the outputs Q1-Q4. This pin is pulled up internally.
When enabled by TOE, provide the code corresponding to the last valid tone-pair
received (see Table 1). When TOE is logic low, the data outputs are high impedance.
Dept. of Electronics 10
Mini Project Report
Presents a logic high when a received tone-pair has been registered and the output
latch updated; returns to logic low when the voltage on St/GT falls below VTSt.
Presents a logic high once the digital algorithm has detected a valid tone pair
(signal condition). Any momentary loss of signal condition will cause ESt to return to a logic
low.
A voltage greater than VTSt detected at St causes the device to register the
detected tone pair and update the output latch. A voltage less than VTSt frees the device to
accept a new tone pair. The GT output acts to reset the external steering time-constant; its
state is a function of ESt and the voltage on St.
+5 V typical.
The scheme used to identify the two frequencies associated with the button that has
been pressed is shown in the figure below. Here, the two tones are first separated by a low
pass and a high pass filter.
The pass band cutoff frequency of the low pass filter is slightly above 100 Hz,
whereas that of the high-pass filter is slightly below 1200 Hz. The output of each filter is next
converted into a square wave by a limiter and then processed by a bank of band pass filters
with narrow pass bands. The four band pass filters in the low-frequency channel have center
frequencies at 697 Hz, 770 Hz, 852 Hz, and 941 Hz. The four band-pass filters in the high-
frequency channel have center frequencies at 1209 Hz, 1336 Hz, 1477 Hz, and 1633 Hz. The
detector following each band-pass filter develops the necessary dc switching signal if its
input voltage is above a certain threshold.
Dept. of Electronics 11
Mini Project Report
Figure 2.2.4
Dept. of Electronics 12
Mini Project Report
Table 2.2.2
FEATURES OF MT8870:-
Power-down mode
Inhibit mode
Dept. of Electronics 13
Mini Project Report
APPLICATIONS OF MT8870:-
Paging systems
Remote control
Personal computers
Fig 2.2.5
Dept. of Electronics 14
Mini Project Report
This image show a 3.58MHz crystal oscillator commonly used in microcontrollers and
microprocessors. Although the crystal has electromechanical resonance, we can represent the
crystal action by an equivalent electrical resonant circuit as show below. The inductance and
capacitance L1 and C1 represents electrical equivalents of crystal mass and compliance,
while the resistance R1 represents the friction of crystals internal structure and C0 represents
the capacitance formed due to mechanical moulding of the crystal.
From the circuit we can find that it can have two resonant frequencies, series
resonance and parallel resonance. Series resonance occurs when the reactances produced by
capacitance C1 and inductance L1 becomes equal and opposite. Thus during this condition
impedance is very low, equal to resistance R1. Parallel resonance occurs when the reactance
of series resonant leg becomes equal to reactance produced by capacitance C0. During this
condition the crystal offers very high impedance to the external circuit.
Figure 2.2.6
Figure 2.2.7
Dept. of Electronics 15
Mini Project Report
more superior compared to other resonators like LC circuits, turning forks. Generally
in Microprocessors and Microcontrollers we are using an 8MHz crystal oscillator.
The equivalent electrical circuit is also describes the crystal action of the
crystal. Just look at the equivalent electrical circuit diagram shown in the above. The basic
components used in the circuit, inductance L represents crystal mass, capacitance C2
represents compliance, and C1 is used to represent the capacitance that is formed because of
crystals mechanical molding, resistance R represents the crystals internal structure friction,
The quartz crystal oscillator circuit diagram consists of two resonances such as series and
parallel resonance, i.e., two resonant frequencies.
Fig 2.2.8
The series resonance occurs when the reactance produced by capacitance C1is
equal and opposite to the reactance produced by inductance L. The fr and fp represents series
Dept. of Electronics 16
Mini Project Report
and parallel resonant frequencies respectively, and the values of fr and fp can be
determined by using the following equations shown in the figure 2.2.8.
The above diagram describes an equivalent circuit, plot graph for resonant
frequency, Formulae for Resonant frequencies.
Crystal Oscillator is also used in engine controlling, clock and to trip computer, stereo,
and in GPS systems. This is an automotive application.
Crystal oscillators are used in many consumer goods. For example, cable television
systems, video cameras, personal computers, toys and video games, cellular phones, radio
systems. This is Consumer Application of Crystal Oscillator.
Dept. of Electronics 17
Mini Project Report
A regulated power supply is very much essential for several electronic devices due
to the semiconductor material employed in them have a fixed rate of current as well as
voltage.
Fig 2.2.9
The device may get damaged if there is any deviation from the fixed rate. The AC
power supply gets converted into constant DC by this circuit. By the help of a voltage
regulator DC, unregulated output will be fixed to a constant voltage. The circuit is made up of
linear voltage regulator 7805 along with capacitors and resistors with bridge rectifier made up
from diodes. From giving an unchanging voltage supply to building confident that output
reaches uninterrupted to the appliance, the diodes along with capacitors handle elevated
efficient signal conveyed.
ICs regulator is mainly used in the circuit to maintain the exact voltage which is
followed by the power supply. A regulator is mainly employed with the capacitor connected
in parallel to the input terminal and the output terminal of the IC regulator. For the checking
of gigantic alterations in the input as well as in the output filter, capacitors are used. While
the bypass capacitors are used to check the small period spikes on the input and output level.
Bypass capacitors are mainly of small values that are used to bypass the small period pulses
straightly into the Earth.
A circuit diagram having regulator IC and all the above discussed components
arrangement revealed in the figure below.
Dept. of Electronics 18
Mini Project Report
The working of the components coupled in the circuit above is revealed below.
COMPONENTS:-
1. CAPACITOR C-1
2. CAPACITOR C-2
C2 is the filter capacitor employed to steady the slow changes in the voltage
applied at the input of the circuit. Escalating the value of the capacitor amplify the
stabilization as well as the declining value of the capacitor reduces the stabilization.
Moreover this capacitor is not alone capable to ensure very constricted period spikes emerge
at the input.
3. CAPACITOR C-3
Dept. of Electronics 19
Mini Project Report
4. CAPACITOR-C 4
5. 7805 IC -U 1
U1 is the IC with positive DC and it upholds the output voltage steady exactly
at a constant value even although there is major deviation in the input voltage.
PIN DESCRIPTION:-
1. INPUT
Dept. of Electronics 20
Mini Project Report
2. GROUND
In this pin where the ground is given. This pin is neutral for equally the input
and output.
3. OUTPUT
The output of the regulated 5V volt is taken out at this pin of the IC regulator
The difference between the input and output voltage appears as heat. The greater the
difference between the input and output voltage, the more heat is generated. If too
much heat is generated, through high input voltage, the regulator can overheat. If the
regulator does not have a heat sink to dissipate this heat, it can be destroyed and
malfunction. Hence, it is advisable to limit the voltage to a maximum of 2-3 volts
higher than the output voltage.
2.2.4 RELAY
A relay can be defined as a switch. Switches are generally used to close or open
the circuit manually .Relay is also a switch that connects or disconnects two circuits. But
instead of manual operation a relay is applied with electrical signal, which in turn connects or
disconnects another circuit. Relays can be of different types like electromechanical, solid
state. Electromechanical relays are frequently used.
Figure 2.2.12
1) Electromagnet
Dept. of Electronics 21
Mini Project Report
3) Switching points
4) Spring
Electromagnet is constructed by wounding a copper coil on a metal core. The two ends of the
coil are connected to two pins of the relay. These two are used as DC supply pins. Generally
two more contacts will be present, called as switching points to connect high ampere load.
Another contact called common contact is present in order to connect the switching points.
These contacts are named as normally open (NO), normally closed (NC) and common
(COM) contacts. Relay can be operated using either AC or DC. In case of AC relays, for
every current zero position, the relay coil gets demagnetized and hence there would be a
chance of continues breaking of the circuit. So, AC relays are constructed with special
mechanism such that continues magnetism is provided in order to avoid above problem. Such
mechanisms include electronic circuit arrangement or shaded coil mechanism.
WORKING:-
There are also such relays, whose contacts are initially closed and opened when there is
supply. Solid state relays will have sensing element to sense the input voltage and switches
the output using coupling.
RELAY APPLICATIONS:-
Relays are used to protect the electrical system and to minimize the damage to the
equipment connected in the system due to over currents/voltages. The relay is used for the
purpose of protection of the equipment connected with it. These are used to control the high
voltage circuit with low voltage signal in applications audio amplifiers and some types of
Dept. of Electronics 22
Mini Project Report
modems. These are used to control a high current circuit by a low current signal in the
applications like starter solenoid in automobile. These can detect and isolate the faults that
occurred in power transmission and distribution system. Typical application areas of the
relays include
Figure 2.2.13
It is commonly used for applications such as relay drivers, motor, display drivers, led
lamp drivers, logic buffers, line drivers, hammer drivers and other high voltage current
applications. It consists of common cathode clamp diodes for each NPN darlington pair
which makes this driver IC useful for switching inductive loads.
Dept. of Electronics 23
Mini Project Report
FEATURES:-
The ULN2003 is known for its high-current, high-voltage capacity. The drivers can be
paralleled for even higher current output. Even further, stacking one chip on top of another,
both electrically and physically, has been done. Generally it can also be used for interfacing
with a stepper motor, where the motor requires high ratings which cannot be provided by
other interfacing devices.
Main specifications:
APPLICATIONS:-
There are two mobile phones used in the circuit one works as a receiver and other as
transmitter. The receiver mobile in connected to the circuit via a headphone. One of the two
wires of the headphone is connected to pin2 (IN-) and pin3 (GS) of the DTMF decoder IC
MT8870 and the other is grounded. A 3.579545MHz crystal oscillator is connected to pin7
(OSC1) and pin8 (OSC2) of MT8870.Pin16 (ESt) and pin17(St) are connected to Vcc via
0.1F and 330k resistance. When the transmitter sends a valid tone data the receiver
detects the frequency pair and gives the appropriate binary code as the output of the DTMF
decoder IC. The binary output can be obtained by pin11 to pin14.
Dept. of Electronics 24
Mini Project Report
Dept. of Electronics 25
Mini Project Report
CHAPTER 3
3.1 RESULT
The DTMF based home automation systems, is a wonderful feature that everyone
would like to enjoy, if they were not expensive to install, maintain, and able to be use from
long distance. With such automation one can switch ON and OFF lights, Ac etc from a
remote distance. It can be useful for in future life.
3.2 BENEFITS
Dept. of Electronics 26
Mini Project Report
CHAPTER 4
4.1 CONCLUSION
This Project presented a method to control home appliances using mobile phone
and DTMF decoder. DTMF tone is generated by pressing the keypad buttons of the mobile
phone. The extensive capabilities of this system are what make it so interesting. From the
convenience of a simple cell phone, a user is able to control and monitor virtually any
electrical device in a household. This makes it possible for users to rest assured that their
belongings are secure, that the garage door is shut, and that the television was not left running
when they left the house to just list a few of the many uses of this system. The end product
will have a simplistic design making it easy for users to interact with. This will be essential
because of the wide range of technical knowledge that homeowners have.
The popularity and availability of the mobile and mobile network makes this kind
of control very useful and powerful. The main advantages of the proposed system are its
reliability, low cost, and wide area coverage.
This project can be further enhanced to the High voltage A.C Applications by
changing the ratings of the Relay.
We can control and monitor the high speed induction motors as well as
synchronous motors. This can be done in an economical way.
We can also add some security features in the circuit. One of the way is password
protection. Through this only selected people can access this control over the
home appliances.
In this project in future we can add a multimedia camera to see what is going
inside the home by sitting in office or somewhere.
It can be also used for security purposes burglary, gas detection, smoke detection.
It can be used as controlling speed of fan.
Dept. of Electronics 27
Mini Project Report
REFERENCE
[5] http://www.electronics-diy.com
Dept. of Electronics 28