You are on page 1of 5

2020 International Conference on Industry 4.

0 Technology (I4Tech)
Vishwakarma Institute of Technology, Pune, India. Feb 13-15, 2020

Smart Home Automation-cum Agriculture System


Shubham Katangle Mayuresh Kharade S. B. Deosarkar
Dept.of ExTC, Dept.of ExTC, Dept.of ExTC,
Dr. B.A Technological University, Dr. B.A Technological University, Dr. B.A Technological University,
Lonere, 402103 India. Lonere, 402103 India. Lonere, 402103 India.
katangleshubham@gmail.com mayureshk111198@yahoo.com sbdeosarkar@yahoo.com

Ganesh M. Kale S. L. Nalbalwar


Dept.of ExTC, Dept.of ExTC,
Dr. B.A Technological University, Dr. B.A Technological University,
Lonere, 402103 India. Lonere, 402103 India.
ganraj.m.kale@gmail.com nalbalwar_sanjayan@yahoo.com

Abstract— In this article, the optimized hardware with Ready to use and the cost-effective system has been
reduced cost an IoT based using a voice-commanded smart proposed in [4], the user commands are processed through a
two-way automated system has been proposed and microcontroller(Raspberry Pi)with the Python language and
implemented. The ESP8266 NodeMCU micro-controller board also Zigbee protocol is used. A drip irrigation system is made
is used as a central unit of this system. The system when used smart using the solenoid values along with ultrasound
as smart Home Automation, initiated with a voice command sensors. A smart home automation device has been proposed
over a smartphone given by the user using Google Assistant which uses advanced features such as Blynk app for easy and
with a co-interfaced IFTTT (If This Then That) and the Blynk user-friendly application [5]. Providing a practical view on
app platform which made this feature possible. The multi-
the architecture of the working home automation device that
channel relay module for loads is interfaced with the central
unit. The central unit processes the data as per the user input.
focuses on user interface along with actual communicating
When used for Agricultural monitoring the environmental devices [6]. The crop monitoring is implemented using IoT
parameters including soil moisture, air temperature and and monitoring is done by analyzing various environmental
humidity (DHT11) has been analyzed and displayed on the parameters viz.humidity, moisture content, temperature, soil
OLED screen. Water flow was controlled using the water nutrients and water sprinklers [7]. In [8], Sandra Ivanović et
motor as per soil moisture threshold value. Hypertext transfer al. have proposed the method for the collection of data usage
protocol based ESP8266 Wi-Fi based NodeMCU is routed to within a home automation system with a big data Gateway
the Wi-Fi network and communicated with cloud platform. Field monitoring is achieved by using various
storage(Thingspeak) and IoT platform Blynk. The data from sensors such as soil moisture, dht11, and Arduino Uno board
the sensors of the specified environmental parameters have is being used which receives data and can be used by the
been collected, monitored and then sent to the storage cloud farmer to monitor [9]. In [10], the author focuses on the
and Blynk through Wi-Fi. The paper focuses on achieving automatic system for plant watering and also monitoring the
automation of two different fields with a single hardware necessary conditions for plant healthy growth. The smart
system. way through which we can use energy very efficiently, a
home automation system is implemented using IoT [11].
Keywords— ESP8266, NodeMCU, IoT, Blynk, IFTTT,
Thingspeak, home automation system, agricultural monitoring, With many technological transformations in agriculture,
Google assistant, voice command farming has become more industrialized and technology-
driven. The life of farmers has been made much better by
I. INTRODUCTION using various smart agri-tech gadgets and other livestock
Internet of things has the potentiality to tempt the world methods. In [12,13], a smart agriculture technique is
we live in; Smart cities, connected cars and upgraded proposed and the wireless robot is capable of performing a
industries are all constituents of IoT (Internet of Things) various tasks which includes scaring intruders(birds),
equation. Nevertheless, employing technology like IoT to the pesticide spraying, moisture sensing and operating an electric
Home automation and Agriculture industry could have the motor. In [14], Md. Adib Muhtasim et al. invented the
keenest effect. The achievement of IoT will depend on the concept of smart garden automation using Arduino Uno. For
growth of the ecosystem, endorsed by a suitable and healthy the smart farming system [15] in a limited enclosed area with
environment with a glimpse of faith with some crucial issues sensors to monitor the essential parameters for crops, the
of security, privacy and identification [1]. In [2], Prahlad devices used Arduino Uno, moisture sensor for soil, DHT11
Bhadani et al. have concerned about the need for smart sensor, pH value sensor also light sensors.
farming techniques for the Indian farmers, for this, they used When home automation system comes to mind we think
Arduino Uno and with the temperature, moisture, and the of a system which controls home appliances
humidity sensors. Data is fetched by the sensors sending it to automatically and sometimes remotely with various control
the MCB board which is displayed on the LCD unit. In [3], systems [16, 17]. With various advancements in agri-tech
the innovative system has been proposed using thermal [18-20], better control has been established over livestock
probes soil moisture sensors to evaluate its thermal resistivity rearing, growing crops, cutting cost by the farmers, also has
and moisture content, using Arduino Uno with a lab view helped to save resources like water. In [21], Gudipati
interface. Sravanthi et al. have proposed the voice recognition
application based wireless home automation system. The

