Designing and Implementation of an Application Based Electrical ...

78 downloads 89758 Views 2MB Size Report
custom built android application to a specific phone number connected to the microcontroller. In this system an android application is used to send instruction ...
Designing and Implementation of an Application Based Electrical Circuit for Smart Home Application IN. Datta, 2T. Masud, 3R. Arefm, 4A. A. Rimon, 5M. S. Rahman and 6B. B. Pathik 1.2.3.4.5 Dept. of Electrical and Electronic Engineering 1

American International University-Bangladesh (AIUB), Banani, Dhaka 1213 [email protected], 2tanvir [email protected], [email protected], [email protected], [email protected] _

6Assistant Professor, Dept. of Electrical and Electronic Engineering American International University-Bangladesh (AIUB), Banani, Dhaka 1213 [email protected] Abstract-This article describes a project in which an electrical circuit is designed by which an user can turn on/off any electrical

Project Demonstration, and Conclusion are illustrated in this paper sequentially.

appliances i.e. fans, lights and can lock/unlock windows, doors etc. of his/her house or office through sending SMS using a custom built android application to a specific phone number connected to the microcontroller. In this system an android application is used to send instruction through SMS. At the receiving end, a GSM module receives the SMS and sends the particular hexadecimal codes to a microcontroller. Then the microcontroller reads the code and sends the signals to relays for performing actions according to the specified logic. For designing the

system Proteus,

a

virtual

system

modeling

and

circuit

simulation application, was used as simulation software. The code for microcontroller was written in mikroC PRO and burnt with PICkit 2 softwares. This system ensures smart safeguarding as well as efficient use of energy for its user's office and living place. Index Terms - Home Automation System; Android app based smart home; Microcontrolle;Mobile Phone; Appliance control.

I.

INTRODUCTION

Nowadays in our civilized lifestyle, people cannot help but using many kind of electronic gadgets. New electronic systems and products are introduced every year and a lot of manual systems have been digitalized to make life easier. In this flow, Home Automation or Smart Home is a technology introduced for the purpose of home security and controlling any electrical equipment of a home remotely using mobile phone. In Smart Home system, using GSM modem, microcontroller and sensors, home security and home appliances are automated for energy saving and making life more efficient. This project aims to design and develop a Smart Home system a for house owner that is capable of controlling the switching of electrical home appliances and lock of the door as per as the command the owner sends through phone. The consumer can make easy access to the home appliances for their efficient use. That will save energy and saving energy means saving money. This initiative is to make modern lifestyle easier at low cost. This project can also be a helping hand for disabled, partially paralyzed and patients. In the following sections information related to Home Automation, Designed System and Hardware Implementation,

978-1-4799-6428-4/14/$31.00 ©2014 IEEE

II.

RELATED STUDY

A. Smart Home Technology

