Documente Academic
Documente Profesional
Documente Cultură
REG#: 2009-04-01997
SIGNATURE:
DECLARATION
Certification
I declare that this report and the work described in it are my own work, with any
contributions from others expressly acknowledged and/or cited.
I declare that the work in this report was carried out in accordance with the Regulations of
the University of Dar es Salaam and has not been presented to any other
University for examination either in Tanzania or overseas. Any views expressed in the
report are those of the author and in no way represent those of the University of Dar es
Salaam.
SIGNED:........................................................
DATE:..........................
This report may proceed for submission for assessment for the award of
Date:..........................
Date:..........................
ii
ABSTRACT
This project is designed to make home appliances easy to control when a user is not at home.
The need for being physically present to control these appliances is eliminated by
application of this project. A project design and implement home appliances control system.
Using a mobile phone the development of the control system will be carried out using SMS.
This will communicate with a GSM modem, which in turn controls the devices attached to
microcontroller modules. When the action has been carried out then a response is sent back
to the user to give feedback about the status of the appliances.
I have achieved to specify requirements of the system, designing and analyses several parts
of the system.
This report consists of four chapters; Chapter 1 explaining Introduction about the project,
Chapter 2 explaining Literature review, Chapter 3 explaining Requirement capture, analysis
and designing and Chapter 4 explaining Conclusion and Recommendation.
iii
ACKNOWLDGEMENTS
First of all I would like to thank the almighty God for keeping me strong both mentally
and physically during the development of my project from the early stages up to this
point when I am completing this report.
A lot of thanks should also go to all the instructors from the College of Information and
communications Technologies for the knowledge obtained from them has been helpful
and greatly applicable in my project.
I also thank my fellow students, friends and family. Their material and moral
support is hugely appreciated as it has played a major role in my project.
For anyone who has played part in helping me in my project to this point but has not been
mentioned in this page, it does not mean your assistance is not appreciated; you are
all honored for your contribution. Blessed be you all for your assistance.
iv
TABLE OF CONTENTS
UNIVERSITY OF DAR ES SALAAM ................................................................................................. i
DECLARATION ................................................................................................................................... ii
ABSTRACT ......................................................................................................................................... iii
ACKNOWLDGEMENTS .................................................................................................................... iv
LIST OF SYMBOLS, ABBREVIATION AND NOMENCLATURE ............................................... vii
LIST OF FIGURES .............................................................................................................................. ix
LIST OF TABLES................................................................................................................................. x
CHAPTER ONE .................................................................................................................................... 1
1.1 BACKGROUND ......................................................................................................................... 1
1.2 MOTIVATION ............................................................................................................................ 1
1.3 PROBLEM STATEMENT.......................................................................................................... 1
1.4 OBJECTIVES.............................................................................................................................. 2
1.4.1 Main objective ...................................................................................................................... 2
1.4.2 Specific objectives ................................................................................................................ 2
1.5 METHODOLOGY ...................................................................................................................... 3
1.5.1 Literature reviews ................................................................................................................. 3
1.5.2 Problem analysis and requirement specifications ................................................................ 3
1.5.3 System design and analysis .................................................................................................. 3
1.5.4 Implementation ..................................................................................................................... 3
1.5.5 Testing of the system............................................................................................................ 3
CHAPTER TWO ................................................................................................................................... 4
2.1 INTRODUCTION ....................................................................................................................... 4
2.2 EXISTING SYSTEM .................................................................................................................. 4
2.3 GSM TECHNOLOGY AND SHORT MESSAGE SERVICE ................................................... 5
2.3.1 GSM technology .................................................................................................................. 5
2.3.2 Basic Specification in GSM ................................................................................................ 7
2.3.3 Short Message Service .......................................................................................................... 8
2.3.4 What makes SMS messaging so successful worldwide? ..................................................... 9
2.3.5 Short Message Service Center (SMSC) ............................................................................. 10
CHAPTER THREE ............................................................................................................................. 12
3.1 INTRODUCTION ..................................................................................................................... 12
v
4.2
4.3
CONCLUSION ................................................................................................................... 22
4.4
RECOMMENDATION ....................................................................................................... 22
REFERENCES .................................................................................................................................... 23
APPENDICES: .................................................................................................................................... 24
APPENDIX A: PROJECT TIME SCHEDULE .............................................................................. 24
APPENDIX B: PROJECT TIME SCHEDULE .............................................................................. 25
APPENDIX C: COST ESTIMATIONS .......................................................................................... 26
vi
DC - Direct Current.
I/O - Input/output.
MODEM - Modulator/Demodulator.
Rx-Receiver
Tx- Transmitter
viii
LIST OF FIGURES
Figure2.1: GSM Architecture.6
Figure 3.1: Block diagram showing the hardware components arrangement14
Figure 3.2: Block diagram of a linear power supply..17
Figure 3.3: Power supply circuit..18
Figure 3.4: buzzer simulation circuit19
Figure 3.5: Specifications of the buzzer20
Figure 3.6: Appliance interface circuit..20
Figure 3.7: The microcontroller PIC 16F876A..21
ix
LIST OF TABLES
Table 2.1 GSM Air Interface Specifications..7
Table 3.1: Hardware requirements and their specifications..13
Table 4: Project schedule for semester 1...24
Table 4.2: Project schedule for semester 225
Table 4.2: Cost estimates for the project26
xi
CHAPTER ONE
INTRODUCTION
1.1 BACKGROUND
Home appliances are necessities to help us survive in our busy lifestyles and also to enjoy
more time with our family and friends. A desire to improve lifestyle a system can be
formulated to control these household utilities. The motivation is to facilitate the users to
automate their homes having ubiquitous access. Now a days most of the systems are
automated in order to face new challenges and achieve present day requirements. Automated
systems have less manual operations so that the flexibility, reliabilities are high and accurate.
Everyone will find these items making their lives easier and be more appreciated.
This project is about designing a control system to make home appliances easy to control
when a user is not at home. The system is a GSM based control system, using a mobile
phone the development of control system will be carried out using SMS.
1.2 MOTIVATION
I take this project as challenge case study but also home appliances users should no longer
worry about the state of the appliances to whether to switch ON/OFF or do other functions
when they leave the house as this project come with a scientific solution of controlling home
appliances remotely.
1.3 PROBLEM STATEMENT
Home appliances have become unavoidable appendages in our lives in the present day hectic
lifestyle. Super energy efficient models of every appliance out there use less energy, and
therefore enable the customers to save money. People are willing to pay more for these
particular appliances, because in the long run, they're actually saving a lot more money than
they're spending [1].
With the technological advances of today's appliances, people are obviously drawn to these
products. As we are using them every day to simplify our daily chore, a user may forget to
manually switch off when he/she left at home. Excessive electrical power is going to be
consumed with no purpose. With the development of this project those bills from excessive
1
electrical power consumption are going to be reduced by developing an automatic system for
controlling home appliances using mobile phone messages and this will ultimately save a lot
of time because dont have to come back for simple things such as to turn OFF/ON switches
at their home once they go to their respective work.
In addition, a user can take advantage of that in such a way that a person getting off the
office does not get melted with the hot climate as he/she can be able to control different
states of appliances.
1.4 OBJECTIVES
1.4.1 Main objective
The project is aimed at designing and implementing the use of mobile phone messages to
remotely control home appliances.
1.4.2 Specific objectives
The specific objectives are:
1.5 METHODOLOGY
There are several known control system development approaches and methodologies, but
my project will rely on decomposition down into modules and examining them how they
relate to each other.
The following basic steps or approaches will be applied:
1.5.1 Literature reviews
In this approach, I will be reviewing some of the literatures like GSM and SMS
TECHNOLOGY books. I will also consult with my supervisor hand to hand in order to get
the necessary corrections and guidance on the project progress. In addition to that I will also
consult other lectures and experts in the best way possible.
1.5.2 Problem analysis and requirement specifications
In analyzing the problem I will be looking on the current existing system and understand its
limitations and knowing what should be added to improve the system or develop a new
system and meet my objectives.
1.5.3 System design and analysis
Designing block diagram of the system and analyze it block by block called modules.
1.5.4 Implementation
Implementation of a design into a proper working system-this will involve hardware
interconnections and software simulations as appear in a design part to form a well working
system.
1.5.5 Testing of the system
This is to check if the system is properly working and meet the objectives and retesting will
be done if the functionality and performance requirements have not been full filled.
CHAPTER TWO
2. LITERATURE REVIEW
2.1 INTRODUCTION
This part explains the original existing systems, their features, working principles,
limitations and advantages and disadvantages of it, it also explains GSM and SMS
technology.
2.2 EXISTING SYSTEM
A manual control exists where a user has to be near the appliances to switch ON/OFF
appliances for the usage and to keep track of the status of the appliances a user also has to
come from where he/she is to switch ON/OFF the intended appliance, its advantages is that
a user is assure of total control regardless of any conditions such as network problems,
disadvantage is that this may be wastage of time and uneasy lifestyle as a user will find
having these appliances as a burden.
Infrared remote control system. The use of electronic controllers for controlling electrical
home appliances can be found widely around the world especially in the developed
countries. By time, wireless technology such as infrared light communication. This wireless
technology is widely commercialized and can be found almost anywhere. Though appealing,
it still has a weakness due to the use of infrared light as data transmission medium. When
there are objects blocking the infrared receiver, the process of communication. Nowadays,
almost every equipment and controlling those electrical appliances becomes difficult due to
the point-to-point or line-of-sight communication mode [2]. From this situation, came the
idea to create a wireless electronics control system utilizing Bluetooth technology for data
transfer and control of electrical appliances [2].
Home appliances control system with cellular phone via Bluetooth, in this project, a system
that uses the application of wireless Bluetooth as data transfer medium was built. Bluetooth
technology operates over unlicensed, universally available frequency of 2.4 GHz, it can link
digital devices within a range of 10m at the speed of 1Mbps[3], the process of controlling
these appliances became easy and more automatic compared to use of infrared and manual
control due to the advantage of no need of the point-to-point or line-of-sight communication
mode. But this system was limited to a Personal Area Network due to a small available
range for Bluetooth wireless device to communicate (10m-15m maximum).
2.3 GSM TECHNOLOGY AND SHORT MESSAGE SERVICE
2.3.1 GSM technology
GSM is a global system for mobile communication GSM is an international digital
cellular telecommunication. The GSM standard was released by ETSI (European Standard
Telecommunication Standard) back in 1989. The first commercial services were launched
in 1991 and after its early introduction in Europe; the standard went global in 1992.
Since then, GSM has become the most widely adopted and fastest-growing digital cellular
standard, and it is positioned to become the worlds dominant cellular standard.
Todays second-generation GSM networks deliver high quality and secure mobile voice
and data services (such as SMS/ Text Messaging) with full roaming capabilities across
the world.
GSM platform is a hugely successful technology and as unprecedented story of global
achievement. In less than ten years since the first GSM network was commercially
launched, it become, the worlds leading and fastest growing mobile standard, spanning
over 173 countries. Today, GSM technology is in use by more than one in ten of the
worlds population and growth continues to sour with the number of subscriber
worldwide expected to surpass one billion by through end of 2003.
Todays GSM platform is living, growing and evolving and already offers an expanded
and feature-rich family of voice and enabling services
The Global System for Mobile Communication (GSM) network is a cellular
telecommunication network with a versatile architecture complying with the ETSI GSM
900/GSM 1800 standard. Siemens implementation is the digital cellular mobile
communication system D900/1800/1900 that uses the very latest technology to meet
every equipment of the standard.
Figure2.1:GSMArchitecture
S.N.
Parameter
Specifications
45 MHz
3 Time slots
270.833333kbps
Frame Period
4.615ms
576.9microsec
Bit Period
3.692 microsecond
10
Modulation
0.3 GMSK
11
ARFCN Number
12
200 kHz
13
Interleaving
40 ms
14
13.4kbps
Supplementary ISDN services, are digital in nature, and include call diversion,
closed user group, and caller identification. Supplementary services also
include the short message service (SMS).[4]
2.3.3 Short Message Service
SMS stands for Short Message Service. It is a technology that enables the sending and
receiving of message between mobile phones. SMS first appeared in Europe in 1992. It
was included in the GSM (Global System for Mobile Communication) standards right at
the beginning. Later it was ported to wireless technologies like CDMA and TDMA. The
GSM and SMS standards were originally developed by ETSI. ETSI is the abbreviation
for European Telecommunication Standard Institute. Now the 3GPP (Third Generation
Partnership Project) is responsible for the development and maintenance of the GSM and
SMS standards.
One SMS message can contain at most 140 bytes (1120 bits) of data, so one SMS
message can contain up to:
160 characters if 7-bit character encoding is used. (7-bit character encoding
is suitable for encoding Latin characters like English alphabets).
70 characters if 16-bit Unicode UCS2 character encoding is used. (SMS text
messages containing non-Latin characters like Chinese character should use
16- bit character encoding).
Once the message is sent the message is received by SMSC, which must then get it to the
appropriate mobile device. To do this the SMSC sends a SMS request to Home Location
Register (HLR) to find the roaming customer. Once HLR receives the request, it responds
to the SMSC with the subscribers status:
1. Inactive or active
2. Where subscriber is roaming.
If the response is inactive, then the SMSC will hold onto the message for a period of
time. When the subscriber access his device, the HLR sends a SMS notification to the
SMSC and the SMSC will attempt delivery.
8
The SMSC transfer the message in a Short Message Delivery Point to Point format to the
serving system. The system pages the device, and if it responds, the message gets
delivered. The SMSC receives verification that the message was received by the end user,
then categorizes the message as sent and will not attempt to send again.
SMS provides a mechanism for transmitting short message to and from wireless devices.
The service makes use of an SMSC, which acts as a store and forward system for short
messages.
One major advantage of SMS is that it is supported by 100% GSM mobile phones.
Almost all subscription plans provided by wireless carriers include inexpensive SMS
messaging service.
2.3.4 What makes SMS messaging so successful worldwide?
SMS is so success all over the world. SMS messaging is now one of the most important
revenue sources of wireless carriers. Some of the reasons are discussed below.
SMS Messages can be sent and read at any time
SMS Message can be sent to an offline Mobile Phone.
SMS Messaging is less disturbing while you can still stay in touch.
SMS are supported by 100% GSM Mobile Phones and they can be
Exchanged between different wireless carriers
SMS reseller and SMS broker-: SMS service provider buy a large amount
of SMS message from a lot of wireless carrier at low price per SMS
message. They then sell the SMS message at a price higher than the cost.
Another advantage of using the SMS connectivity services of SMS service providers is
that their network coverage is very good. They work hard to cover as many wireless
networks as possible so as to make their services attractive.[5]
2.3.5 Short Message Service Center (SMSC)
SMSC is a combination of hardware and software responsible for the relaying and storing
and forwarding of short message between an SME and mobile device.
The SMSC must have high reliability, subscriber capacity, and message throughput. In
addition, the system should be easily scalable to accommodate growing demand for SMS
in the network.
Normally, an IN-based solution will allow for a lower entry cost compared pointing
solutions because it can support other applications on single hardware platform and share
resources, thereby spreading the deployment cost over several services and applications.
Another factor to be considered is the ease of operation and maintenance of the
application, as well as the flexibility to activate new services and upgrade to new
software releases.
Nepal has two mobile companies
Nepal telecommunication
Both companies have their own SMSC. Nepal telecommunication has +9779851028801.
Similarly Spice Nepal Pvt. Ltd. has +9779800009000
10
11
CHAPTER THREE
3. REQUIREMENT CAPTURE, SYSTEM DESIGN AND SPECIFICATIONS
3.1 INTRODUCTION
This chapter will describe how the features and functions of SMS based control system will
be developed. The stated problem will be decomposed into smaller modules and working on
individual modules one after another and at the end, this chapter will responsible to answer
the following important questions:
What are the general system requirements?
What are the general specifications for the system?
Which features and functions are to be developed?
How will be the flow chart of the control unit system?
What are the design specifications for the modules?
3.2 SYSTEM REQUIREMENTS AND SPECIFICATIONS
3.2.1 Functional requirements and Specifications
The system should meet the following specifications and functional requirements for the
user to avail the great advantage of this system:
The system will consist of three parts (sub systems) which are Cellular phonesends and receives text messages from control unit, control unit-communicate
with a network sends instructions to the appliances and response back to the
cellular phone and appliances-a controlled part.
There will be two operating environments .The cellular phone will operate indoors
and outdoors whereas the control unit will operate indoors within the temperature
and humidity limits for proper operation of the hardware.
The system will control two home bulb appliances by switching them ON and
OFF and change intensity of light.
12
The control unit will have the ability to connect to the cellular network
automatically.
The control unit will control the electrical appliances by issue commands
to the electrical appliances through a simple control circuit.
The microcontroller within the control unit should be able to detect the status of
the appliances and send status messages back to the cellular phone through the
cellular network.
The system should provide user authentication through cell phone number
identification and/or password verification contained within the (SMS) text
message.
The system should have useful features such as notification of signal strength
of the network used by modem and power status of the system to make it reliable.
Microcontroller
2.
GSM Modem
Specifications
PIC 16F876A
Siemens GSM/GPRS
Smart Modem
3.
Mobile phone
4.
Resistor
Nokia phone
MINRES6K2,MINRES7K5,
MINRES9K1
5.
Transistor
6.
LCD
7.
Diodes
8.
9.
Bulbs
240 V AC bulb
13
ii.
ATMEL programmer.
This is the software used to load the program to the microcontroller.
iii.
LCD DISPLAY
GSM NETWORK
GSM MODEM
MICROCONTROLLER
CELLULAR PHONE
RELAY AND
TRIAC
CONNECTIONS
APPLIANCE 2
( BULB 2 )
APPLIANCE 1
( BULB 1 )
BUZZER
POWER
SUPPLY
14
Power Supply:
Power supply provides regulated (step-down rectified) DC power supply from AC mains to
circuit components (ICs, relays, microcontroller and other components of the system).
The buzzer:
The buzzer is a device which when activated it produces an audible tone. It will be used in
this system to produce notifications about signal strength of the mobile of the system in
audible sound form.
It will be connected to one of microcontroller output pin. So microcontroller will give high
or low signal to switch on/off buzzer. For example, the buzzer will sound every time the
signal strength of the network used by modem is low or there is power cut to the system
from power supply due to the electric failure.
GSM modem
In the proposed system, modem is used to made communication between the microcontroller
and the user mobile (cellular) phone via GSM network. It will be connected to
microcontroller pins and has a SIM card in it so as to act as a GSM node. GSM modem
receives the SMS sent by the user who wishes to operate any of the connected appliances
and then forwards it to the microcontroller. The microcontroller will initiate messages every
time a change is done in the appliances by providing their status, and then the modem will
forward this message to the mobile phone of the user.
Mobile phone:
In this system the mobile phone will be used by user of the system to remotely communicate
with the GSM modem. It will be used for sending the text message to ask for the status
and/or to do the controlling actions such as switching ON/OFF the bulb or controlling
intensity of the bulb. Also the mobile phone will receive various status messages from the
controller side to indicate any change of the appliances status.
15
LCD display:
It will be used to display the status of the operation performed by microcontroller (status of
the appliances) and makes overall system user friendly.
Microcontroller:
The microcontroller is the central brain of the system, and it acts as the controller of all
actions in the system. The microcontroller will be connected to other blocks through its pins
and reads various signals from those parts, interprets them and perform the required action
by sending an appropriate signal to the respective device through output pins.
To enable communications with remote mobile phone, the microcontroller is connected to a
GSM modem in one of its pin. Whenever a user wants to change the status of the appliances
he/she sends a message to the GSM modem using a mobile phone, a microcontroller decodes
the received messages and sends the appropriate instructions to appliances to control them
by either switching ON/OFF or change intensity of light for bulb or speed of the fan.
Microcontroller also monitor completion of actions controlled and send the status of the
appliances back to the mobile phone of a user.
Relay and TRIAC connections:
Relay is used to isolate one electrical circuit from another. It allows low current control
circuit to make or break an electrically isolated high current circuit path; this will enable it to
act as a switch in our system to switch ON/OFF appliances.
TRIAC is a semiconductor device which has ability of changing conductivity through the
two terminals depending on the triggering levels of the gate. It starts conducting when there
is enough voltage passing through the gate, by utilizing that ability digital switching between
speeds can be implemented and variation of intensity of the bulb can be achieved.
Relay and TRIAC connections will enable our system to be able to switch ON/OFF
appliances and perform another control such as change intensity of bulb, speed of the fan.
16
Appliances:
Are the controlled household utilities, can be switched ON/FF or changed to any status
depending on the user requirements.
Notification module
Appliance module
Control module
Display module
The maximum and minimum voltage ratings are taken into consideration while designing
power supply.
The 7805/7812 voltage regulators which are used to provide 5V/12V output
respectively.
AC power
output
Rectifier, Filter
(AC TO DC
ADAPTER)
Regulator
Filter
DC
(7805/7812)
17
18
Has unused 20 pins which can be used to attach outputs for appliances.
20
21
CHAPTER FOUR
4.
those working or living in those places when it comes to controlling their appliances,
equipment. This control system has to be perceived by the society and the world at large as a
necessary and vital technological upgrade.
REFERENCES
1. ETimes.(2008) Home appliances [Online]. Available from: http://www.realtorindian.
com/?&action=tips&sec=General%20Information&sub=Home%20Appliances
[Accessed 22nd October 2012].
2. Shafanizam, M., Arief Y. Z. & Adzis Z. (2012) Development of electrical appliance
Controlling System using Bluetooth Technology. International Journal of
Engineering and Innovative Technology, 1(4), 1-2.
3. Sriskanthan, N., Tan, F., & Karande, A. (2002). Bluetooth based home automation
system. School of Computer Engineering, Nan yang Technological University.
Report number: 3.
4. Peersman,C.,Cvethovic,S.,Grif-ths,P.,Spear,H.,2000.Theglobalsystemformobilecom
municationshortmessageservice.IEEEPers.Commun. 7, 1523.
5. Collesei,S.,Tria,P.,Morena,G.,2005.Short message service based applications in the
GSM network. In: Proceedings of Fifth IEEE International Symposium on Personal,
Indoor and Mobile Radio Communications,vol.3,pp.939943.
6. Freescale Semiconductor.(2007).Selecting the wright Microcontroller unit[PDFtype]. http: //www.freescale.com/files/microcontrollers/doc/app_note/AN1057.pdf
23
APPENDICES:
APPENDIX A: PROJECT TIME SCHEDULE
This is the schedule activity that indicate the starting of first semester to the end of first
semester
ACTIVITY 1
ACTIVITY 2
ACTIVITY 3
ACTIVITY 4
ACTIVITY 5
ACTIVITY 6
ACTIVITY 7
ACTIVITY 8
24
WEEK 15
WEEK 14
WEEK 13
WEEK 12
WEEK 11
WEEK 10
WEEK 9
WEEK 8
WEEK 7
WEEK 6
WEEK 5
WEEK 4
WEEK 3
ACTIVITY
WEEK 2
TIME IN
WEEKS
WEEK 1
PROJECT SCHEDULE(SEMESTER 1)
This is the schedule activity that indicate the starting of second semester to the end of
second semester
WEEK 15
WEEK 14
WEEK 13
WEEK 12
WEEK 11
WEEK 10
WEEK 9
WEEK 8
WEEK 7
WEEK 6
WEEK 5
WEEK 4
WEEK 3
ACTIVITY
WEEK 2
TIME IN
WEEKS
WEEK 1
PROJECT SCHEDULE(SEMESTER 2)
ACTIVITY 1
ACTIVITY 2
ACTIVITY 3
ACTIVITY 4
ACTIVITY 5
ACTIVITY 6
ACTIVITY 7
ACTIVITY 8
25
No
Component/Material
Cost/Price
1.
Microcontroller
30,000/=
2.
120,000/=
4.
10,000/=
5.
LCD
40,000/=
6.
25,000/=
7.
Connectors
8.
Stationary
20,000/=
9.
20,000/=
5000/=
270,000/=
26
27