978-1-7281-5003-1/20/$31.00 ©2020 IEEE 121

Authorized licensed use limited to: Universidade Estadual de Ponta Grossa. Downloaded on April 18,2023 at 20:31:27 UTC from IEEE Xplore. Restrictions apply.
idea of smart irrigation using Arduino based on parametric Processing, the ESP8266 NodeMCU microcontroller
sensors used in agriculture. The designed system is efficient receives the input from the user over a wireless connection.
and built using Arduino ESP 8266 Wi-Fi and sensors [22]. In The flowchart for smart home Monitoring as shown in Fig.2
[23], the authors implemented an automation system based
on the web using Raspberry Pi micro-controller linked to the
GUI via Html / PHP platform.
II. SYSTEM ARCHITECTURE
Till now systems were designed that could be used
particularly for home automation or for agricultural
monitoring. There were no systems designed with the idea of
a single microcontroller capable of doing both the tasks. In
the proposed system there is hardware-based on ESP8266
NodeMCU [24] as a central unit that is capable of working
as an Internet of Things based SHAS(Smart home
automation system) and also as an Agricultural monitoring
system. Fig. 1 depicts an overview of the automation system.
The system hardware is developed to monitor the house or
the agricultural environment with IoT features such as voice Fig. 2. Flowchart for smart home monitoring.
command from the user through mobile, also storage of data
on the cloud. Sensors viz. moisture(soil) sensor, The loads are connected to the multi-channel relay
DHT11(humidity and temperature sensors) are interfaced module and action is triggered as per the input data. The
with the ESP8266 (Wi-Fi board) along with sending the data temperature value of the home environment is displayed on
to the IoT platform used [1]. the OLED display. The NodeMCU is interfaced with a cloud
storage platform called ThingSpeak [27] where data is sent.
In the output action, the loads for example light is switched
on or off; as per temperature reading user can give voice
commands to switch on coolers or AC or room heaters.
B. The system used for agricultural monitoring
Voice command is given to the Google Assistant using
mobile to monitor the lights and water Motors used. This is
achieved through IFTTT and Blynk app platform. ESP8266
NodeMCU is interfaced with environmental parametric
sensors which include moisture(soil) sensor, humidity and
temperature sensor and water pump as a load. The data
received from the sensor is forwarded to the NodeMCU and
displayed on the OLED screen and also stored on the cloud
Fig. 1. Schematic Block Structure of the proposed automation system
storage (ThingSpeak). The water motor is switched on or off
as per the soil moisture threshold value is observed. See the
III. WORK FLOW flowchart for Agricultural Monitoring is shown in the Fig.3
A. The System when used as Smart Home Automation
device
The working of the system, when used for home
automation, is divided into three parts User access, Central
Processing, and Output action. In the user access section, the
user operates the system by giving a voice command using
the Google assistant. Google Assistant is a widely used voice
command service based on artificial intelligence(AI) using
this user can control the functioning of the appliances in the
house. This feature is achieved by using the Blynk app which
an IoT platform is allowing controlling of electronic devices
by providing a dashboard through which users can create
different interfaces using widgets.
The Blynk app is interfaced with IFTTT (If This Then
That) app so that the Google assistant can directly understand
the foreign commands given by the last end user. These
commands are being set by the user itself on the IFTTT app.
IFTTT (If This Then That) is a service on a web platform
that allows the user to create applets that automate the Fig. 3. Flowchart for agricultural monitoring
specified task [26]. In the central Processing section, the
input is received from the user in the ESP8266 NodeMCU.
The ESP8266 NodeMCU processes the data as per the input
and switches on/off the relay module loads. In central

