Implementation of Smart Home Automation and Security System Using Arduino and Wi-Fi through Android Application

DOI : 10.17577/IJERTCONV5IS13031

Download Full-Text PDF Cite this Publication

Text Only Version

Implementation of Smart Home Automation and Security System Using Arduino and Wi-Fi through Android Application

Mr. J.Chandramohan,

Assistant. Professor,

Department of Electrical and Electronics Engineering, Gnanamani College of Technology, Namakkal (DT), Tamilnadu (St), India.

K.Satheeshkumar,

Department of Electrical and Electronics Engineering, Gnanamani College of Technology, Namakkal (Dt),

Tamilnadu (St), India.

N.Ajithkumar,

Department of Electrical and Electronics Engineering, Gnanamani College of Technology, Namakkal (DT), Tamilnadu (St), India.

P.A.Gopinath,

Department of Electrical and Electronics Engineering, Gnanamani College of Technology, Namakkal (DT), Tamilnadu(St),India.

    1. anjithkumar,

      Department of Electrical and Electronics Engineering, Gnanamani College of Technology, Namakkal (DT), Tamilnadu (St), India.

      Abstract This paper provides a low cost-effective and flexible home control and monitoring system with the aid of an integrated micro-web server with internet protocol (IP) connectivity for access and to control of equipment and devices remotely using Android-based smartphone app. The proposed system does not require a dedicated server PC with respect to similar systems and offers a new communication protocol for monitoring and controlling the home environment with more than just switching functionality. The use of Web Services is an open and interoperable method for providing remote access service or applications can communicate with each other Smart home interfaces and device definitions to ensure interoperability between Wi-Fi devices from various manufacturers of electrical equipment, meters and smart energy enables products to allow manufactured. In this project gives the intelligent operation for lamps and fans. Here the system is connected with temperature control and lamp control. Light dependent resistor (LDR) and Temperature sensor (LM35) are the main components for this automatic control of lamps and fans. Here the LDR is responsible for lamp control and LM35 is responsible for controlling the operation of fan. The proposed home energy control systems design intelligent services for users and provides, The proposed system are implemented with smartphone.

      Keywords Wi-Fi, Arduino, Home Automation, Android, Smartphone.

      1. INTRODUCTION

        The Intelligent management of the power system facilitates the joint use the current and minimizes power loss during transmission and power consumption is highlighted by the global community, academic institutions, and state administration. The idea of a smart grid enabling technologies used in recent years for the gain of full utility, customer protection, attracting a great deal of attention in the energy industry and academia. In continued growth of popularity and functionality by mobile devices, demand advanced mobile applications widespread in human life [1], [2].

        An attractive market for home automation and network of busy families and individuals will have physical limitations. ARDUINO and Wi-Fi shield, and it was the smart home micro web server. Arduino is an open source electronics proto typing platform on the basis of flexible, easy to use hardware and software. The Arduino I board have the microcontroller with 54 digital input / output pins [3].

        The Wi-Fi interface in Arduino through the serial peripheral interface (SPI) pins. The low-voltage switching relays were used to integrate devices with Arduino will show an output switching functionality. The LM35 temperature sensor is used to control a smart home environment. The supervisory control system Intranet, low cost and high performance can react. The Wi-Fi technology an end node, the node sends data to the coordinator, and the coordinator Hub sends the data back to the terminal end of the loop.

      2. RELATED WORK

        1. general smart home design

          Smart Home is applied in order to provide comfort, energy efficiency and better security. Smart Home System is still rarely used in Indonesia because of the cost and the difficulty of getting the device. The objective of this paper is to offer a Small Smart Home System designed and created by utilizing WLAN network based on Arduino microcontroller. The system is able to monitor and control lights, room temperature, alarms and other household appliances. Results from testing the system show proper control and control monitoring functions can be performed from a device connected to a network that supports HTML [4]. The proposed system hardware and software are implemented in this work. The expected work contributes towards the development of ubiquitous home networks. The part of future work applied in IEEE 802.15.4 standard technology in our home.

      3. REQUIREMENTS

