Keyless Smart Home: An Application of Home Security and Automation
Keyless Smart Home: An Application of Home Security and Automation
107-114
1
Department of Software Engineering, MUET, Jamshoro, Pakistan.
Institute of Information Technology, University of Sindh Hyderabad, Pakistan.
2
Abstract
The rapid and revolutionary advancement in technology has increased the
demand for advanced ubiquitous mobile applications in our daily lives. Home Article History
automation system uses collective smart technology to elevate sphere of
security and human living standards. Wireless Smart home systems have been Received: 10 April 2018
Accepted: 06 May 2018
prototyped by researchers to realize different applications in vast contexts.
In this paper we propose a keyless smart home security system which uses Keywords
Bluetooth as a communication protocol to automate door locks based on
a security code and predefined user credentials. The system combines Home security,
Home automation,
Android phone as a signal sender to dispatch the input signal from an end Keyless home ,
users side, Bluetooth communication module as signal receiver, ARDUINO Door,
microcontroller as CPU and servo motor and light emitting diodes as an output. Android,
Bluetooth
The system integrates two modules: one of which is Arduino microcontroller
which is responsible for authentication and verification of security code and
allows servo motor to process the output according to the received input.
The second is android Application which provides an interface to the user
to set credentials and security code which is then transmitted to the Arduino
microcontroller via Bluetooth technology. Since Arduino and Android are open
source, hence implementation rate of the proposed system is inexpensive
and feasible.
CONTACT Amirita Dewani amirita@faculty.muet.edu.pk Department of Software Engineering, MUET, Jamshoro, Pakistan.
© 2018 The Author(s). Published by Techno Research Publishers
This is an Open Access article licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
(https://creativecommons.org/licenses/by-nc-sa/4.0/ ), which permits unrestricted NonCommercial use, distribution, and reproduction in
any medium, provided the original work is properly cited.
To link to this article: http://dx.doi.org/10.13005/ojcst11.02.06
Dewani et al., Orient. J. Comp. Sci. & Technol., Vol. 11(2) 107-114 (2018) 108
ElShafee and Alaa Hamed12 have presented WiFi controlling home appliances via android mobile
based control system to maintain the temperature, phone or tablet.
detect smoke, door status and light level. The system
consists of web interface module for monitoring and Since Bluetooth wireless technology is low cost and
controlling purposes. The hardware module consists has become pervasive in smart phones, therefore this
of four assorted PCBS and is used to provide research work has proposed and realized a concept
interfaces for sensors and actuators. The system of keyless smart home using android platform and
in18 uses ZigBee module in digital door lock and the Bluetooth as a communication protocol. The major
door locks act as a central main controller of the aim is to provide automated door access and security
overall home automation system. The developed management in a cost efficient manner.
system is based on network of sensors nodes,
actuators with digital door lock as a base system. Hardware Architecture & Software
Hence proposed system is limited to sensors, RFID Specifications
and ZigBang model. Hardware Architecture
The hardware section of proposed approach
N. Sriskanthan19 explained the model for home comprises of the following components.
automation using Bluetooth via PC. But unfortunately • ARDUINO-UNO
the system lacks to support mobile technology. • Servo Motor
Deepal in20 explains proposed system based on • Android based Smart Phone
ADK (Accessory Development kit) at home. The • Bluetooth Module (HC-05)
system is based on automation for monitoring and • Display unit (LEDs)
module (HC-05). It sends the code to the smart where as the red light shows the door is locked.
phone through which the door gets locked/unlocked. The Green LED is connected to the pin 10 and gnd
The smart phone gets the security credentials from where as the Red LED is connected to the pin 11
the user as an input. If it is verified that the user is and gnd. Both LEDs are connected to same gnd to
authorized and authenticated, the smart phone will reduce wiring expenses.
send the code to the microcontroller which further
instructs the servo motor to access (lock/unlock) Servo Motor
the door. The front end module (Android App) gets A servomotor behaves as a rotating/linear actuator
connected with the hardware module via the MAC and controls acceleration, velocity and angular or
address of Bluetooth module HC-05. linear position of the object in a precise manner.
Servo motor is a DC motor coupled with a position
Bluetooth Module (HC-05) sensor which rotates at its axis from 0 to 180
Bluetooth Module works as a bridge between smart degrees. This motor can be programmed for several
phone and microcontroller13. The Bluetooth Module purposes. The Servo motor has three pins. The first
consists of 6 pins out of which 4 pins are used to one is signal pin which is connected to the pin 3
communicate and perform required function. The and is programmed to send signal to the motor. The
VCC is connected to 5V pin, ground is connected second pin is VCC pin which is connected to 3.3V
to gnd pin, TX pin of is connected to TX(1) pin of pin of Arduino-UNO and the third pin is ground pin
Arduino-UNO which is used to send data from which is connected to gnd pin of Arduino-UNO.
Arduino-UNO to Android Phone and the RX pin of
module RX(0) is used to receive and send the data The hardware modules and the role they play in
from Android phone to Aurduino-UNO. proposed keyless smart home are summarized in
the table-1.
LEDs
LEDs are used to indicate status of the system
output. The green light shows that the door is open
Table 1: Functionality of System Components
There are various connections and pins in the second one is connected to the GND pin of Servo
systems which are used to perform specific Motor and the third GND pin is used for GND of
tasks. Mainly these pins/connections fall into two both LEDs (used as an indicator/ output module).
categories. The first one is power (VCC and Ground) The HC-05 Bluetooth module requires 5V at its
and other is related to signal management and VCC pin; therefore it is connected to the VCC 5V
transmission. There are three ground pins in the pin of ARDUINO-UNO module. Servo motor requires
ARDUINO-UNO. The first GND pin is connected 3.3V at it VCC pin; therefore it is connected to the
to the GND pin of HC-05 Bluetooth module, the VCC 3.3V of ARDUINO-UNO. Observing the signal
Dewani et al., Orient. J. Comp. Sci. & Technol., Vol. 11(2) 107-114 (2018) 112
section, it can be seen that the pins of devices are from the smart phone where as pin RX of HC-05
connected to their respective pins of ARDUINO-UNO is connected to the TX(1) of the ARDUINO-UNO
as they are programmed. board to send the data to the smart phone. When
user sends command to circuit from the smart
User access the system via front-end android app. phone. The circuit matches the command and sends
Front end user App is developed using Eclipse current to the pin 3, where the signal pin of Servo
software and Java programming language. It is motor is connected and it rotates the Servo motor
immensely important to establish connection via from 00 to 1800 to lock/unlock the door. During this
Bluetooth protocol before security credentials can be circuit is also programmed to light Red LED for
transmitted. Once the connection is established and locked door and Green LED for unlocked door as
security credentials are verified, the control buttons indicators by sending current to the pin 10 and pin
to remotely lock/unlock a door gets enabled. When 11 of ARDUINO-UNO board, where both LEDs are
the end-user presses lock/unlock button the smart connected.
phone sends command to the circuit which is used
to lock/unlock the door as they are programmed. The implementation of proposed system is depicted
At circuit side, Pin TX of HC-05 is connected to the in figure-3.
RX(0) of ARDUINO-UNO board to receive data
The Arduino-UNO Microcontroller is used to Arduino; VCC is the power supply (3.3V to 6.6V) and
perform logical tasks and functions. The Arduino- GND is the ground. On the other hand the Servo
UNO Microcontroller receives the data from Motor plays a vital role. The Servo motor has three
Android phone. For communication with Arduino pins. The first one is signal pin which is connected
using Bluetooth, a Bluetooth module needs to to the pin which is programmed to send signal to
be connected with Arduino. This connection is the motor, the VCC pin is connected to 3.3V pin or
established via Bluetooth Module (HC-05). HC-05 Arduino-UNO and the ground pin is connected to
module has 6 pins. We have connected 4 pins to gnd pin of Arduino-Board. LEDs are used to indicate.
Arduino, they are: RXD TXD VCC GND. RXD will The green light shows that the door is open where
receive data from Arduino; TXD will send data to the red light shows that door is locked.
Dewani et al., Orient. J. Comp. Sci. & Technol., Vol. 11(2) 107-114 (2018) 113
References