122

Authorized licensed use limited to: Universidade Estadual de Ponta Grossa. Downloaded on April 18,2023 at 20:31:27 UTC from IEEE Xplore. Restrictions apply.
platform called Blynk, which allows users to control
electronic devices by providing a dashboard where users can
create interfaces with various widgets. To directly
understand the foreign commands given to the Google
assistant, Blynk is interfaced with IFTTT to achieve it. It
works with three main features that are Libraries (for
hardware communication), Server (for communication
between hardware and app) and App (for interface).Fig.4
shows the Blynk app interface.
IV. SYSTEM HARDWARE AND SPECIFICATIONS
The circuit arrangement in the present automation system
is viewed in Fig.5. NodeMCU being the central unit is
connected to the sensor DHT11 and the soil moisture sensor.
Also, it is interfaced with a 4ch. Relay module to which
loads are connected.
A. ESP 8266 NodeMCU the microcontroller unit
Fig. 4. Blynk app interface
The NodeMCU(ESP8266) is wifi enabled
Microcontroller with an open-source platform. Both
hardware and software are framed in such a way that it is a
very inexpensive Wi-Fi SoC (system on a chip) i.e.
ESP8266 [24]. It is designed from Espressif systems. It is an
excellent choice for IoT projects because of its low cost and
easy interfacing with various parametric sensors and other
devices. It can be programmed in both LUA scripts and
Arduino IDE software. It can be easily communicated with
the IoT platform based on the HTTP protocol [1]. Interfaced
with cloud storage using API keys (Application Program
Interface) therefore easily accessed by the user. The
ESP8266 NodeMCU control unit has the following pinout
Fig. 6.
B. Relay module
It is a switch operable both electrical and mechanical i.e
an electromechanical switch with a set of input terminals for
Fig. 5. Circuit diagram of the proposed automation system
single or multiple signals [27]. Fig.7 shows the four-channel
relay module used. It can be operated over a low power
signal; therefore, it is an advantage. As it is capable of
controlling a high energy circuit using a low energy signal it
is widely used in interfacing different types of loads on it.

Fig. 6. Pin diagram of NodeMCU

Fig. 8. Sensors used in Agriculture system

Fig. 7. Four-channel Relay module

C. Blynk App
Controlling of the appliances in the house interfaced with
the NodeMCU using relays is achieved using the IoT Fig. 9. OLED display

123

Authorized licensed use limited to: Universidade Estadual de Ponta Grossa. Downloaded on April 18,2023 at 20:31:27 UTC from IEEE Xplore. Restrictions apply.
C. Sensors and water Motors
In the agricultural monitoring unit sensors such as soil
moisture sensor, DHT 11 and water motor is used [27]. The
water content in the soil is fetched from the soil moisture
sensing device through which we can monitor the flow of
water to the agriculture fields using water motor. The dht11
gives the humidity and temperature values in the agricultural
environment. It gives the aggregate sum of the water vapor in
the air as a measure of humidity and the temperature for a
range of 0 degrees to 50 degrees Celsius with an accuracy of
Fig. 11. Results for Temperature
±1 %; humidity from 20 % to 90% resolution value with the
accuracy of ± 1%. The sensors used are shown the Fig.8. The
water motor used here is of single phase 1HP with 0.75 kW
power, the voltage band is of 180-240V with the maximum
speed of 3000 RPM.
D. OLED display
In the given system SSD1306, I2C based 0.96 inches 4
pin OLED (Organic Light Emitting Diode) display module
has been used [27]. It has an advantage over LCD
Technology as it does not require a backlight, it has 128x64
pixels, and its pixels consume less energy compared to other
Fig. 12. Results for Humidity
displays. It is interfaced with NodeMCU to display the data
observed. Fig. 9 shows the OLED display used.
V. RESULTS AND DISCUSSION
E. IoT and software platform Results up to significant levels are being observed. As an
The IoT platform used here is the Blynk app interfaced instance, in-home automation the result being observed is
with NodeMCU along with IIFTTT to receive a foreign that by just giving a voice command over mobile through
voice command from Google Assistant. It is a Hardware- Google assistant user can control his home appliances in an
agnostic platform that helps in controlling the electronic efficient way. The temperature sensing device helps in
devices remotely. For cloud storage, the ThingSpeak cloud monitoring the loads such as air conditioners or air coolers.
platform is used which stores data and provides graphical All these things are carried out in an energy-efficient
representations of the stored data. Arduino IDE software manner. Next, the results are observed when the system is
platform is used in this system to code and upload on the used for Agricultural monitoring; the system is then able to
micro-controller device ESP8266 NodeMCU. Fig.10 shows get the data for environmental parameters including moisture
the IFTTT interface used. present in the soil, humidity and temperature readings. These
readings have been displayed on the OLED screen thereby
helping in case of physical monitoring of the field.

