Design and Construction of A Smart-Home Automation System (SHAS) Using Nodemcu and Google Assistant
Design and Construction of A Smart-Home Automation System (SHAS) Using Nodemcu and Google Assistant
net/publication/361017475
CITATIONS READS
3 216
5 authors, including:
All content following this page was uploaded by Jangfa Timothy Zhimwang on 01 June 2022.
Authors’ contributions
This work was carried out in collaboration among all authors. All authors read and approved the final
manuscript.
Article Information
DOI: 10.9734/AJR2P/2021/v5i430168
ABSTRACT
This paper presents the design and construction of a smart-home automation system using
nodeMCU and Google assistant. The device consist of Enhanced Universal Synchronous
Asynchronous Receiver Transmitter (EUSART) module that contains all clock generators, shift
registers and data buffers necessary to perform an input or output serial data transfer independently
of the device program execution. The NodeMCU (ESP8266) Wi-fi Shield connected the
microcontroller to the provided Wi-fi network. The Arduino and MPLAB Programming Interface with
the help of PICKit3 were used to run the code on PIC16F877A. Home appliances were controlled
via a web page created using IFTTT for the voice command and the Blynk app for controlling
hardware remotely and also display sensor data. IFTTT is a simple to use internet service that
easily enables IoT devices to GET and POST data. The device was constructed based on low cost
and reliable home controlled monitoring system for accessing and controlling electronics appliances
remotely using any Smart phone with access to Google assistance or Computer web application.
The device was test under different electronics appliances with different voltage capacities and was
found efficient. Therefore, this device when used is capable of improving the living standard at
home, reduces human effort, save energy and time thus make homes have sufficient automation.
2
Efenji et al.; AJR2P, 5(4): 1-10, 2021; Article no.AJR2P.83372
A diode's most common function is to allow output after rectification. The rectifiers' pulsating
current to flow in one direction (the diode's output has an average DC value and an AC
forward direction) while preventing current flow in portion known as ripple voltage. Filter capacitors
the opposite direction (the reverse direction). As bring the amount of ripple voltage down to a safe
a result, the diode can be thought of as an level. During the positive portion of the input, the
electronic version of a check valve. capacitor in a filter circuit is charged to the peak
of the rectified input voltage. The capacitor
The output voltage of a center-tapped full wave begins to discharge into the load when the input
rectifier is one-half of total secondary voltage becomes negative. The rate of discharge is
expressed as [6, 7], determined by the RC time constant formed by
the capacitor and the load's resistance [9].
(1)
The voltage across the capacitor was determined
by [10]
Where VB is the biased voltage of the diode. The
peak inverse voltage (PIV) for a full wave center
tapped rectifier is 2VP(out) [6]. (5)
Ripple factor: the ripple factor was used to And the voltage across the resistor was
measure the amount of ripples present in the determined by [10]
output DC voltage. Ripple factor is defined as the
ratio of ripple voltage to the pure DC voltage (6)
expressed as [8]:
Transfer function from the input voltage to the
= 0.48 (2) voltage across the capacitor is expressed
as [10]
A high ripple factor indicates a high pulsating DC
(7)
signal.
DC output current IDC = (3) Transfer function from the input to the voltage
across the resistor is expressed as [10]
where Imax is the maximum DC load current.
(8)
(4)
Since a full wave rectifier was connected to a
capacitor input filter, the peak-to-peak ripple was
where Vmax is the maximum secondary voltage.
cut in half and when the full wave voltage was
applied to the RC circuit, the capacitor
Because of the full wave rectification, the period
discharges for only half as long [10]
of the full wave signal was half the input period
which was obtained as
(9)
For LPF,
The output frequency =
(10)
Therefore, the frequency of the full wave signal is
double the input frequency. (11)
3
Efenji et al.; AJR2P, 5(4): 1-10, 2021; Article no.AJR2P.83372
module is a serial I/O communication peripheral. equipment, as well as tanks, aircraft, and ships,
It includes all of the clock generators, shift all include it [12].
registers, and data buffers needed to accomplish
an input or output serial data transfer 2.9 Potentiometer
independently of the device programme.
A potentiometer, often described as a pot, is a
2.4 Regulator three-terminal resistor with a sliding contact that
acts as a voltage divider that can be adjusted. It
Voltage levels are controlled by a voltage operates as a variable resistor or rheostat when
regulator. The voltage regulator is the preferred only two terminals, one end and the wiper, are
device when a constant, stable voltage is employed. A potentiometer is a voltage divider
required. It produces a constant output voltage used to measure electric potential (voltage); the
regardless of changes in the input voltage or load component is an embodiment of the same idea,
conditions [11]. hence its name. Potentiometers are often used to
operate electrical devices, such as audio
2.5 Node MCU (ESP8266) Wi-fi Shield equipment volume controls. Position transducers
can be made from potentiometers that are
This is the Wi-fi shield that connects the controlled by a mechanism [13]. A resistive
microcontroller to the available Wi-fi network. A element, a sliding contact (wiper) that moves
microcontroller is a compact integrated circuit along the element, making good electrical
designed to govern a specific operation in the contact with one part of it, electrical terminals at
coding section. The main features of each end of the element, a mechanism that
microcontrollers are RAM, flash memory, moves the wiper from one end to the other, and a
Timers/Counters, EEPROM, I/O Ports, USART, housing that contains the element and wiper are
CCP (Capture/Compare/PWM module), SSP, all included in a potentiometer. Potentiometers
Comparator, ADC (analog to digital converter), are rarely used to control large quantities of
PSP (parallel slave port), LCD and ICSP (in- power directly (more than a watt or so).
circuit serial programming) The 8-bit PIC
microcontroller is classified into four types based 2.10 Procedures for Setting up Ifttt for Iot
on internal architecture such as Base Line PIC,
Home Automation
Mid Range PIC, Enhanced Mid Range PIC and
PIC18.
In this Study, Home appliances were controlled
2.6 Relay via a web page created using IFTTT as shown in
figure 2 for the voice command and the Blynk
A relay is a device with contacts that responds to app for controlling hardware remotely and also
an input signal (voltage or current) applied to a display sensor data. IFTTT is a simple to use
coil by opening and closing a switch. In today's internet service that easily enables IoT devices to
technical systems, the electric relay is one of the GET and POST data. Additionally, it can be used
most commonly utilised devices. Cars, washing to create GUI interfaces for viewing data,
machines, microwave ovens, and medical controlling devices, and triggers alerts/warnings.
4
Efenji et al.; AJR2P, 5(4): 1-10, 2021; Article no.AJR2P.83372
Step 2: Creating an IFTTT (If This, Then That) command was controlled via Google voice command
and response was received from Google Assistance.
5
Efenji et al.; AJR2P, 5(4): 1-10, 2021; Article no.AJR2P.83372
6
Efenji et al.; AJR2P, 5(4): 1-10, 2021; Article no.AJR2P.83372
Step 5: Running the control code on Arduino Interface, connecting Gmail Account with our NodeMCU
Module
7
Efenji et al.; AJR2P, 5(4): 1-10, 2021; Article no.AJR2P.83372
8
Efenji et al.; AJR2P, 5(4): 1-10, 2021; Article no.AJR2P.83372
3. RESULTS
9
Efenji et al.; AJR2P, 5(4): 1-10, 2021; Article no.AJR2P.83372
Smart Grid. IEEE Transactions on Smart S.Chand and company LTD. Pg.
Grid. 2011;2(2):314-325. 2002:442-467.
4. Malik N, Bodwade Y. Literature Review on 9. Zhimwang JT, Yunisa Yahaya,
Home Automation System, Ijarcce. Ibrahim Aminu, Esther M. Fomson,
2017;6(3):733–737. Dachomo DB. Design and construction of
DOI: 10.17148/ijarcce.2017.63173. a dual regulated ±0-35volts dc
5. Lamine H, Abid H. Remote control of a power supply using LM317 and
domestic equipment from an Android LM337 voltage regulator. African
application based on Raspberry pi card. Journal of Natural Sciences. 2017;20:
STA 2014 - 15th Int. Conf. Sci. Tech. 107-118.
Autom. Control Comput. Eng. 2014:903– 10. Malvino A, Bates JD. Electronics
th
908. Principles. 7 edition, McGraw-Hill
DOI: 10.1109/STA.2014.7086757. Science. 2006:946-1223
6. Akande SFA, Kwaha BJ, Alao SO. 11. Neil storeg. Electronics A systems
Fundamentals in Electronics. Jos approach. 4th Edition. Pearson Education
University Press Ltd, Jos, Nigeria; 2007. Limited. 2009:821.
7. Theraja AK, Theraja BL. Electrical 12. Mehta VK, Rohit M. Principles of
Technology. Multicolor Edition. S Chand electronics.11th edition, S.Chand and
And Company Ltd, Ram Magar, New campany LTD. Pg. 2000:442-467.
Delhi. 2005:1116 -1123 13. Mehta VK. Principle of Power Systems. 5th
8. Theraja BL, Theraja AK. A textbook of edition, S.Chand and company LTD. Pg.
th
Electrical Technology. 24 edition, 2005:41-111.
_________________________________________________________________________________
© 2021 Efenji et al.; This is an Open Access article distributed under the terms of the Creative Commons Attribution License
(http://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium,
provided the original work is properly cited.
Peer-review history:
The peer review history for this paper can be accessed here:
https://www.sdiarticle5.com/review-history/83372
10