DTMF Based System
DTMF Based System
ABSTRACT
The project aims at controlling various loads spread over a large area
remotely by using DTMF concept. The DTMF command tone thus received from
the phone causes electrical load switching. The project is useful for managing
the cell phone. Whenever a button on the keypad is pressed the frequency thus
generated from it is received by the decoder and it converts the frequency into its
to relays through relay driver IC. The digital code is then provided to
microcontroller that identifies the phone commands and initiates the relays to
The project aims at controlling various loads spread over a large area
remotely by using DTMF concept. The DTMF command tone thus received from
the phone causes electrical load switching. The project is useful for managing
The project requires a DTMF decoder interfaced to audio output socket of the cell
phone. Whenever a button on the keypad is pressed the frequency thus generated
from it is received by the decoder and it converts the frequency into its equivalent
through relay driver IC. The digital code is then provided to microcontroller that
identifies the phone commands and initiates the relays to actuate the respective
monitors the digitized parameters of the various sensors and verifies them with the
predefined threshold values. It checks if any corrective action is to be taken for the
condition at that instant of time. In case such a situation arises, it activates the
current from a source to the correct voltage, current, and frequency to power the
latter include power supplies found in desktop computers and consumer electronics
devices. Other functions that power supplies may perform include limiting the
current drawn by the load to safe levels, shutting off the current in the event of an
the input from reaching the load, power-factor correction, and storing energy so it
can continue to power the load in the event of a temporary interruption in the
All power supplies have a power input connection, which receives energy in
the form of electric current from a source, and one or more power output
connections that deliver current to the load. The source power may come from the
electric power grid, such as an electrical outlet, energy storage devices such as
power supply. The input and output are usually hardwired circuit connections,
though some power supplies employ wireless energy transfer to power their loads
without wired connections. Some power supplies have other types of inputs and
power supplies will employ a transformer to convert the input voltage to a higher
The filter removes most, but not all of the AC voltage variations; the
dictates the minimum amount of filtering that must be provided by a power supply.
single rectifier diode, with a resistor in series with the output to limit charging
current.
3.3 GSM
Global Packet Radio Service (GPRS) is an extension of GSM that enables higher
RS-232, USB, etc) for computer. The MODEM is the soul of such modules.
Wireless MODEMs
Wireless MODEMs are the MODEM devices that generate, transmit or decode
data from a cellular network, for establishing communication between the cellular
network and the computer. These are manufactured for specific cellular network
MODEMs like other MODEM devices use serial communication to interface with
and need Hayes compatible AT commands for communication with the computer
designed for communication of a computer with the GSM and GPRS network. It
requires a SIM (Subscriber Identity Module) card just like mobile phones to
activate communication with the network. Also they have IMEI (International
which are communicated through serial communication. These commands are sent
network.
CHAPTER-4
4. PLC PROGRAM
#include<htc.h>
#include<pic.h>
__CONFIG( FOSC_HS & WDTE_OFF & PWRTE_ON & CP_OFF & BOREN_ON
// Comm Setup
#define rs RD6
//#define rw RC1
#define en RD7
//lcd init
void lcd_init();
//Serial init
void InitUsart(void);
void enter();
void interrupt ISR(void);
//Dtmf fun
void dtmf_checking();
void checking_number();
char a;
void main()
{ //Dir reg
TRISD=0X00;
TRISC1=0x00;
TRISC4=0x00;;
InitUsart();
lcd_init();
lcd_cmd(0x01);
lcd_cmd(0xc0);
lcd_data_pointer("SYSTEM STARTED");
__delay_ms(2000);
checking_number();
void checking_number()
{ lcd_cmd(0x01);
lcd_data_pointer("WAITING FOR");
lcd_cmd(0xc0);
lcd_data_pointer("YOUR CALL");
__delay_ms(2000);
do
a=getchar();
}while(a!='9');
do
{
a=getchar();
}while(a!='5');
do
a=getchar();
}while(a!='9');
do
a=getchar();
}while(a!='7');
do
a=getchar();
}while(a!='8');
do
{
a=getchar();
}while(a!='9');
do
a=getchar();
}while(a!='2');
do
a=getchar();
}while(a!='6');
do
a=getchar();
}while(a!='3');
do
{
a=getchar();
}while(a!='8');
serial_data_pointer("ATA\r");
enter();
enter();
// __delay_ms(500);
lcd_cmd(0x01);
lcd_data_pointer("CALL ATTENDED");
lcd_cmd(0xc0);
lcd_data_pointer("DTMF WAITING");
// __delay_ms(2000);
dtmf_checking();
}
//////SERIAL FUN/////////////
void dtmf_checking()
int i,j,k,l;
i=j=k=l=0;
while(1)
do
a=getchar();
}while(a!='D');
do
a=getchar();
}while(a!='T');
do
a=getchar();
}while(a!='M');
do
a=getchar();
}while(a!='F');
do
a=getchar();
}while(a!=':');
do
a=getchar();
}while(a!=' ');
do
a=getchar();
}while(a!=' ');
a=getchar();
lcd_cmd(0x01);
load1=1;
// lcd_cmd(0xc0);
// lcd_data_pointer("ACTIVATED");
// __delay_ms(500);
i++;
}
lcd_cmd(0x01);
load1=0;
// lcd_cmd(0xc0);
// lcd_data_pointer("DE-ACTIVATED");
// __delay_ms(500);
i=0;
lcd_cmd(0x01);
lcd_data_pointer("LOAD TWO ON");
TRISC2=0X00;
load2=1;
// lcd_cmd(0xc0);
// lcd_data_pointer("DE-ACTIVATED");
// __delay_ms(500);
j++;
lcd_cmd(0x01);
TRISC2=0X00;
load2=0;
// lcd_cmd(0xc0);
// lcd_data_pointer("DE-ACTIVATED");
// __delay_ms(500);
j=0;
lcd_cmd(0x01);
TRISC3=0X00;
load3=1;
// lcd_cmd(0xc0);
// lcd_data_pointer("ACTIVATED");
// __delay_ms(500);
k++;
}
else if( (a == '3') && (k == 1) )
lcd_cmd(0x01);
TRISC3=0X00;
load3=0;
// lcd_cmd(0xc0);
// lcd_data_pointer("DE-ACTIVATED");
// __delay_ms(500);
k=0;
lcd_cmd(0x01);
load4=1;
// lcd_cmd(0xc0);
// lcd_data_pointer("DE-ACTIVATED");
// __delay_ms(500);
l++;
lcd_cmd(0x01);
load4=0;
l=0;
serial_data_pointer("ATH\r");
enter();
enter();
__delay_ms(50);
lcd_cmd(0x01);
lcd_data_pointer("CALL CANCELLED");
checking_number();
load1=load2=load3=load4=0;
i=0;j=0;k=0;l=0;
else
lcd_cmd(0x01);
lcd_data_pointer("NO SIGNAL");
// lcd_cmd(0xc0);
// lcd_data_pointer("SIGNAL");
// __delay_ms(500);
}
void enter()
putchar(0x0D);
putchar(0x0A);
void InitUsart(void) {
// TX Pin - output
TRISC6 = 0;
// RX Pin - input
TRISC7 = 1;
RCSTA = 0x90;
SPBRG = 129;
while(!TXIF);
// transmite byte
TXREG = byte;
{
CREN = 0;
CREN = 1;
return RCREG;
while(*ew)
putchar(*ew++);
////////////LCD FUN/////////////
void lcd_init ()
{
rs=0;
PORTB =0x20;
en=1;
__delay_ms(50);
en=0;
rs=0;
PORTB = u;
en=1;
__delay_ms(50);
en=0;
en=1;
__delay_ms(50);
en=0;
rs=1;
PORTB =y;
en=1;
__delay_ms(50);
en=0;
PORTB=((y<<4)&0xF0);
en=1;
__delay_ms(50);
en=0;
while(*e)
lcd_data(*e++);
int i,j;
for(i=0;i<ewq;i++)
for(j=0;j<1275;j++);
}
///INTERRUPT FUN
This product is a 2-channel relay module board with LED indicators; it can
4.1.1 SPECIFICATIONS
Working voltage: 12V
Channel: 2 channel
10A.
microcontrollers.
4.1.2 BULB
an electric light with a wire filament heated to such a high temperature that it
electric current through it, is protected from oxidation and, to a lesser degree, from
evaporation with a glass or fused quartz bulb that is filled with inert gas or more
rarely is evacuated of all gases, such as those found in air. In a halogen lamp,
embedded in the glass. Most bulbs are used in a socket which provides mechanical
4.1.3 LCD
The liquid-crystal display has the distinct advantage of having a low power
consumption than the LED. It is typically of the order of microwatts for the display
in comparison to the some order of mill watts for LEDs. Low power consumption
requirement has made it compatible with MOS integrated logic circuit. Its other
advantages are its low cost, and good contrast. The main drawbacks of LCDs are
(between 0 and 60° C), low reliability, short oper-ating life, poor visibility in low
their inside faces. With both glass sheets transparent, the cell is known as
transmissive type cell. When one glass is transparent and the other has a reflective
coating, the cell is called reflective type. The LCD does not produce any
between two transparent electrodes, and two polarizing filters (parallel and
perpendicular), the axes of transmission of which are (in most of the cases)
perpendicular to each other. Without the liquid crystal between the polarizing
filters, light passing through the first filter would be blocked by the second
(crossed) polarizer. Before an electric field is applied, the orientation of the liquid-
twisted nematic (TN) device, the surface alignment directions at the two electrodes
helical structure, or twist. This induces the rotation of the polarization of the
incident light, and the device appears gray. If the applied voltage is large enough,
the liquid crystal molecules in the center of the layer are almost completely
untwisted and the polarization of the incident light is not rotated as it passes
through the liquid crystal layer. This light will then be mainly polarized
perpendicular to the second filter, and thus be blocked and the pixel will appear
black. By controlling the voltage applied across the liquid crystal layer in each
pixel, light can be allowed to pass through in varying amounts thus constituting
different levels of gray. Color LCD systems use the same technique, with color
device and placed on top, such that the top and bottom polarizers are
perpendicular.
The optical effect of a TN device in the voltage-on state is far less dependent
on variations in the device thickness than that in the voltage-off state. Because of
this, TN displays with low information content and no backlighting are usually
operated between crossed polarizer’s such that they appear bright with no voltage
(the eye is much more sensitive to variations in the dark state than the bright state).
As most of 2010-era LCDs are used in television sets, monitors and smart phones,
they have high-resolution matrix arrays of pixels to display arbitrary images using
arrangements are used. For this purpose, TN LCDs are operated between parallel
IPS LCDs have replaced TN LCDs, in particular in smart phones such as phones.
Both the liquid crystal material and the alignment layer material contain ionic
period of time, this ionic material is attracted to the surfaces and degrades the
reversing the polarity of the electric field as the device is addressed (the response
of the liquid crystal layer is identical, regardless of the polarity of the applied
field).
electrically connected rows on one side of the LC layer and columns on the other
side, which makes it possible to address each pixel at the intersections. The general
matrix, for example by selecting the rows one-by-one and applying the picture
information on the other side at the columns row-by-row. For details on the various
pads and other features etched from one or more sheet layers of copper laminated
generally soldered onto the PCB to both electrically connect and mechanically
fasten them to it.Printed circuit boards are used in all but the simplest electronic
products. They are also used in some electrical products, such as passive switch
boxes.
both once popular but now rarely used. PCBs require additional design effort to lay
out the circuit, but manufacturing and assembly can be automated. Specialized
circuits with PCBs is cheaper and faster than with other wiring methods, as
components are mounted and wired in one operation. Large numbers of PCBs can
be fabricated at the same time, and the layout only has to be done once. PCBs can
layers on both sides of one substrate layer), or multi-layer (outer and inner layers
of copper, alternating with layers of substrate). Multi-layer PCBs allow for much
higher component density, because circuit traces on the inner layers would
multilayer PCBs with more than two, and especially with more than four, copper
planes was concurrent with the adoption of surface mount technology. However,
multilayer PCBs make repair, analysis, and field modification of circuits much
5.1 ADVANTAGE
One can control home appliances from anywhere. It reduces wastage of
electricity when we forgot to switch off the lights & fans and gone outside. It is
Tone from mobile is sent to op-amp through series of resistor (100 kilo-
Ohm) and capacitor (1nf). Pin1 of DTMF IC i.e. non inverting pin is connected to
pin4 i.e. Vref. Pin3 is the output of operational amplifier which is feedback to pin2
using 100 kilo-Ohm resistor. 7 and 8 pins are connected to crystal oscillator of
frequency 3.579545 MHz 15th pin is data valid pin it becomes high when DTMF
and resistor (10k), capacitor. Pins 11 to 14 produce the decoded output. So by this
[1]Electric fuses P.G. Newbery, B.Sc, C.Eng., M.I.E.E., and Prof. A. Wright, D.Sc, Ph.D., C.Eng.,
F.I.E.E. http://www.electronicsforu.com/EFYLinux/circuit/January2010
/Blown%20Fuse%20Indicator.pdf
[2] http:// www. slideshare.net/Ecwayt/high-voltage-fuse-blownindicatorwith-voice-based-
announcement-system-29910233
[3] Negative-Sequence Relay Protection for Blown High-Side Transformer Fuse Detection, Alan Hannah
Principles of Power System by V.K. Mehta Reliability concept for electric fuses, X.Z. Meng, J.G.J.Sloot
TO THE ORIGINS OF FUSES, Jean-Louis GELET