Fig. 13. Results for the Soil moisture

The results observed have been stored on the cloud


storage platform i.e. ThingSpeak, here the Environmental
data in time-axis format is graphically visualized on IoT
platform which allows the user to get informed about the
internal conditions of the environment in actual real-time
which helps the user to analyze and monitor according to the
data [27].
The outcomes are expressed and examined in terms of
humidity, soil moisture, and temperature. The supervised
real-time data for humidity, soil moisture and temperature
are taped on the internet server. The collective measure of
humidity, temperature and soil moisture are shown in Fig.
Fig. 10. IFTTT interface 11, Fig. 12, and Fig. 13. The outcomes of the sensors
readings are generated on the software platform (Arduino

124

Authorized licensed use limited to: Universidade Estadual de Ponta Grossa. Downloaded on April 18,2023 at 20:31:27 UTC from IEEE Xplore. Restrictions apply.
IDE) [25], the serial monitor is shown in Fig. 14. A working International Conference on Inventive Communication and
prototype for the system is shown in Fig.15. Computational Technologies, April 2018,pp.393-397.
[6] M.Gamba, A.Gonella, C.Palazzi, "Design Issues and Solutions in a
Modern Home Automation System", 2015 International Conference
on Computing, Networking and Communications, Feb. 2015,
pp.1111-1115.
[7] K.Ghanshala, R.Chauhan, R. C Joshi, "A Novel Framework for Smart
Crop Monitoring Using the Internet of Things (IoT)", International
Conference on Secure Cyber Computing and Communication, Dec.
2018 pp. 62-67.
[8] S.Ivanović, S.Milivojša, T. Erić, M.Vidaković, "Collection and
Analysis of System Usage Data in Smart Home Automation
Systems", International Conference on Consumer Electronics,
December 2017, pp. 65-66.
[9] R.K.Jha, S.Kumar, K.Joshi, R.Pandey, "Field Monitoring Using IoT
in Agriculture", International Conference on Intelligent Computing,
Instrumentation and Control Technologies, July 2017,pp.1417-1420.
[10] K. Krishna Kishore, M. H. Sai Kumar, M. B. S. Murthy, "Automatic
Fig. 14. Readings on Serial Monitor Plant Monitoring System", International Conference on Trends in
Electronics and Informatics,2017,pp.744-748.
[11] R.K.Kodali,S.Yerroju, "Energy Efficient Home Automation Using
IoT", International Conference on Communication, Computing and
Internet of Things, Feb. 2018,pp.151-154.
[12] K. Lokesh Krishna, O.Silver, W.Malende, K. Anuradha, "Internet of
Things Application for Implementation of Smart Agriculture
System", International Conference on I-SMAC Feb. 2017,pp.54-59.
[13] R.K.Math, N.V Dharwadkar, "A Wireless Sensor Network Based
Low Cost and Energy Efficient Framework for Precision
Agriculture", International Conference on Nascent Technologies in
Engineering, Jan 2017, pp 27-28.
[14] Md.Muhtasim, S.Fariha, A.Ornab, "Smart Garden Automated and
Real-Time Plant Watering and Lighting System with Security
Features", International Conference on Computing, Power and
Communication Technologies, Sep 2018 pp.676-679.
[15] R. Ramya, C. Sandhya, R. Shwetha, "Smart Farming using Sensors",
Technological Innovations in ICT for Agriculture and Rural
Fig. 15. The prototype of the automation system Development, April 2017pp.218-222.
[16] P.Rani, J.Bakthakumar, B. Praveen Kumaar, U. Praveen Kumaar,
VI. CONCLUSION S.Kumar, "Voice Controlled Home Automation System Using
Natural Language Processing (Nlp) And Internet Of Things (IoT)",
Concluding, In this paper, an IoT based hardware system International Conference on Science Technology Engineering &
is proposed which is used for smart home automation and Management, March 2017.pp 23-24.
also for agricultural monitoring with the same single MCU [17] K. A. S. V. Rathnayake, S. I. A. P. Diddeniya, W. K. I. L
Wanniarachchi, W. H. K. P. Nanayakkara, H. N. G, "Voice Operated
hardware. Unlike the other trends in traditional IoT based Home Automation System Based on Kinect Sensor", International
automation, this paper mainly focuses on hardware Conference on Information and Automation for Sustainability, Dec.
optimization and energy efficiency. For other devices, 2016, pp 16-19.
separate micro-controllers are used for home automation or [18] R Shripradha, V P Suryaswetha, KM Senthil, J Ajayan, J Jayageetha,
A Karthikeyan, "Agricultural Field Monitoring using IoT",
Agriculture monitoring thereby saving energy using just International Conference on Advanced Computing & Communication
single hardware. With easy user access and security, it would Systems (ICACCS), March 2019,pp.277-280.
give a significant contribution to the advancement of IoT [19] G. Shruthi, B. SelvaKumari, R. PushpaRani, R. Preyadharan, "A-Real
based automation systems. Time Smart Sprinkler Irrigation Control System", International
Conference on Electrical, Instrumentation and Communication
ACKNOWLEDGMENT Engineering, April 2017, pp 27-28.
[20] P.Singh, S.Saikia, "Arduino-Based Smart Irrigation Using Water
The authors would like to thank Mr. Ravindra N. Rathod, Flow, Sensor, Soil Moisture Sensor, Temperature Sensor, and
Assistant Professor, Department of ExTC Dr. B. A ESP8266 WiFi Module", Region 10 Humanitarian Technology
Technological University, Lonere, Raigad, India for his Conference, Dec. 2016, pp 21-23.
[21] G.Sravanthi,G.Madhuri, N.Sharma, A.Tiwari, A. Kashyap, B. Suresh,
valuable guidance and support. "Voice Recognition Application Based Home Automation System
with People Counter", International Conference on Advances in
REFERENCES Computing, Communication Control and Networking, Oct. 2018,
[1] OvidiuVermesan, Peter Friess, Internet Of Things Applications: From pp.574-578.
Research and Innovation To Market Deployment, River Publishers [22] S.Thakare, P.H. Bhagat, "Arduino-Based Smart Irrigation Using
Series In Communications,2014. Sensors and ESP8266 WiFi Module", Second International
[2] PrahladBhadani, Dr.VVashisht, “Soil Moisture, Temperature, and Conference on Intelligent Computing and Control Systems (ICICCS),
Humidity Measurement Using Arduino”, International Conference on June 2018, pp.1085-1089.
Cloud Computing, Data Science & Engineering, Jan 2019,pp.567- [23] Satyam H Nalawade, Nileshkumar K Verma and Ravindra N Rathod
571. ,”Web-Based Home Automation using IoT”, IESS,2017.
[3] L.Calcara, G.Felice, F.Ferrucci, F.Marchetti, “Soil thermal resistivity: [24] Anita Gehlot, PriyankaTyagi, Bhupendra Singh, Rajesh Singh,
innovative measurement system”, IEEE International Conference on Getting Started for the Internet of Things with LaunchPad and
Environment and Electrical Engineering, June 2019. ESP8266, River Publishers Series in Information Science and
[4] N.Agrawal, S.Singhal, "Smart Drip Irrigation System using Raspberry Technology,2019.
Pi and Arduino”, International Conference on Computing, [25] https://www.electronicwings.com/
Communication and Automation, May 2015,pp.928-932. [26] https://thingspeak.com/
[5] H.Durani, M.Sheth, M.Vaghasia, S.Kotech, "Smart Automated Home [27] https://www.circuito.io/
Application using IoT with Blynk App", Proceedings of the 2nd

125

Authorized licensed use limited to: Universidade Estadual de Ponta Grossa. Downloaded on April 18,2023 at 20:31:27 UTC from IEEE Xplore. Restrictions apply.

You might also like