Documente Academic
Documente Profesional
Documente Cultură
Abstract - This paper introduces a friendly system to control more and more available, affordable and interesting to the
the home appliances remotely by the use of mobile cell wider public. What once was not far from novelty products,
phones; this system is well known as "Home Automation like the "Clapper" that switches the lights on by the clap of
System" (HAS). your hands, is now becoming an important factors of utility,
The designed system covers the most important required
convenience and usability in modern houses. These factors
factors in home automation system such as flexibility, are added to the already substantial possibilities of
security, easy to use, the ability to feedback information to entertainment and security created by home automation[1].
the client immediately, … etc. Accessibility aspects of home automation also became more
acceptable, considering the current demographical shift in
The presented system uses the J2ME language to program the western world, which will create an increased demand
the client mobile which sends information to the service for accessibility in homes and possibly for related facilities
mobile and this controls the operation of the appliances via a such as remote health monitoring.
PIC microcontroller which connected to it and programmed
The problem of HAS is that, these systems are not always
in such a way that introduces the main characteristics of the
system. Optocoupler and static power switch (TRAIC) are fully accepted by ultimate users, especially the old and
used as the interface devices between the PIC and the home disable, arguable the ones that need it the most. It is the goal
appliances. of researchers to find out how to introduce home automation
into our lives so as to only affect us positively. As an
The proposed HAS in this paper is implemented practically, example, that effort to make system usable and affordable
tested and gave the correct and expected results. by any user helped the user of old, cheap, and simple
technologies like the use of mobile cell phones and the
exploitage of the available mobile network to transfer data
Key words: HAS, Home Automation, DTMF, PIC Microcontroller,
J2ME, Voice Message Feedback.
from anywhere site client in order to remote control the
home appliances at anywhere site all over the world.
I. INTRODUCTION Another example is the use of X-10 protocol to transmit
data to home network. The X-10 technology has also many
The idea of home automation system (HAS) has been advantages to control the home appliances [3].
implemented for some years. It began with the concept of The main parameters by which the HAS can be estimated
domotic which is the combination of computer application and are: interoperability (the capability of devices of different
robot technology. In other words, it is the control of home types and from different manufactures to communicate and
appliances by means of a computer [4]. Then the concept is cooperate), scalability, security, availability, usability,
developed to a modern one, it is talking about the interaction existence of multiple standards, simplicity, the ability to
of technologies and services applied to different buildings feedback information to the client, friendly, and flexibility.
with the purpose of increasing security, comfort, These represent a good reasons which call the attention of
communication, and energy saving. companies to enter quickly this emerging market, also they
Home automation technology, although not yet as widely represent a great research opportunity in creating new fields
adopted in most part of the world as in the US, is becoming
532
Home server controller
GSM
AC
Main
Master Server
Voice message
phone cell phone
533
The DTMF outputs will be connected to the miicrocontroller to The CM8870/70C’s internal architectture consists of a band
allow action to be taken corresponding to the rreceived DTMF split filter section which separates thee high and low tones of
tone. The DTMF tones will produce vvarying outputs the received pair, followed by a dig gital decode (counting)
depending on the keys pressed by thhe user. The section which verifies both the frequ uency and duration of
microcontroller will use this information to determine and the received tones before passing the resultant 4-bit code to
validate the sequence of keys entered by the usser. the output bus.
The microcontroller programming will executte this sequence In a single-ended configuration, the in nput pins are connected
information as output order to power driver circuit or voice as shown in figure (3). The inteernal clock circuit is
message unit. completed with the addition of a staandard television color
The control system consists of the following coomponents: burst crystal or ceramic resonator having a resonant
frequency of 3.579545 MHz.
1. DTMF Really there are also two important pins of a DTMF,
Dual Tone Multiple Frequency (DTMF) , tthe DTMF is a a. The TOE (pin 10): (Tri-State outtput enable) pin is an
decoder when any key on the cell phone iss pressed a two active low input used to disable/enablle the output latch. The
different frequencies are generated, the DTM MF detects these TOE pin will be connected to ground d in disable the output
frequencies and decode a four digits latchedd output whose with high impedance, it is useful in caase of unwanted output
value depends on the pressed key. For examplee, if bottom "1" code, and connect to VDD in order to o have the output latch
is pressed on the keypad the DTMF decoder output is 0001, if enabled at all times.
bottom "9" is pressed the decoder output is 1001 and so b. The STD signal (pin 15): this signaal goes high during the
on.[5] time any valid key is pressed, if the key
k is released the STD
The presented system uses the CM8870 DTM MF decoder to goes low, this signal is using in the prresented system; to tell
allow the system to decode the DTMF signals sent by the user a microcontroller that the key is pressing and DTMF tone
through server cell phone in to binary code, theese digital codes are transmitting and the output latch h has been updated, at
fed to microcontroller input. The CM88770/70C DTMF this time a microcontroller read the daata.
integrated receiver provides the design engineer with not only
low power consumption its Less than 35mW power 2. PIC Microcontroller
consumption, Uses quartz crystal or ceram mic resonators, The microcontroller is the main unit in presented design, it
Adjustable acquisition and release times, 18-piin DIP ( refer to takes the sequence order code from m DTMF decoder and
figure (3)), Power down mode, Buffered OSC3 output (PLCC translates it as programming to output devices for
package only) and by grounding pins 5 annd 6, but high controlling (on-off) or read the preesent state, check the
performance in a small 18-pin DIP, SOIC, oor 20-pin PLCC password and change it also control the
t voice messages, i.e
package configuration. by PIC microcontroller all the featuress of the presented HAS
are provided. We use pic16f877A whose w pin diagram is
shown in figure (4).
534
3. Feedback circuit (voice messages) (ISD2560).
As mention in the features that presented in this paper, the
voice messages will play back to the user at different states.
The circuit which feeds back (or give) the necessary
information to the user is isd2500 series, we used ISD2560
for our design. The feedback information is a voice
messages in Arabic language, of course it is simple to
record the necessary messages in any desired language. The
recorded messages are:
"wrong data entering" if any wrong data is entered, "the
apparatus in on state" if the apparatus is in on-state, "the
apparatus is changed to on state" if the apparatus state is
changed from off to on, "the AC power if off" if there is no
electrical current in the house, "the apparatus in off state" if
the apparatus is in off-state, "the apparatus is changed to off
state" if the apparatus state is changed from on to off.
These voice messages are recorded and then playback a
Figure 4. Shows the pin configuration for the PIC16F887. specific message at the required instant, to do that we must
consider the addressing of ISD2560 to parted 60 sec of ISD
The most important issue when using the PIC is the port in to 6 messages each message 3 second (3/0.1=30) (since
configuration. The port functions are configured by writing the resolution of 2SD260 is 0.1) the address is at 30 but we
data into specific internal registers that called TRIS, in our choose 32 in order to decrease the addressing lines to 3
design we use ports as following: only, the messages addresses are shown in table (1) while
figure (6) shows the pin diagram and connection circuit of
PortC: as an input that connects to DTMF output. ISD2560.[10]
PortD: as an output that connects to power isolation circuit, Then, the voice circuit needs only 3 lines (A5,A6, & A7) for
which interface between microcontroller and home messages addressing and required only 2 lines to control the
appliances. ISD2560 mode of operation (PD and CE ) these lines are
PortB: as an output that connects to voice message circuit
tied from the microcontroller. The procedure of controlling
(ISD2560) divided in to the control order of ISD and message
the play back of the voice messages is as follows:
address.
1. P/R should be always high in play back voice messages,
PortE connects to led to mentoring each part.
we can connect it to Vcc at all the time, in our case this
Figure (5) shows the port construction circuit of
controlled pin don’t need a specific line from
microcontroller in addition to oscillator circuit.
microcontroller.
2. CE pulse low to Playback starts, this pulsed are given
from microcontroller output.
3. The PD pin should be LOW, during the message play
back after that it should active high to Stop/Reset, also
taken from microcontroller output line.
Msg. A7 A6 A5 Msg.
No. Addr Duration
(sec)
1 00 0 0 0 0 Æ <3.2
2 32 0 0 1 3.2 Æ 6.4
3 64 0 1 0 6.4Æ <9.6
4 96 0 1 1 9.6Æ <12.8
5 128 1 0 0 12.8Æ < 16
6 160 1 0 1 16 Æ < 16.2
535
VI. OVERALL SYSTEM DESIGN
Figure (7) shows the flowchart of the main program of the
HAS presented in this paper.
The PIC will be programmed using the PIC ProBasic
complier The IDE allows the PIC to be programmed using a
high level language. The code is compiled into a compatible
HEX file and then burned to the PIC. The device used to
“burn” the PIC is the winpic programming.
536
8. The procedure is as follows: flexibility, security, friendly, in addition to the existence of
• if user presses '0' it means that read the present state, feedback on line messages to inform the master about the
the program will wait until user presses the number of state of the system and the appliances.
device which want to read the state, and the program
will read the (output port state) and check it if the
specify pin of this device is low or high, if its low the VIII. REFERENCES.
program will goes to off present message subroutine [1] [1] Van Der Werff, M. Gui, X. Xu, W.L. Massey Univ.,
which play back the voice message of this case, and it Palmerston North, New Zealand "A Mobile-based home
automation system" IEEE,2006.
is the same in case of high state the voice message of
ON present state will be playback. These message is [2] [2] Julio Sanchez, Maria P. Canton, "JAVA Programming for
Engineers", CRC Press LLC, Printed in the United States of
controlled by send the specific order from portA to America, © 2002
ISD2560. [3] [3] Jason Chiang-"Cell Phone Security System", Cornell
• If user presses '#' it means that change the present state. University-May 2006
the program will wait until user presses the number of [4] Computer Automation Technology, Inc. "Discussion about
device which want to change its state, after that the DTMF decoding"; Fort Lauderdale, Florida.
program change a specific pin's state, At this time the [5] [5] David P. Marchetti, Eric White, Aaron Sanford "DTMF
Automated Door System", School of Electrical Engineering and
On_done message and Off_done message will be play Computer Science, University of Central Florida, Orlando,
back by send specify order from port A to ISD2560. Florida ; May 2007
• If user presses '*' it means that change the password, [6] [6] Sid Katzen, The Quintessential PIC Microcontroller,
the program will stored the four entered digit after Engineering – Monograph (English), 2000, Springer-Verlag,
the"*" in EEPROM in specific location of password. [7] [7] Microcontroller Programming The Micro-chip PIC, Julio
Sanchez, Maria P. Canton, CRC Press, Boca Raton London New
9. After each step from a preview step the program will back York, 2007.
to state-action label and wait next entered. [8] [8] PIC micro MCU C® An introduction to programming
10. During call, the program is waiting until any key is The Microchip PIC in C By Nigel Gardner, Copyright® Bluebird
pressed, the counter will count the time if it exceeding 30 Electronics 2002, USA.
second the system will disconnect the call phone by send [9] [9 ] Issa Batarseh, " Power Electronic Circuits", Jone Wiley and
pulse from RA5 in port A to server cell phone. Sons, Inc © 2004.
[10] [10] Winbond electronic corp. " Single-chip, multi messages
voice record/playback device IDS-60,75,90, & 120 seconds
Figure (8) shows the detail of overall circuit of the proposed duration, may 2003, USA.
HAS.
VII. CONCLUSIONS
The presented HAS in this paper is realized practically, tested
for multi modes of operation and gave an excellent control of
the home appliances under test. The system presented in this
paper introduced a friendly system to control the home
appliances remotely by the use of mobile cell phones. The
proposed system is characterized by its grand features
required for the modern home automation system such as
537
Figure 8. Overall circuit diagram of the proposed HAS.
538