Professional Documents
Culture Documents
Abstract—For over more than a decade, smart systems have become the latest trend in this field. Various devices
played an important part in human daily life. With the use of including Philips Hue, Samsung Smart Thing, WeMo and
modern technologies, smart sensors, processors and phones, Ecobee are also developed to work with the above-
the present smart home systems enhance distributed mentioned smart home system. The main advantage of using
entertainment, household control, home energy monitoring, voice recognition in smart home system is to reduce the
home security and surveillance. The services provided include effort of using smartphone and the need of developing a
voice controlled alarms, personalized calendars with weather mobile application. On the other hand, users especially the
forecast, and news report reminders. This paper presents an elderly can save the time spent familiarizing with the
overall design for low-cost, micro-processor based smart home
dynamic operating technologies. People with disabilities also
system designed for hall residents of Nanyang Technological
have access to use the smart home system.
University (as the main beneficiary). It aims to improve their
academic performance by providing a better quality of living.
The aim of this paper is to design and implement a
The system can also be operated as a computer and supports quality home assistant which can control by both voice and
integration with various sensors through its General-purpose text commands. Voice commands are captured by Amazon
Input / Output pins (GPIO). Users can customize their needs Voice Service (AVS), also known as Alexa. It is then
through this system. The presented system integrates processed by Amazon Developer Console, Alexa Skill Sets
household appliance control, entertainment system, hall and Ngrok service before reaching the control terminal, a
facilities monitoring and home security. It is controlled via Raspberry Pi. User can access and manage these services via
Telegram on smart phones and Alexa Voice Service (AVS) and Amazon Developer Console.
Amazon Developer Console supported by Amazon.
II. LITERATURE REVIEW
Keywords-raspberry Pi; Python; smart home; Telegram; The basic idea of a smart home system is to control and
Alexa; Alexa skill sets monitor household appliance wirelessly and verbally.
Amruta S Et Al. [2] proposed a computer based wireless
I. INTRODUCTION smart home system. The proposed system consists of an
Home automation is an act of using devices and automatic speech recognition system which identifies the
programming through a network to control home functions spoken words and translates them into text command in
for a better quality of life. It reduces human interactions as MATLAB. The text command will be transmitted to a
much as technically possible and replaces them with microcontroller via a low-powered RF ZigBee based remote
programmed electronic systems. Smart home has been a control system. The microcontroller controls the household
developmental focus for global technology corporates such electrical appliances via its corresponding relays.
as Google and Amazon. By 2022, global smart home market Sonali Sen Et Al. [3] proposed another voice controlled
is expected to reach USD 121.73 Billion, a huge growth smart home project. It was implemented with an Android
from USD 46.97 Billion in 2015 [1]. The most common based smartphone, an Arduino UNO, a Bluetooth module
features of the smart home systems in the market comprise and relays which are connected to the household appliances.
household control, smart room, security, surveillance, The Speech to Text service (STT) is implemented by the
entertainment system, energy saving and healthcare. built-in Android voice recognizer, and the Bluetooth module
Generally, most of the smart home systems make use of transmits the text command to the serial ports of Arduino
wireless technology such as internet, radio frequency and UNO. Based on the text commands to the General-Purpose
Bluetooth as means of communication between the Input / Output (GPIO) pins, the relays are set to ON or OFF
controllers and receivers. Users are able to send commands accordingly.
and control the smart home systems via computers,
III. PROPOSED SYSTEM
smartphones and pre-built programming codes. Various
Android and iOS based mobile applications are developed to The proposed system utilizes the services provided by
improve the user experience. Amazon, which is capable of capturing voice commands and
Today, with the introduction of Google Home and processing them. The command will be sent to a local
Amazon Echo, voice controlled smart home system has webserver created by Raspberry Pi microprocessor. This
C. Ngrok Service
Ngrok is an efficient tool for developers to test their
webworks, localhost and APIs. By creating a secure public
URL, it allows local hosts and machines to connect to the
internet, behind the firewalls [7]. In this project, Ngrok
generates a public URL and it is used by Amazon Developer
Console as a mean of communication with the Raspberry Pi.
The most significant advantage of using Ngrok is its swift
response speed. The average time taken for the voice
command to be processed in this smart home system is 1 to 2
Figure 2. Schematic Raspberry Pi 3 Model B front. seconds. Figure 4 shows the terminal of Ngrok displaying
the public URL while Figure 5 shows Amazon Developer
The Raspberry Pi is a credit card size microcomputer. It Console interface where the Ngrok URL is requested.
is the brain of the entire smart home system, capable of
processing programming codes and controlling a huge
number of devices via its GPIO pins. For specifications, the
Raspberry Pi processes at 1.2GHz with a Broadcom
BCM2837 64bit ARMv7 Quad Core Processor. It has 40
GPIO pins, 4 USB ports, a full size HDMI port, micro-SD
port, and is powered by a micro USB power source [4]. For
its wireless communication, the Raspberry Pi has both WiFi
and Bluetooth module on board. Once the Raspberry Pi is
Figure 4. Ngrok Terminal Showing the Public URL.
connected to a monitor, a mouse and a keyboard, it is ready
connected to the Raspberry Pi as a microphone. The
hardware prototype is shown in Figure 7 below.
B. Raspberry Pi Control Implementation V. CONCLUSION AND FUTURE WORKS
A main python script is written in Raspberry Pi to In the near future, smart home system will be essential to
execute the commands processed by Alexa Voice Service. everyone with the ever-improving Google Home and
This script is running all the time to capture any commands Amazon Echo. This paper presented the design and
sent. Individual features such as music videos control, LED implementation of a low-cost voice activated smart home
color control and security are written in separate Python system which can be integrated with many basic subsystems
codes and they are called in this main script using and tailored to personal needs. With the Alexa Skill Kits and
Subprocess method. Figure 10 shows part of the main Raspberry Pi, every appliance can be controlled from
Python script to execute the music videos control and anywhere without direct interaction with them. There is full
security features. The voice response of Alexa is written in of potential in developing the simple and user-friendly Alexa
the return statement line. Skill Kits and the Amazon Web Services. Future works can
be done on upgrading the smart home system to cater to a
larger number of users, e.g. smart classrooms and smart
schools. One can also consider developing a smart healthcare
system for the elderly to alert their next of kin should Alexa
receive no responses from the user for a long period of time,
or a requested help.
ACKNOWLEDGMENT
We wish to acknowledge the funding for this project
Figure 10. Main Python Script in Raspberry Pi from Nanyang Technological University under the
Undergraduate Research Experience on CAmpus (URECA)
programme.
C. Results
Once the main Python script is being executed and Ngrok REFERENCES
is online (connected to Amazon Developer Console), Alexa [1] Markets and markets, “Smart home market by product (lighting
is ready to work. The smart home system can be tested via control (timer, daylight sensor, occupancy sensor), security & access
the “Test” function in the console to ensure that the system is control, HVAC, entertainment, home healthcare and smart kitchen),
fully operational. Figure 11 shows the service request and software & service (behavioral, proactive), and geography – Global
Forecast to 2022, May 2016.
positive response from the test function.
[2] Amrutha S, Aravind S, Ansu Mathew, Swathy Sugathan, Rajasree R,
Upon testing, the smart home system functioned as Priyalakshmi S, “Voice controlled smart home,” ISSN 2250-2459,
expected and responded to commands within a few seconds. ISO 9001:2008 Certified Journal, vol. 5, Issue 1, January 2015.
The return statements delivered by Alexa were loud and [3] Sonali Sen, Shamik Chakrabarty, Raghav Toshniwal, Ankita
clear. Also, this smart home system worked perfectly on both Bhaumik d, “Design of an intelligence voice controlled home
Reverb and Telegram. automation system,” International Journal of Computer Applications
(0975 – 8887), vol. 121 – No.15, July 2015.
[4] Foundation, Raspberry Pi, Raspberry Pi 3 Model B specifications.
https://www.raspberrypi.org/products/raspberry-pi-3-model-b/
[5] PuTTY team, PuTTY: a free SSH and Telnet client. Accessed 21 Feb
2017.
http://www.chiark.greenend.org.uk/~sgtatham/putty/
[6] David Isbitski, “Enabling new voice expericences with Amazon
Alexa and AWS Lambda,” AWS Summit, April 2016.