Hardware requirements

    • Arduino UNO kit

    • ESP 8266 node mcu wifi shield

    • Optocoupler

    • Power supply

    • Driver circuit

    • Relay circuit

    • Loads

    • Wire

      Software requirements

    • Arduino IDE

    • Fritzing compiler

    • Virtual Bread board

    • Android apk

Figure 1: Existing system of home automation system

An isolated WSN with one coordinator, which is integrated into the PLC transceiver, is established in each room. The existing system of home automation system is shown in Figure

  1. The coordinator is responsible for transferring environmental parameters obtained by WSNs to the management station via PLCs. The control messages for home appliances are directly transferred using PLCs rather than WSNs [5]. The Figure 2 shows the proposed system of home automation system. The Arduino Uno and Wi-Fi shield were

    used to implement the micro Web-server for the Home gateway in figure 2. Home gateway connects to the Internet. Arduino Uno is an open-source microcontroller that uses ATMEGA 328, an Atmel AVR processor which can be programmed by the computer in C language via USB port. Arduino Uno also has on-board 5 analog pins and 13 digital pins for input and output operations, supporting SPI and I2C which can be used to interface with other devices. Figure 3 shows the hardware architecture and implementation. Any internet connection via Wi-Fi or 3G/4G network can be used on the user device [6]. The features that the proposed design offers are the control of energy management systems such as lightings, power plugs and HVAC (heating, ventilation and air conditioning) systems.

    Figure 2: Proposed system of home automation system

    Figure 3: Hardware architecture and implementation

    1. HOME AUTOMATION DEVICES

      Central controller (Arduino) receiving commands used to perform. You may connect to the Internet through a Wi-Fi shield mounted on the Arduino. On the user side, provides a portable interface to the system as a whole through an easy-to- use application. Can either be wired mobile device of the central control unit (through the USB cable, for example), or in connection with this wirelessly. Within the home, wireless connectivity can be achieved by using the Wi-Fi shield on the central console. This way, you will be able to access the console, either locally or remotely through the Internet. In this

      case, client/server architecture is the one to choose, because the central console as a static entity that responds to requests from clients. Figure 4. shows the whole process Smart home automation system. Hence need for server (at the application level, any piece of code that cn respond to client requests) is closely linked to the company. We'll use a simple Web server application running on Arduino that communicates via HTTP protocol with Web-based Android app [7].

      Figure 4: Whole process smart home automation

    2. INPUT /OUTPUT BLOCK

      Input/output block consists of two pieces of PIR (Passive Infra-Red) motion sensor and an LM35 temperature sensor as inputs and some lamps, sockets, relay and buzzer as outputs.PIR sensor is used to detect the presence of motion. The sensor readings are used to turn off the lights if there is no activity and turn on the lights otherwise. In addition, this sensor is also used for security systems to detect suspicious movements. If it detects any suspicious movement an alarm (buzzer) will sound. An LM35 is functioning as temperature monitoring. This sensor also serves as an input in order to execute some sockets. The socket will in on condition when the temperature exceeds a certain limit. This condition will activate a fan or Air Condition (AC) while connected to the socket. Connection circuit between microcontroller system with a PIR sensor and an LM35 sensor is Shown in Figure 5 and Figure 6. Output part consists of the relays and buzzer. Buzzer serves as a warning alarm when there is suspicious movement. Relays connected with lamps and socket [8].

      1. Automatic Lamp control

        Figure 5: Connection Circuit with PIR Sensor

        In this project gives the intelligent operation for lamps and fans. Here the system is connected with temperature control and lamp control. Light dependent resistor (LDR) and

        Temperature sensor (LM35) are the main components for this automatic control of lamps and fans. In Figure 5 shows

        connection circuit of arduino with PIR Sensor for lamp control. Here the LDR is responsible for lamp control and LM35 is responsible for controlling the operation of fan. In lamp control, LDR values are previously set. Then the darkness falling on the LDR due to sunset. The microcontroller receives the resistance value from LDR. When the controller attains the limit, the lamp will glow, or otherwise it will turn off [9].

      2. Automatic Fan and AC control

      Figure 6: Connection Circuit with LM35 Sensor Automatic fan and control circuit connection is shown in

      Figure 6. In fan/AC control, the temperature values are previously set. During daytime, the temperature values are about 35oC.Then the microcontroller will receive the signal from LM35, and turns ON the port, which is connected to AC/fan. During winter season, the temperature reduced as below 20oC.Then there is no need of fan/AC. Hence the fan/AC will turn off.

    3. MAIN COMPONENTS

  1. Arduino controller

    In Figure 7 shows the diagram of Arduino uno controller. Arduino is a unique Arduino board which features a WIZ net Wi-Fi port, a Wi-Fi socket, nRF24L01+ module interface and an ATMega328. This board will add wireless ESP8266 Wi-Fi shield control as well as internet connectivity to the project [10].

    Figure 7: Arduino UNO Board

  2. Wi-Fi Shield

    Wi-Fi is an open global standard built on the IEEE

    802.15.4 MAC/PHY. Wi-Fi defines a network layer above the

    802.15.4 layers to support advanced mesh routing capabilities. The Wi-Fi specification is developed by a growing consortium of companies that make up the Wi-Fi Alliance. The Alliance is made up of over 300 members, including semiconductor,

    module, stack, and software developers in Figure 12. [11]. Wi-

    Fi Series 2The difference between Series 1 (S1) and Series 2 (S2) is that the latter enhances the power output of the antenna to 2mW [11]. S2 also enhances the data protocol of the Wi-Fi module.S2 is similar to S1 in enabling simple and easy communication between microcontrollers and supporting point-to-point and point-to-multi point communication [12]. The connection diagram of esp8266 is shown in Figure 8.

    Figure 8: ESP 8266 node mcu Wi-Fi shield

  3. Power supply

    +12V

    The function of the relay module as normal switch "ON" and "OFF" will turn a lamp. An infrared detection system consists of infrared sensor as an input, while the relay module as starting Arduino Wi-Fi adapter. The Wi-Fi is a feature-rich RF module for use on a wireless sensor network. The IEEE 802.15.4 protocol greatly reduces the work of the programming ensuring data communications. The Wi-Fi has many other features for use in a WSN beyond its networking ability [13]. Figure 11 shows the system overview of the home automation system. The web page on hosting server can read and update data in database. Writing the Code for the Web Client For the Web-enabled light switch, we will create a simple Ruby on Rails project to manage the user interface interaction first via a web browser. We wont spend a lot of time on the user interface.

    Since that will ultimately be the job of the custom Android application we will create after the web interface is functionally tested.The Android app was designed to show the switch is the same as the web page on hosting server. It can also read update data on the database by touching the "ON" or "OFF" and appears on the button as on the website. This smart switch device, the lamp in a house controlled manually with

    AC 220V

    D3

    4 X 1N4007

    – +

    1 3

    IC7805

    +5V

    2

    + +

    the infrared switches detection system or wirelessly with Android App [14]-[16].

    The android platform app

    The Figure 11 shows Screen shots of the proposed smart

    12V / 1A

    BRIDGE

    1000MFD\50V

    0.1MDF

    100MFD\25V

    home. There are several platforms for developing smart phone applications such as Windows Mobile, Symbian, iOS and Android. In the proposed system, the Android platform app is developed as most of the phones and handy devices support Android OS. Java programming language using the Android

  4. Relay circuit

    Figure 9: Power circuit

    Software Development Kit (SDK) has been used for the development and implementation of the smart home app [17]- [19].

    Figure 10: Relay board and control circuit

    The first part is the smart switch apparatus that is connected to the existing wiring of the electrical appliances in the house, such as a ceiling air condition and lamp in order to get power supply. This unit will receive supplies from the lives and neutral of home supply that are connected to the power module. It is 240 VAC to convert (AC) to (DC) with 5V rectifier type DC power supply Wi-Fi adapter. The relay circuit is shown in Figure 10.

    Figure 11: Screen shots of proposed smart home app

    • Remote connection (via internet) to the smart home micro web-server; require server real

    • IP and user authentication.

    • Device control and monitoring.

    • Scheduling tasks and setting automatic control of the smart home environment.

      • Password change option.

      • Supports voice activation for switching functions.