Smart Home technology is a term of information and communication technology that is used in houses where various components are communicating via local network. This technology can be applied to monitor, warn and perform functions according to selected criteria. This technology automatically communicates with the surroundings possible, via internet, fixed telephones or mobile phones. A smart home is a type of house with smart home technology installed [I]. Convenience is the biggest reason why people build or buy smart homes. Users have the total control of the home in the palm of their hand wherever they are inside or outside the home which makes life easier [2]. Security is another very important advantage of smart homes. It includes security systems with cameras, sensors and a linl( to the local police station or any security company. Key cards or fmgerprint identification could be used instead of conventional locks to make the place more secured [2].

Fig. 1. A Typical Design of a Smart Home [I].

Smart homes could be designed as a measure for energy efficiency by controlling electrical appliances that reduce the

strain on natural resources as well as save money [2]. Again, these homes offer accessibility features for elderly or disabled people. B. Recent Works

Alkar and Buhur (2005) proposed a low cost wireless home automation system for multifunctional devices based on internet but it had some limitation like range and power failure [3 ]. Potamitis (2003) suggested a home automation system using speech recognition [4]. Another system was developed by Sabudin et. al. (2008) that warns the driver of express bus through SMS if the speed exceeds the speed limit permitted by department of transportation [5]. SMS notification is also sent to department for record [6]. A system is developed by Tan et. al. (2007) which is an automated power reading meter that sends power usage reading to authorize office through SMS. The office generates the billing cost and sends back the cost bill to respective consumer through SMS. Another similar type of system was proposed by Wahab, Muji and Nazir (2007) for Water Billing System [6] [8]. C. Microcontroller (PIC 16F73)

Peripheral Interface Controller (PIC) 16F73 microcontroller is a powerful and easy to program chip which has wide range of operation starting from 2.2V to 5.5V. This micro-controller is based on the RISC (Reduced Instruction Set Computer) architecture with 28 pins. It has 5 channels of 8-bit analog to digital converter with 2 additional timers. In DC mode its operating clock is 20 MHz while the instruction cycle in dc mode is 200ns. The pin configuration PIC 16F73 is provided in Fig. 2. MCLRNpp­

-RB7IPGD

RAO/ANO"""

-RB6/PGC

RA1/AN1-

-RBS

RA2lAN2-

-RB4

RA3lAN3NREF-

- RB2

RASJAN4ISS ......

-RBl -- RBO/INT

OSC1/CLKlN-­

-Voo

OSC2ICLKOUT -

-Vss

RC01T10S01T1CKI­

...... RC71RX1DT

RC11T10SI/CCP2 -

- RCSlTXlCK

RC2ICCP1RC3/SCKlSCL -

The relay acts like a switch that supplies electricity to the appliances. A relay is an electromagnetic device consisting of moving contacts, solenoid and restoring spring which is used to isolate both the controlling unit and the controlled device. In this project NEC MR82-5USR, a low power and non-polarized relay is used to isolate the controlled device. This relay switch has versatile uses in electronic switching systems, test equipment, LAN systems, modems, facsimile, factory automation systems, audiovisual aids, and other electronic equipment. Its maximum switching current is 2A, initial contact resistance 50 mn with normal operating power of 200mW. III.

DESIGNED SYSTEM AND HARDWARE IMPLEMENTATION

The block diagram of the designed system is illustrated in Fig. 3. To make this design Proteus, a simulation software, was used (Fig. 4). For this system, a mobile phone is used as a SMS transmitter which contains instruction commands. At receiving end GSM modem SIM900 [9] IS connected with microcontroller. Microcontroller, the brain of this system, directly connected with relays, PIR sensor and servo motor to perform the specific operation. When the system is turned on the transformer take 220V AC current as input and supplies 9V AC as output. Then a rectifier converts the AC to DC voltage. A DC adjustment circuit decreases the voltage to the desired 3.6V [10]. The microcontroller, GSM module and the relays get power from this DC adjustment circuit output voltage.

-_....

� I "

- RCs/SOO ...... RC4/S0USDA

Fig. 2. Pin configuration of micro-controller (PICI6F73). D. Servo Motor

In this project for controlling door locks, Tower Pro SG90 are used. Servo Motor 9g is also known as micro servo motor has high output power but very small and light weight. This kind of servo motor can rotate approximately

Micro Servo 9g

E. Relay

- RB3IPGM

RA4ITOCKI­ Vss-­

1800 having 3 arms and hardware. Operating speed and torque of this motor depends on the supplied voltage.

Fig. 3. System Architecture Block Diagram.

An android application has been developed for sending different type of commands from the user's cell phone. It has been developed using Eclipse, and Java for Android. This application has eight options and every option has different command. When the user sends a command; the GSM module receives it and sends it to microcontroller. Then the microcontroller executes operation according to the command.

...

.

. .. Rl

-:-

••

T.

GSMModem

... (

u.

ClJlZ.lH.I2I1..

RL12342

""10m

D7

=0 cr>

Fig. 4. Proteus implementation of whole circuit.

When the command is for locking or unlocking doors, the microcontroller rotates the rotor shafts clockwise or anticlockwise respectively. Here the Fig. 5 represents the implemented circuit for the designed system.

receiving end. After providing the number of the SIM inserted in the GSM module, an interface will open where there are options for turning on/off lights, locking/unlocking of doors and windows (Fig. 6).

Fig. 6. SMS Engine app interface.

Fig. 5.

The Implemented Circuit.

IV. PROJECT DEMONSTRATION A user can choose any option according to the action he wants to take place. When any option is chosen from the interface, a predefined instruction code is sent to GSM module through SMS. The module sends the command to microcontroller and the microcontroller performs the concerned action (Table I). While installing the application in any mobile, it requires a phone number which is used ant the

TABLE I.

INSTRUCTION CODES AND ACTION

Instruction codes

Action

LA La LB Lb LC Lc LD Ld

Turns lightl on Turns lightl off Turns light2 on Turns light2 off Unlocks doorl Locks doorl Unlocks door2 Locks door2

In this system a passive infrared sensor (PIR sensor) is added to turn on and turn off a light by sensing movement. In case of any movement, the system turns on a light which is demonstrated in Fig. 7. If it does not sense anymore movement then after one minute, the light is automatically turned off.

10. Again, the system will lock the door when the user selects option (Fig. 11).

Door 1 OFF

Fig. 10. Unlocking the Door 1.

When the user presses Light 1 ON option, mobile station sends SMS having a code LA to the GSM module and the system turns on the Light 1 (Fig. 8).

Fig. 1l. Locking the Door l.

V. CONCLUSION



Fig. 8. Turing ON the Light 1.

When the user selects Light 1 OFF option, mobile phone sends SMS code La to the GSM-Module and the system turns off the Light I(Fig. 9). IJ�� �

=--;-"l1""'lI

' .



Making of this project helped gaining a better perspective on many course related aspects and practical knowledge of electrical equipment. It makes familiar with software analysis, designing, hardware implementation, testing and as well as maintenance concerned with our project. From the convenience of a smartphone, the user is able to control virtually any electrical devices. This makes it possible for users to rest assured that their electrical appliances are not left running when they left the house. The project has a very simplistic design to make it easy for the users to interact with. REFERENCES

-

,

.,

Fig. 9. Turning OFF the Light l.

In case of choosing the Door 1 ON option by the user, mobile phonesends a SMS containing LC to the GSM module and the system unlocks the door Iwhich is demonstrated in Fig.

[I] T. Laberg, H. Aspelund and H. Thygesen, SMART HOME TECHNOLOGY. Planning and management in municipal services, Norway: Directorate for Social and Health [2] Home Guides I SF Gate, 'The Advantages of a Smart House', 2014. [Online]. Available: http://homeguides.sfgate.comladvantages-smart­ house-8670.html.[Accessed:13-Jul 2014]. [3] A. Z. Alkar and U. Buhur, "An Internet Based Wireless Home Automation System for Multifimctional Devices," IEEE Consumer Electronics, vol. 51, no. 4, pp. 1169-1174,2005. [4] I. Potamitis, K. Georgila, N. Fakotakis and G. Kokkinakis, "An integrated system for smart-home control of appliances based on remote speech interaction," 8th European Conference on Speech Communication and Technology, September 2003. [5] E. N. Sabudin, S. Z. M. Muji, M. H. A. Wahab, A. Johari, N. B. Ghani, "GSM-based Notification Speed Detection for Monitoring Purposes," IEEE International Symposium of Information Technology, August 2008.

[6] M. H. A. Wahab, N. Abdullah, A. Johari, and H. A. Kadir, "GSM Based Electrical Control System for Smart Home Application," Journal of Convergence Information Technology, Vol. 5, No. 1, pp. 2, February 2010. [7] H.G.R. Tan, CH.R. Lee and v.H. Mok,"Automatic Power Meter Reading System using GSM Network. " In Proceeding on Power Engineering Conference 2007, pp. 465-469, December 2007.

[8] M. H. A. Wahab, S. Z. M. Muji, F. M. Nazir, "Integrated Billing System through GSM Network," ]'" International Conference on Robotics, November 2007. [9] Wm.sim.com, 'SIM900', 2014. [Online]. Available: http://wm.sim.com/producten.aspx?id=1019. [Accessed: 08- Aug- 2014]. [10]Eleccircuit.com, 'Adjustment DC power supply 1.25-15V Max current 0.5 ampIEleccircuit.com', [Online]. Available: http://www.eleccircuit.com/adj ustment-dc-power-supply-values-I-25-15v-max-current-0-5-amp/. [Accessed: 08- Aug- 2014].

Suggest Documents