DesignandImplementationofaLow CostArduino BasedSmartHomeSystem
DesignandImplementationofaLow CostArduino BasedSmartHomeSystem
net/publication/322003915
CITATIONS READS
48 836
3 authors, including:
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Anshu Murdan on 14 June 2023.
Abstract—A smart home is the residential extension of building sound and secure living. A graphical user interface was also
automation. It initially involved the control and automation of developed using LabVIEW [3]. Davidovic et al. proposed a
systems that ensure human comfort such as lighting, heating, smart home system based on group of sensors, Raspberry Pi
ventilation, air conditioning and security. Recently, it has and Bluetooth as a communication protocol. An android
evolved to encompass most home appliances that use Wi-Fi for based user-friendly interface was also developed [4]. The
remote monitoring. Technological progress has enhanced the analysis and implementation of a home automation
ubiquity of smart home systems resulting in improved technology using Global System for Mobile Communication
standards of living. Commercial home automation systems are (GSM) modem to control home appliances such as light,
still unaffordable to a vast majority of the middle and lower
conditional system, and security system via Short Message
class families. However, the emergence of cheap
microcontrollers, like the Arduino, has enabled the
Service (SMS) text messages was presented by
implementation of low-cost smart home systems, incorporating Teymourzadeh et al. The research work was focused on
the majority of features present in commercial systems. In this functionality of the GSM protocol, which allowed the user to
paper, we present a highly scalable, low-cost and multi-faceted control the target system away from residential using the
home automation system based on Arduino microcontroller frequency bandwidths [5]. Baraka et al. developed a
that is capable of integrating appliance and equipment remotely controlled, energy-efficient and highly scalable
automation, thermal comfort control and energy management. Smart Home with basic features that safeguard the residents'
comfort and security. The system consisted of a house
Keywords-smart home; remote monitoring; microcontroller; network (sensors and appliance actuators to respectively get
arduino information from and control the house environment), an
Arduino microcontroller, and an Android application as the
I. INTRODUCTION user interface [6]. Several Telecare and “hospital at home”
services such as a home emergency alarm, access to
Conventional houses have always evolved with time to community health information, and ambulatory monitoring,
cater for the changing needs of people in terms of security have been designed and deployed by CarerNet, in UK [7].
and comfort. Nowadays, people want to carry out tasks as
quickly, efficiently and simply as it can be with the least II. AIM
amount of effort. This need can be easily met by converting
This paper presents the design and implementation of a
‘normal’ homes into smart ones by implementing a home
simple low-cost smart home system that will control various
automation system. Home automation consists of automatic
actuators based on the data gathered by multiple passive and
control of lighting, temperature and other appliances, safety
active sensors installed in strategic locations. Its main
and security systems, home entertainment systems,
objective is to enable home owners to experience a more
housekeeping and gardening systems. Such systems are
convenient and comfortable lifestyle, a safer environment
designed to enhance comfort, convenience, security as well
and a better energy efficiency. The design criteria have
as energy efficiency by integrating sensors that will monitor
focused on ensuring that the system is affordable, reliable,
various parameters and actuators that will perform
user-friendly and adaptable to the needs of home owners.
predetermined tasks. In recent years, the advent of powerful Moreover, its major features, which facilitate the operation
electronic devices coupled with considerable progress of common home activities, make it attractive to households,
achieved in the field of information and communication especially those with elderly and handicapped people.
technologies have led to a significant evolution in home
automation. Ubiquitous technologies have enabled the smart III. METHODOLOGY
home concept to be extended to include context aware and
situation aware automation [1]. Home project serves as a test The system consists of a voice recognition system which
facility for the implementation of useful new services controls the switching of lights, the opening and closure of
directed towards connecting devices, sensors, and appliances windows, gas leakage detection as well as the operation of an
through data networks [2]. Ransing and Rajput proposed a automatic folding bed. In order to accurately manage these
Wireless Sensor Network based smart home system for the functions, it is crucial to continuously monitor a number of
elderly, to help them ease their work and provide them safe, parameters such as temperature, humidity, rain, gas leakage,
presence of people in the room, and day or night condition.
occupancy every 8 seconds. It will only switch off the lights the user. The ventilation system consists of a fan that is
if it does not detect any movement in the room during two controlled by the Arduino Mega through a relay. The
minutes in order to prevent switching off the lights when an ventilation system has PIR motion sensor integrated in it so
occupant is motionless in the room. that when the room is unoccupied, the fan turns off
automatically. Occupancy detection follows the same
B. Internet Controlled Lighting System principle as that described in Section IV A.
An ESP8266 Wi-Fi module is used to control the lights
through the internet. This low-cost, stand-alone Wi-Fi F. Automatic Folding Bed
module is programmed to use the microcontroller as a web- An automatic foldable bed was also designed and
server. Since the ESP8266 requires a 3.3V power supply and implemented in the smart house. Smart furniture is yet
can draw currents up to 300 mA, the LM317T external another aspect of smart homes that has gained increasing
voltage regulator is used to bring down the 5V supply to attention recently. It refers to an intelligently designed piece
3.3V. Occupants can access the hardware modules through of furniture that not only can serve for multiple purposes but
the web-server to obtain information about the status of the also represents good space management. In the present case,
lights and send commands to switch on or off the lights when the residents do not need the bed during the day, it may
through the relay connected to the microcontroller. The Wi- be folded up against the wall to give more space in the room.
Fi module first needs to be registered on an internet network Moreover the folded bed can also be used as storage
so as to generate an IP address, from where the interface can furniture as shown in Fig. 2. The bed mechanism can be
be accessed. operated by both voice commands and pushbuttons. An
emergency stop button is also installed in case of any
C. Flame and Gas Sensors incident. A stepper motor connected to the microcontroller
In order to detect fire or leakage of inflammable gases in via a driver actuates the retraction and deployment of the bed
the house, an MQ-5 gas sensor is connected to the Arduino. as it provides smooth and accurate motion. Gearing
This low-cost sensor can perceive a broad range of gases equipment is used to reduce the rating of the motor, thus
including LPG (Liquid Petroleum Gas), methane and smoke. requiring less power.
It contains a tin dioxide filament as gas-detecting material.
The latter has a lower conductivity in clear air. Hence, if the
inflammable gas concentration increases, the conductivity of
the sensor will rise leading to drop in the filament resistance
and an increase in the output voltage. Interfacing the sensor
with the Arduino requires connecting its D0 output to a
digital I/O pin of the microcontroller. The GND and 5V pins
of the MQ-5 are supplied from Arduino Mega. Once a flame
has been detected, an alarm is triggered and an emergency
message is displayed on an LCD screen.
D. Automatic Window
The extent of cross-ventilation in the smart house is
controlled by adjusting the opening or closing of windows. A
servomotor, connected to the microcontroller through a relay,
moves the window through a gearing system. The voice
recognition system is extended to the window opening
Figure 2. Mechansim of folding the bed into a storage space.
control to provide the user with the possibility of controlling
the windows in the house without having to move. This
feature is particularly very beneficial to elderly and G. Automatic Blinds
handicapped people. The windows are further equipped with An automatic blind which responds to different light
a FC-37 rain sensor which activates their closure intensity level was also integrated in the system. It opens and
automatically when it starts raining. closes automatically depending on intensity of light sensed
by a Light Dependent Resistor (LDR). The blind mechanism
E. Automatic Ventilation System
is programmed so that it can recognize three different states
A DHT22 temperature and humidity sensor constantly according to three ranges of light intensity: “Night”,
monitors the temperature and the percentage of humidity in “Average Daylight”, and “Too Bright”. Their corresponding
the room. Pin 2 of the sensor is connected to a digital I/O pin lux ranges are: 0 -250, 250 – 650 and 650 -1000 respectively.
of the Arduino through a 1kΩ pull-up resistor, with its 5V The position of the blinds with respect to the horizontal
and GND provided from the Arduino Mega. When the corresponding to each state is: 0°, 65° and 30° respectively.
values of temperature or humidity read by the sensor reach a The LDR constantly monitors light intensity level. The
level above set thresholds of 25°C and 70% respectively, the microcontroller determines the state of the blinds on the
ventilation system starts automatically. The threshold values basis of the LDR output. When there is no change of state,
may be changed depending on the comfort requirements of the blinds remain in their initial position, else, the position of
the new state is determined. The angle through which the The system was tested exhaustively and various
blinds must rotate is ascertained by calculating the angle circumstances were simulated to ensure the home automation
difference between the respective positions of the binds. The system works as intended. The voice recognition module was
corresponding number of steps is computed by the able to recognize voices after a single training session.
microcontroller and sent to the stepper motor driver Commands were successfully implemented by the system,
controlling the blind mechanism. whether they were provided through spoken words, switches,
The specifications of the main sensors used in the home push-buttons or a smart phone via the web-server. The
automation system are provided in Table II. applications that have been successfully implemented are
summarized in Table III.
TABLE II. SPECIFICATIONS OF THE MAIN SENSORS USED IN THE
SYSTEM TABLE III. FUNCTIONS OF THE HOME AUTOMATION SYSTEM
Component Main Specifications Application Sensors/Components Control
V3 voice Voltage: 4.5-5.5V Current: <40mA Ventilation system DHT22, PIR Automatic
recognition Size: 31mm x 50mm
module Recognition accuracy: 99% (ideal conditions) Lighting System V3 module, PIR, Voice-controlled,
ESP8266 Web-server
Passive Infra-Red Voltage: 5-12V Current: <60μA
module Sensitivity range: up to 6 m (110° x 70°) Flame and gas MQ-5, LCD screen Automatic
Size: 28mm x 38mm x 40mm sensing system
MQ-5 gas sensor Voltage: 5V Power: 800mW
Window system FC-37, servomotor Automatic,
Detecting concentration: 200-10000 ppm Voice-controlled
Gases: LPG, Natural gas, butane, propane
Folding bed Stepper motor Voice-controlled,
Size: 40mm x 20mm pushbutton
FC-37 rain sensor Voltage: 5V Driving current: 15mA Blinds LDR, stepper motor Automatic
REFERENCES [4] Davidovic, Boban, and Aleksandra Labus. "A smart home system
based on sensor technology." Facta Universitatis, Series: Electronics
[1] Park, J.H., Hsu, CH. & Arabnia, H.R. Inf Syst Front (2009) 11: 481. and Energetics 29.3 (2015): 451-460.
doi:10.1007/s10796-008-9128-x
[5] Teymourzadeh, Rozita, et al. "Smart gsm based home automation
[2] T. Yamazaki, Beyond the smart home, in: Proceedings of the system." Systems, Process & Control (ICSPC), 2013 IEEE
International Conference on Hybrid Information Technology Conference on. IEEE, 2013.
(ICHIT’06), 2006, pp. 350–355.
[6] Baraka, Kim, et al. "Low cost arduino/android-based energy-efficient
[3] Ransing, Rasika S., and Manita Rajput. "Smart home for elderly care, home automation system with smart task scheduling." Computational
based on wireless sensor network." Nascent Technologies in the Intelligence, Communication Systems and Networks (CICSyN), 2013
Engineering Field (ICNTE), 2015 International Conference on. IEEE, Fifth International Conference on. IEEE, 2013.
2015.
[7] G. Williams, K. Doughty, D.A. Bradley, A systems approach to
achieving CarerNet—an integrated and intelligent telecare system,
IEEE Trans. Inform. Technol. Biomed. 2 (1) (1998) 1–9.