CONCLUSION

In this paper presents the new circuit topology for monitoring and control the home electrical devices by using the flexible home-based Android smart phone at a reasonable price and implemented by wireless transceiver and IBOARD. The Arduino as well as using android app for system control configuration. The proposed new circuit topology is used in a quiet based web services in an interoperable application layer for communication between the remote user and the home device. All Android-based smart phone, the Wi-Fi connection is the support built; the home access device to control can use the phone, Wi-Fi, 3G or 4G to access the Web page on hosting server using Android App.

REFERENCES

  1. Andi Adriansyah, Akhmad Wahyu Dani" Design of Small Smart Home Control Systems Based on Wireless Sensor Networks and Power Line Communications" 1.1109/TIE .2014 .2379586, IEEE Transactions on Industrial Electronics.

  2. Zhenyu Zoua, Ke-Jun Lib, Ruzhen Lia and Shaofeng Wub, " Smart Home System Based on IPV6 and ZIGBEE Technology," Procedia Engineering 15 (2011) 1529 1533.

  3. Rajeev Piyare "Internet of Things: Ubiquitous Home Control and Monitoring System using Android based Smart Phone" International Journal of Internet of Things 2013, 2(1): 5-11.

  4. Yue Li, " Design of A Key Establishment Protocol for Smart Home Energy Management System," 2013 Fifth International Conference on Computational Intelligence, Communication Systems and Networks.

  5. R.Nagarajan and S.Sathishkumar, K.Balasubramani, C.Boobalan, S.Naveen, N.Sridhar. Chopper Fed Speed Control of DC Motor Using PI Controller, IOSR- Journal of Electrical and Electronics Engineering (IOSR-JEEE), Volume 11, Issue 3, Ver. I, pp. 65-69, May Jun. 2016.

  6. Shiu Kumar, "Ubiquitous smart home system using android application," International Journal of Computer Networks & Communications (IJCN C) Vol.6, No.1, January 2014.

  7. Andi Adriansyah, Akhmad Wahyu Dani, "Design of Small Smart Home System Based on Arduino," 2014 Electrical Power, Electronics, Communications, Controls, and Informatics Seminar IBoard datasheet by www. iteadstudio.com" Tech Support: support@iteadstudio.com.

  8. XBee datasheet by Digi International, Inc. All rights reserved"www.digi.com" rf-experts@digi.com

  9. Nazrul Anuar Nayan, Ili A.M. Ikhsan, Yasuhiro Takahashi, "Using ZigBee Communication Technology in a smart Home Wireless Sensor Network," Proceedings of Second International Conference on Modern Trends in Science, Engineering and Technology 2014.

  10. Arduino-Technical-specswww.arduino.cc/en/Main/arduino board uno"

  11. " Getting Started with XBee RF Modules, "Version 1.0 by Martin Hebel and George Bricker with Daniel Harris.

  12. "C Programming for Arduino" Julien Bayle Copyright © 2013 Packet Publishing.

  13. R.Nagarajan and M,Saravanan. Performance Analysis of a Novel Reduced Switch Cascaded Multilevel Inverter, Journal of Power Electronics, Vol.14, No.1, pp. 48-60. 2014.

  14. "Programming Your Home Automate with Arduino, Android, and Your Computer," Mike Riley, Copyright © 2012 The Pragmatic Programmers, LLC.

  15. Chandrasekar and Gian Carlo Montanari, Analysis of Partial Discharge Characteristics of Natural Esters as Dielectric Fluid for Electric Power Apparatus Applications, IEEE Transactions on Dielectrics and Electrical Insulation Vol. 21, No. 3, pp.1251-1259 June 2014.

  16. ZigBee Communication Technology in a smart Home Wireless Sensor Network "Proceedings of Second International Conference on Modern Trends in Science, Engineering and Technology 2014"

  17. " Getting Started with XBee RF Modules" Version 1.0 by Martin Hebel and George Bricker with Daniel Harris

  18. R.Nagarajan and M,Saravanan Staircase Multicarrier SPWM Technique for Nine Level Cascaded Inverter, Proceedings of the International Conference on Power, Energy and Control, IEEE Press, pp-668-675. 2013.

  19. " C Programming for Arduino" Julien Bayle Copyright © 2013 Packet-Publishing.

Leave a Reply