Appliances Control Through Sms

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 7

APPLIANCES CONTROL THROUGH

SMS


Abstract
This project is designed to make home automation easy to control when a user is not at
home. The project is designed to allow easy use of a mobile phone to control appliances
in the home. Using a mobile phone the development of the control system will be carried
out using SMS. This will communicate with another mobile phone, which in turn controls
the devices attached to microcontroller modules. When the action has been carried out
then a response is sent to the user. The project involves three main areas, research,
developmentprogramming, testing and the writing of the report.
Introduction
The project is aimed at developing and testing the use of mobile phones to remotely
control an appliance control system. The microcontroller would then control an device
based on the information given to it. The proposed solution will need to be easy to use,
simple, secure, robust and be useful on most mobile phones. To achieve this testing will
need to be carried out to create a useful system.

The report consists of a background into the area of !"#$ microcontroller and mobile
communication, how they are interfaced to each other and %T &%ttention' commands set
used in communication.
HARDWARE USED
1. %T command supporting (SM mobile phone.
. !)S#* Microcontroller
!. Ma+ *,* -..
". /elays
#. /elay driver -. U01 *!",
$. 2oltage regulator 3!"#.
%. 4iode -15""3
&. (SM 6hone
SO'TWARE USED

1. ()i* u+,ision !.-
7eil Software is used provide you with software development tools for !"#$ based
microcontrollers. With the 7eil tools, you can generate embedded applications for
virtually every !"#$ derivative. The supported microcontrollers are listed in the 89vision
. PRO#1 Pro.ra//)r So0t1ar)
THEOR2 O' OPERATION
In this project we interfaced 8051 microcontroller with Motorolas C168 GSM
mobile phone to decode the received messae and do the re!"ired action# $he
protocol "sed for the comm"nication between the two is %$ command#
$he microcontroller p"lls the SMS received b& phone' decode it' reconi(es the
Mobile no# and then switches on the rela&s attached to its port to control the
appliances# %fter s"ccessf"l operation' controller sends bac) the
ac)nowledement to the "sers mobile thro"h SMS#
AT-Command set
The following section describes the %T9.ommand set. The commands can be tried out by
connecting a (SM modem to one of the 6.:s .;M ports. Type in the test9command,
adding ./ < 0= &.arriage return < 0ine feed > rn' before e+ecuting. Table gives an
overview of the implemented %T9.ommands in this application. The use of the
commands is described in the later sections.
%T9.ommand set overview
Co//and D)scri3tion
%T
.heck if serial interface and (SM modem is
working.
%T?" Turn echo off, less traffic on serial line.
%T<.1M- 4isplay of new incoming SMS.
%T<.6MS Selection of SMS memory.
%T<.M(= SMS string format, how they are compressed.
%T<.M(/
/ead new message from a given memory
location.
%T<.M(S Send message to a given recipient.
%T<.M(4 4elete message.
% @/-?= -1T/;4U.T-;1 T; !"#$
M-./;.;1T/;00?/A
When we have to learn about a new computer we have to familiariBe about the
machine capability we are using, and we can do it by studying the internal hardware
design &devices architecture', and also to know about the siBe, number and the siBe of the
registers.
% microcontroller is a single chip that contains the processor &the .6U', non9
volatile memory for the program &/;M or flash', volatile memory for input and output
&/%M', a clock and an -C; control unit. %lso called a Dcomputer on a chip,D billions of
microcontroller units &M.Us' are embedded each year in a myriad of products from toys
to appliances to automobiles. =or e+ample, a single vehicle can use 3" or more
microcontrollers. The following picture describes a general block diagram of
microcontroller.

&4s#5 The %T!)S#* is a low9power, high9performance .M;S !9bit microcontroller
with !7 bytes of in9system programmable =lash memory. The device is manufactured
using %tmel:s high9density nonvolatile memory technology and is compatible with the
industry9standard !".#$ instruction set and pinout. The on9chip =lash allows the
program memory to be reprogrammed in9system or by a conventional nonvolatile
memory pro9grammer. @y combining a versatile !9bit .6U with in9system programmable
=lash on a monolithic chip, the %tmel %T!)S#* is a powerful microcontroller, which
provides a highly fle+ible and cost9effective solution to many, embedded control
applications. The %T!)S#* provides the following standard featuresA !7 bytes of =lash,
*#E bytes of /%M, ,* -C; lines, Watchdog timer, two data pointers, three $E9bit
timerCcounters, a si+9vector two9level interrupt architecture, a full duple+ serial port, on9
chip oscillator, and clock circuitry. -n addition, the %T!)S#* is designed with static logic
for operation down to Bero freFuency and supports two software selectable power saving
modes. The -dle Mode stops the .6U while allowing the /%M, timerCcounters, serial
port, and interrupt system to continue functioning. The 6ower9down mode saves the
/%M con9tents but freeBes the oscillator, disabling all other chip functions until the ne+t
interrupt
The hardware is driven by a set of program instructions, or software. ;nce familiar with
hardware and software, the user can then apply the microcontroller to the problems
easily.

The pin diagram of the !"#$ shows all of the inputCoutput pins uniFue to
microcontrollersA
The following are some of the capabilities of !"#$ microcontroller.
-nternal /;M and /%M
-C; ports with programmable pins
Timers and counters
Serial data communication
The !"#$ architecture consists of these specific featuresA
$E bit 6. Gdata pointer &46T/'
! bit program status word &6SW'
! bit stack pointer &S6'
-nternal /;M 5k
-nternal /%M of $*! bytes.
5 register banks, each containing ! registers
!" bits of general purpose data memory
,* inputCoutput pins arranged as four ! bit portsA 6"96,
Two $E bit timerCcountersA T"9T$
Two e+ternal and three internal interrupt sources ;scillator and
clock circuits.
6LOC( DIAGRAM5
8051
*ela&
*ela&
*ela&
*ela&
+,
-
.80
/
,evel
Convert
er
SMS

You might also like