Design and Development of an Automated Home Control System Using Mobile Phone
L.A Akinyemi1, O.O Shoewu1,, N.T Makanjuola1, A.A Ajasa1, C.O Folorunso1
1Department of Electronic and Computer Engineering, Lagos State University, Epe Campus, Epe, Lagos, Nigeria
Abstract
This paper presents design and development of an Automated Home Control System (AHCS) using mobile phone. A cell (mobile) phone acts as a modem for the control of electrical home appliances. This is achieved when the mobile phone number is dialed and an appropriate command button is pressed. The paper demonstrates how to develop a system that aids the control of remote devices using mobile phones to enable devices without infrared though connected to power sources to be controlled and considering the possibility of users to monitor the status and usage of these devices. It makes use of a programmable interface controller (PIC) to control the switching of the output. This design is customized as a central device for four pieces of home appliances using relay to activate each of the respective electronic gadgets.
At a glance: Figures
Keywords: Automated home control system, mobile phone, modem, programmable interface controller (PIC), relay, Microcontroller, Dual Multi-Tone frequency (DMTF)
World Journal Control Science and Engineering, 2014 2 (1),
pp 6-11.
DOI: 10.12691/wjcse-2-1-2
Received January 12, 2014; Revised January 24, 2014; Accepted February 13, 2014
Copyright © 2013 Science and Education Publishing. All Rights Reserved.Cite this article:
- Akinyemi, L.A, et al. "Design and Development of an Automated Home Control System Using Mobile Phone." World Journal Control Science and Engineering 2.1 (2014): 6-11.
- Akinyemi, L. , Shoewu, O. , Makanjuola, N. , Ajasa, A. , & Folorunso, C. (2014). Design and Development of an Automated Home Control System Using Mobile Phone. World Journal Control Science and Engineering, 2(1), 6-11.
- Akinyemi, L.A, O.O Shoewu, N.T Makanjuola, A.A Ajasa, and C.O Folorunso. "Design and Development of an Automated Home Control System Using Mobile Phone." World Journal Control Science and Engineering 2, no. 1 (2014): 6-11.
Import into BibTeX | Import into EndNote | Import into RefMan | Import into RefWorks |
1. Introduction
Initially communication was done by travelling from kilometre to kilometre to deliver messages but now the trend involves talking to people even when they are far away around the globe even to the extent of seeing them using the present day 3G technologies. Now mobile phones can be used to trigger their greatest revolution: by allowing us to run our homes remotely. If you are heading home early on a sunny day to your house driving through traffic in Lagos, your mobile phone can be used to switch on your central air conditioner at the touch of a keypad or even turn on your water heater system on a cold night preparing yourself for a warm shower. Fitted to a kitchen wall, the unit will communicate with tiny transponders attached to air conditioners, fridges, washing machines, microwave ovens and household appliances. Computer chips and digital networks are now so cheap, we can use them where we want, and kitchens and utility rooms are just perfect for "intelligent" improvements. Japan is already transforming domestic life through its new I-mode mobile phone that can take and transmit pictures. One unexpected use includes the ability to buy Coca-Cola cans without handing over cash. Just pass your phone in front of a scanner on one of several hundred I-mode automated vendors in Japan and your credit card account will be debited in exchange for a chilled can of Coke [4].
Controlling device using switches are common. From a few decades, controlling devices using remote control switches like infrared remote control switch, wireless remote control switch, light activated switches are becoming popular. But these technologies have their own limitations. Laser beams are harmful to mankind. Some technologies like infra-red (IR) remote control are used for short distance applications. In such case, if we have system which does not require any radiations or which is not harmful, and cannot travel for a long distance. Hence the need to design and construct a project circuit that does not require any radiations, any laser beam which has no limitation of range, therefore it can be used from any distance ranging from metres to thousands of kilometres using a simple telephone line or mobile phone. This justifies the need to automate and control the home appliances via the use of mobile phone.
Home automation is a modern technology that gives home owners the ability to take charge and control of the devices placing security and convenience in their homes even when they are not physically at home. Imagine a situation where one is not sure if one turns off an electrical appliance on rushing out of home. One can use an enabled home automation system to confirm the suspicion and turns off the appliance from one’s present location [1, 4]. The simplified block diagram for the Automated home control system using phone is shown below.
2. Literature Review
By the early 1980s, the industry moved to infrared, or IR, remote technology. The IR remote works by using a low frequency light beam, so low that the human eye cannot see it, but which can be detected by a receiver in the TV. Zenith's development of cable-compatible tuning and teletext technologies in the 1980s greatly enhanced the capabilities and uses for infrared television (TV) remotes. Today, remote control is a standard feature on other consumer electronics products, including video cassette recorders (VCRs), cable and satellite boxes, digital video disc players and home audio receivers. And the most sophisticated TV sets have remotes with as many as 50 buttons.
Zenith developed the world's first wireless trackball TV remote control, called Z-Trak. The remote works like a computer mouse - click the ball and a cursor appears on the TV screen. Roll the ball and the cursor activates control menus hidden in different corners of the screen. Then, activate something from those menu bass, treble, contrast, colour temperature, and channel [5, 6, 8].
According to Sajidullah S. Khan, Anuja Khodustar and Koli, N.A who worked on Home automation appliance (2011) and striking results were obtained in terms of reduction in delay time between the transitions of streams from client to server using Java enabled program.
More so, Kai-Hung Liang, Kuo-Han Kan, and Szu-Chi Tien (2013) who carried out work on the precision positioning with shape-memory-alloy actuators. The result obtained using the inversion of non-linear model with model-reference-adaptive system (MRAS) was robust as regards to external disturbances and the positioning performance [13].
3. Design Procedure / Methodology
In this segment, there will be general overview of the design of some of the circuits, which are used in the realization of this work. These circuits consist of the modem stage, DTMF Decoder stage, PIC Microcontroller stage, switching stage and power supply stage.
3.1. The ModemThe modem receives the signal sent from the user’s phone and sends it to the DTMF decoder which decodes the signal. A regular mobile phone will be used as a modern because of its lower cost and availability. The SIM card of the desired network will be inserted in the phone and its number becomes the access number of the device. The phone is configured such that it automatically answers incoming calls; this is to reduce the need for extra circuitry thereby minimizing the power consumption.
A NOKIA 1200 mobile phone is used as the modem because of its affordability and availability, the audio output of the phone will be connected to the DTMF decoder and its charging port will be connected to a 5v from the power supply which keeps the battery from discharging.
3.2. DTMF DecoderThis system uses Dual Tone Multi Frequency (DTMF) technology of telephone set. Every telephone set has this facility. There are two types of dialing facilities in a telephone system; pulse dialing mode and tone dialing mode. Here this system works on tone dialing mode. The DTMF mode is shortly called as tone dialing mode.
This system is divided into two sections.
1: Remote section
2: Local control section.
When a button is pressed in the telephone set keypad, a connection is made that generates a resultant signal of two tones at the same time. The two tones are taken from a row frequency and a column frequency. Its resultant frequency signal is called a “Dual Tone Multiple Frequency “. These tones are identical and unique.
A DTMF signal is the algebraic sum of two different audio frequencies which are chosen such that they are not the harmonics of each other.
By sending DTMF signals to the telephone exchange through cables or wireless, the server in the telephone exchange identifies these signals and makes the connection to the the intended receiver of the call.
Each of the low and high frequency groups comprise four frequencies from the various keys present on the telephone keypad; two different frequencies, one from the high frequency group and another from the low frequency group are used to produce a DTMF signal to represent the pressed key.
The frequencies are chosen such that they are not the harmonics of each other. The DMTF decoder circuit diagram is depicted in figure below.
When the system number is dialed the modem automatically answers and waits for the user to press a button. When a one (1) is pressed, the DTMF tone flows into U1 through C1 which filters it and R1, R2 which divide the signal. XTAL1 is a crystal which generates the operating frequency of the decoder, C2, C3 filter the oscillation. C4 and R3 determine the response time of the tone.. U1 is the DTMF decoder IC which is a HT8870 chip. It operates on a maximum of 5v DC.
3.3. Microcontroller StageThe microcontroller controls the entire operation of the circuit, its receives the decoded signals from the DTMF decoder then processes it and activates or deactivates the corresponding device by sending a logic to enable or disable the relay connected to the load. A microcontroller is used because of its low power consumption and flexibility of its functions [6].
In this design a PIC16F84A is used because it consumes lower power compared to other available microcontrollers. Its program memory contains a 1Kilobyte word which translates to 1024 instructions. Since each 14-bit program memory word is the same width as each device instruction. The data memory (RAM) contains 68 bytes. Data electronically erasable programmable read only memory (EEPROM) is 64 bytes. There are also 13 input/ output (I/O) pins that are user-configured on a pin-to-pin basis. Some pins are multiplexed with other device functions.
The microcontroller receives the signal from the Decoder in form of binary numbers then activates the corresponding device by sending a high logic to the transistor that controls the relay or if a deactivating data is received from the decoder, it sends a low logic to the transistor of the corresponding relay. Crystal XTAL2 generates the frequency needed for the operation of the microcontroller; it is a 4 MHz crystal. The microcontroller operates on a 5vdirect current (DC) supply. The data from the decoder is connected to PORTA while the transistors are connected to PORTB of the microcontroller.
This is a simple electromechanical switch made up of an electromagnet and a set of contacts. The electromagnet is used to operate a switching mechanism, but other operating principles are also used. Relays find applications where it is necessary to control a circuit by a low-power signal, or where several circuits must be controlled by one signal.
The switching transistor switches the relay which powers the Load. The transistor as a switch operates in class A mode. The relay is switched on when the microcontroller (PIC16F84) gives a HIGH output. A base resistor is required to ensure perfect switching of the transistor in saturation. The diode connected across the relay is to protect the transistor from back electromotive force (EMF) that might be generated since the relay coil present is an inductive load [9].
In this paper, Rc is the collector resistance that serves as the resistance of the relay coil, which is 400Ώ for the relay type adopted in this paper.
Hence, Parameters used in this paper are as follows:
Rc is Relay coil resistance.
is Regulated voltage from the power supply stage.
is Silicon.
is when transistor is switched off.
is from multivibrator.
is from data sheet for C9103.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() | (1) |
![]() | (2) |
![]() |
![]() |
![]() |
![]() |
![]() | (3) |
![]() | (4) |
![]() | (5) |
![]() |
![]() |
![]() |
![]() | (6) |
![]() |
![]() | (7) |
The output of the PIC16F84 triggers the transistor switching stage, which switches ON and OFF the load circuit. The switching circuit is used since the microcontroller (PIC16F84) output may not give enough current to drive the relay directly [6]. The figure below shows the schematic transistor switching based circuit of the system.
The relay uses 12V while the other sources use 5V DC. The power supply stage is a linear power supply type and involves a step down transformer, filtering capacitor, and a voltage regulator to give the various voltage levels. The circuit diagram is shown in figure 7 below.
The 220v supply mains is stepped down to 12v AC by transformer T1 then converted to DC by D1, the voltage is filtered by C5 and regulated to 5v by U2.
![]() |
![]() |
![]() |
![]() |
![]() | (8) |
![]() | (9) |
![]() |
![]() | (10) |
![]() | (11) |
![]() | (12) |
![]() |
![]() | (13) |
When the circuit is connected to the mains, 220V alternating current flows into the transformer T1 which steps it down from 220v to 12v. It is converted to direct current (DC) by a Bridge rectifying diode and filtered by C5. The voltage regulator regulates the voltage to 5v which is used to power the DTMF decoder and the microcontroller.
When the subscriber identification module (SIM) number of the mobile phone in the circuit is dialled by another phone, it automatically answers, if 1 is pressed by the caller, a DTMF tone is sent from the caller phone to the phone connected to the circuit. When a one (1) is pressed, the signal flows to the DTMF decoder through capacitor which filters it, and resistors R2, R1 act as voltage divider. The signal is decoded and a digital output is sent to the microcontroller which activates the first output by sending a high logic to the transistor connected to pin 6 of the microcontroller through the 1kΩ resistor, therefore activating the transistor. The transistor then activates the Relay RLY1 and its normally open contacts become closed, causing the 220v supply to flow to the load.
If a zero (0) is pressed, it is decoded by HT8870, then the microcontroller which sends a low logic to Q2 and deactivates the transistor therefore the relay becomes deactivated. Its normally open contacts become open causing the voltage not to flow to the load. This switches off the load.
The AHCS has a SIM card installed in its modem, when a user dials the number of the modem, the system automatically answers the call then waits for the user to press the command button; if zero is pressed the first equipment goes off but if one is pressed it automatically powers on. If two (2) is pressed, the second equipment powers on but if three (3) is pressed it goes off. However, if four(4) is pressed, the third equipment powers on and if five(5) is pressed, it goes off. Six and Seven switch on and off the equipment respectively. If eight is pressed, all the pieces of equipment power on and if nine is pressed, all will be powered off.
The system is designed for four pieces of equipment but more equipment can be used by adding more relays and changing the coding sequence of the equipment control. A password can also be added to secure the system from intruders.
The underlying principle mainly relies on the ability of DTMF (Dual Tone Multi Frequency) integrated circuits (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 sent by the transmitter or mobile phone then through the inspection of the two transmitted frequencies. It detects which button is pressed and sends a digital equivalent to the DTMF.
3.8. The SoftwareThe program of the AHCS controls the entire operation of the circuit. It is written in assembly language and compiled using MPLAB. The compiled program is transferred into the microcontroller with a programmer called PICSTART PROGRAMMER. The function of the device can easily be modified by adjusting the program in the microcontroller.
The circuit was first implemented on a breadboard and was certified working before it was soldered on a Vero board. The power supply was first soldered before other stages. The stages were soldered sequentially and at each stage, they were tested to ascertain its operability. The decoder, HT8870 and microcontroller PIC16F84 were not soldered directly on the Vero board, an IC socket of 14 pin and 16 pin were first soldered and the Decoder IC and Microcontroller IC were now inserted into the IC socket.
4. Testing and Expected Result
The various tests were carried out on different modules and striking results were obtained for each circuit diagram that makes the whole system.
Special features of the system allow end-users to use a mobile phone to carry out control activities isolatedly by pressing some certain buttons depending on the task to be carried out.
5. Conclusion
The various methods of designing automated home appliances were adopted in this paper. However, various components were designed and tested separately and collectively to ensure it does meet the specification of the end-users by avoiding the incident of fire outbreak as a result of failure to switch off the electronic gadgets which may get burnt when there is slight power surge. This makes the control of all home appliances to be easy to deal with as against the manual way.
References
[1] | Alkar, A. Z., & Buhur, U. (2005). An Internet Based Wireless Home Automation System for Multifunctional Devices. IEEE Consumer Electronics, 51(4), 1169-1174. Retrieved from https://www.thaieei.com/embedded/pdf/Automation/20022.pdf | ||
![]() | CrossRef | ||
[2] | Ciubotaru-Petrescu, B., Chiciudean, D., Cioarga, R., & Stanescu, D. (2006). Wireless Solutions for Telemetry in Civil Equipment and Infrastructure Monitoring. 3rd Romanian-Hungarian Joint Symposium on Applied Computational Intelligence (SA CI) May 25-26, 2006. | ||
![]() | |||
[3] | Conte, G., & Scaradozzi, D. (2003). Viewing home automation systems as multiple agents systems. RoboCUP2003, Padova, Italy. Retrieved from https://www.robosiri.it/ROBOCUP_2003/ROBOCUPSITOSIRI/articles/pdf/Conte.pdf | ||
![]() | |||
[4] | Delgado, A. R., Picking, R., & Grout, V. (2006) Remote-controlled home automation systems with different network technologies. Proceedings of the 6th International Network Conference (INC 2006), University of Plymouth, 11-14 July 2006, pp. 357-366. | ||
![]() | |||
[5] | Jawarkar, N. P., Ahmed, V., Ladhake, S. A. & Thakare, R. D. (2008). Micro-controller based Remote Monitoring using Mobile through Spoken Commands. Journal of Networks, 3(2), 58-63. | ||
![]() | CrossRef | ||
[6] | Murthy, M. V. R. (2008). Mobile based primary health care system for rural India. W3C workshop on Role of Mobile Technologies in Fostering Social Development, Jun 2008. | ||
![]() | |||
[7] | Potamitis, I., Georgila, K., Fakotakis, N., & Kokkinakis, G. (2003). An integrated system for smart-home control of appliances based on remote speech interaction. EUROSPEECH 2003, 8th European Conference on Speech Communication and Technology, pp. 2197-2200, Geneva, Switzerland, Sept. 1-4, 2003. | ||
![]() | |||
[8] | George Loveday Essential Electronics (Pages 241-244 Transistors, General References). Published By PITMAN (1984). | ||
![]() | |||
[9] | Robert L. Boylestad and Louis Nashelsky. Electronics Devices and Circuit Theory (eighth edition) Published by PRINCE-HALL (2002). | ||
![]() | |||
[10] | Luecke G, J.P Mize and W.N Carr. Semiconductor Memory Design And Applications (chap.3&4, general references) McGRAW-HILL BOOK COMPANY, 1973. | ||
![]() | |||
[11] | V.K Mehta Principles Of Electronics (117-205, transistors, and general references) Published by S.CHAND & COMPANY LTD. (2003). | ||
![]() | |||
[12] | Kai-Hung Liang,Kuo-Han Kao,and Szu-Chi Tien:precision positioning with shape-memory-alloy actuators.vol3 nos 4 pp 265-271, 2013. | ||
![]() | |||
[13] | Sajidullah S.Khan,Anuja Khodustar and Koli,N.A:Home Automation System(IJAET) vol.II Issue II, pp129-132,april-June, 2011. | ||
![]() | |||