Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

2020 IEEE International Women in Engineering (WIE) Conference on Electrical and Computer Engineering (WIECON-ECE)

2020 IEEE International Women in Engineering (WIE) Conference on Electrical and Computer Engineering (WIECON-ECE) | 978-1-6654-1917-8/20/$31.00 ©2020 IEEE | DOI: 10.1109/WIECON-ECE52138.2020.9397991

Microcontroller Based Intelligent Greenhouse


Environment Monitoring and Controlling System
Rounak Jahan Md. Mominul Islam
Nagib Mahfuz
Electrical & Electronic Engineering Electrical & Electronic Engineering
Electrical & Electronic Engineering
(EEE) (EEE)
(EEE)
American International University- American International University-
American International University-
Bangladesh (AIUB) Bangladesh (AIUB)
Bangladesh (AIUB)
Dhaka, Bangladesh Dhaka, Bangladesh
Dhaka, Bangladesh
rounakjahan56@gmail.com mominulmizan@gmail.com
mahfuz_aiub@yahoo.com
Shawan Karmokar
Mehen Nigar
Electrical & Electronic Engineering
Electrical & Electronic Engineering
(EEE)
(EEE)
American International University-
American International University-
Bangladesh (AIUB)
Bangladesh (AIUB)
Dhaka, Bangladesh
Dhaka, Bangladesh
jotyirmay@yahoo.com
mehen_nigar@yahoo.com

Abstract—Greenhouse farming is the unique farm practice and the proposed design for setting up the critical value
of growing crops within a controlled environment. Weather range. The smartphone app communicates with the system
and climate condition controlling is the prime concept of using the Bluetooth communication protocol. It's a secure
greenhouse farming. This research aims to develop an and efficient technology for use in a short span.
intelligent system for monitoring and controlling greenhouse
parameters. This smart system monitors greenhouse farming's II. RELATED RESEARCH WORK
critical parameters, such as temperature, humidity, light, soil
moisture, and methane gas. Necessary sensors are integrated to Many researchers doing works to make the greenhouse
monitor these parameters. The system will send a notifying farming system more autonomous and introduced so many
SMS to the user if the sensor value is in an unacceptable range. technologies. Meghal et al. [1] designed an IoT-based
An android app is developed for setting the threshold value for greenhouse monitoring device using a native
different parameters. Besides autonomous operation, the microcontroller and esp8266 wifi module. Sandip et al. [2]
system also allows SMS command from the user. An LCD is developed a light intensity monitoring system and data
used to display the real-time sensors value onsite. A user will
storing in a cloud database. Akshay et al. [3] developed
be able to control multiple greenhouses from a remote
distance. The system has an optional data logger system for
precision Greenhouse management in the LabVIEW
statistical data and further scientific research. This system will platform. PIC microcontroller sends the sensor data to pc
play a vital role in greenhouse farming. through ZigBee technology. Nilimamayee et al. [4] present
data acquisition, data logging, and supervisory control of
Keywords— Greenhouse, Microcontroller, Sensor, GSM, different greenhouse application parameters. Wei et al. [5]
Android app, Embedded system. used android mobile as a greenhouse monitoring terminal.
Sheetal et al. [6] approach a greenhouse using cloud
I. INTRODUCTION computing to cover an extensive area sensor network.
Greenhouse farming technology ensures plant growth and
good quality corps. There is no alternate for greenhouse These researches are focused on monitoring greenhouse
farming in unfavorable weather conditions. A smart parameters using different techniques such as ZigBee, IoT
weather-controlling system can make the greenhouse without having an effective controlling method. This
farming system more profitable. research approaches a simple operational process at minimal
maintenance cost. Zigbee works in the short-range only, and
The objective of this paper is to provide a simplified cloud computing needs internet access all time. GSM
greenhouse monitoring and controlling system. The technology is comparatively less expensive, and the GSM
microcontroller measures the weather conditions through network covers all the countryside. Moreover, the system
sensors. The sensor's value displays an onsite display and is has a user-friendly smartphone app for setting the threshold
stored in a micro sd card. If any sensor value is out of range, value and onboard data logging facility.
the microcontroller takes the necessary actions until the III. THE SYSTEM OF THE ARCHITECTURE
sensor value is in the critical value range. The system also
notifies the user about these changes and activities by The proposed approach has significantly simplified a
sending SMS. The user also can inquire about sensor value microcontroller-based embedded system. The main purpose
and execute any operation by sending an SMS command to of the proposed system is to maintain a standard weather
the system. A smartphone app is a bridge between the user condition. Arduino Pro Mini is used here as a

978-1-6654-1917-8/20/$31.00 ©2020 IEEE


418

Authorized licensed use limited to: Universiti Kebangsaan Malaysia. Downloaded on May 18,2021 at 03:52:59 UTC from IEEE Xplore. Restrictions apply.
microcontroller. The microcontroller executes the necessary C. Liquid Crystal Display
commands based on sensor values. Soil moisture sensor, A 16*2 Liquid Crystal Display (LCD) is connected with the
temperature, and humidity sensor DHT11, LDR, and Arduino pro mini for displaying the real-time sensor's value
Methane gas sensor MQ4 are used for monitoring the inside onsite. The critical value and the determined weather status
atmosphere of the greenhouse. The sensor's value is stored are also shown in the LCD. So, a farmer can easily
in a micro SD card. Onsite LCD is displaying the sensor understand the greenhouse weather condition from LCD.
value, threshold value, and status of the proposed system.
GSM and Bluetooth are integrated with the system for the D. GSM Modem
communication purpose. For controlling the greenhouse GSM modem is similar to a mobile phone. It accepts a SIM
weather parameters, few electromechanical components are card and operates over a subscription to a mobile operator.
used. The microcontroller triggers these components A sim 900 GSM modem is connected with the Arduino pro
through relay switches. Figure 1 describes the block mini. Arduino, send notification SMS to the user if any
diagram of the proposed system. sensor value is out of range or a new threshold value is set
through the android app. It allows the system to receive
SMS commands from the user. Users can enquire about the
sensor's value or pull on or off any electromechanical
components through SMS.
E. Bluetooth
An HC-05 Bluetooth is used for building communication
between the system and smartphone app. It's an effective
communication method in a short-range of free at cost. It
follows the IEEE 802.15.1 standardized protocol. HC-05 is
connected with the Arduino through serial communication.
Fig. 1. Block diagram of greenhouse monitoring and controlling system. F. Micro SD Card
A micro SD card is connected with the Arduino pro mini
A. Sensors through an adaptation board. All the sensor's values are
A light-dependent resistor (LDR) is used here to detect the stored as an excel file inside the micro sd card. This data
level of light. A massive change of resistance in LDR logging method will help a farmer assume future weather
happens for a small variance of light. It's a perfect electronic conditions and make the best statistical data strategy.
device for measuring the light level of the greenhouse at a Arduino can access all sensor values from the micro SD
low cost. The microcontroller measures the voltage drop card. However, it's an optional feature for this system. If the
across the LDR to measure the light level of the greenhouse. farmer wanted to make statistical analysis for developing a
Multiple soil moisture sensors are used for measuring the prediction algorithm, these data would be an asset. If the
soil moisture at a different location. The two large exposed farmer doesn't insert a card inside the adaptation board, no
pads function as probes for the sensor, together acting as a hamper will occur in monitoring and controlling operation.
variable resistor. The more water in the soil means, the The system can run entirely with and without a micro SD
better the conductivity between the places and lower card.
resistance. DHT11 is a widely used temperature and G. Servo
humidity sensor. It operates at 5V. It measures 0-50°C The moisture level of soil varies in different places. All
temperature readings with ±2°C accuracy and 20-80% places don't need a water supply at a time. A servo motor is
humidity readings with 5% accuracy[7]. Analog type gas used for shifting the water supply pipe at a different
sensor MQ4 is used for detecting the methane presence. The location. Angular rotation of servo allows making a
concentration sensing range of this sensor is 300 ppm to precision move of water supply.
10,000 ppm [8].
H. Relay
B. Arduino Pro Mini
Relay is a switch that can be controlled by a low power
Arduino Pro mini is a tiny development board of the signal. Magnate latching relay needs a single pulse on the
Atmega328p microcontroller. For this project, Arduino Pro coil to move their conductors in one direction and a
Mini is a better option than any other Arduino development redirected pulse to drive the conductors back. Repeated
board. It has sufficient i/o pins and low power consumption. pulse signals had no impact on triggering. Arduino pro mini
All sensors value is fed into Arduino pro mini. The Arduino pulls on or off different electromechanical components by
takes necessary actions based upon the sensor's value. If the using a relay. Arduino can't handle high voltage or current.
sensor's value is in the acceptable range, it just keeps So the digital switch is required, and relay switches are
monitoring the weather condition unless it gets any SMS preferable for on or off an electromechanical device.
command from the user. Arduino takes the necessary Semiconductor switching devices are faster than a relay, but
decision for logical operations by comparing the sensor's they can produce heat if the load is heavy. But the relay
value and critical value set by the user. LCD, GSM, switched doesn't make any heat. A flyback diode is used to
Bluetooth is also connected with the Arduino pro mini. avoid relay noise.

419

Authorized licensed use limited to: Universiti Kebangsaan Malaysia. Downloaded on May 18,2021 at 03:52:59 UTC from IEEE Xplore. Restrictions apply.
I. Controlling System K. Smartphone App
For acquiring standard weather conditions inside the A customized android app is developed for setting the
greenhouse, an electric fan, heating coil, water pump, and critical value for different parameters. Different crops
bulbs are used. A fan can be used for cooling purposes or demand other weather conditions. The farmer can set the
exhaust the air of the greenhouse when the volume of customized parameter value through this app. The app sends
Methane gas is high. Electric Induction coils are used for data to the system through Bluetooth communication. The
raising the temperature. The water pump ensures the water smartphone needs to connect the smartphone with the
supply inside the greenhouse. All of the electromechanical password-protected system Bluetooth module.
components turn on or off on specific conditions. However,
these components are electrically controlled, so it has a
smooth and precise operation. Controlling operation
maintains the standard weather condition inside the
greenhouse. Controlling operation is activated when the
weather condition is not balanced unless it sleeps on standby
mode.

Fig. 4. Smartphone App for setting threshold value.

IV. SIMULATION RESULT ANALYSIS


Before hardware implementation, the system is simulated on
Fig. 2. Flowchart of intelligent greenhouse environment monitoring and the Proteus ISIS simulation software to check the proposed
controlling system
system's possibility. Proteus simulation software is an
advanced tool to demonstrate the embedded system idea
J. Power Supply before implementation. However, all the sensor library is
The microcontroller and all sensors need to operate at DC not available on a proteus simulation software potentiometer
5V and relay triggers by DC 12V. Electromechanical is used instead of sensors. The potentiometer provides
components are functional at direct ac supply. The 220V AC analog value to Arduino. By varying potentiometer,
power stepped down through a 12-0-12V center-tapped different logical operations are tested. For various
transformer, and again this low voltage AC passes through a controlling mechanism, Arduino triggers the relay and
full bridge rectifier and turns into 12V dc. A buck converter operate symbolic AC load.
makes 5V dc from the 12V dc. Buck converter is a dc to dc
step down converter where it reduces the output voltage and
increases the current. Required diode and fuses are used to
protect from reverse and overflow of current.

Fig. 5. System simulation on the Proteus simulation tool.


Fig. 3. Block diagram of the system power supply.
In this simulation virtual terminal indicates the SMS alert.
User input is not possible in this simulation tool, so the user-
defined value is set initially inside the program.

420

Authorized licensed use limited to: Universiti Kebangsaan Malaysia. Downloaded on May 18,2021 at 03:52:59 UTC from IEEE Xplore. Restrictions apply.
V. HARDWARE IMPLEMENTATION AND RESULT ANALYSIS  Automatic operation without human interference.
After a successful simulation procedure, the hardware  Smartphone user interface.
prototype is developed. Hardware development is different  SMS notification.
from software simulation. After lots of hardware testing, the  Onboard data logger.
final system is developed. The complete hardware setup  Manual operation besides autonomous operation.
picture is given in Figure 6, and Table 1 describes the output  SMS command.
results. The hardware setup works properly, and similar  Onsite Liquid Crystal Display (LCD).
functions, as well as simulation results. VII. CONCLUSION
This paper describes a simplified, intelligent monitoring and
controlling system for greenhouse farming. The system is
advanced with real-time tracking of essential greenhouse
parameters with sensors array and automatic operation. A
user-friendly smartphone app for setting critical value for
different parameters make this system unique. The
autonomous operation and manual control mode make the
entire process of the proposed system smooth. This
intelligent system has all the desired features for making the
operational cost lower of greenhouse farming. Users can
develop a prediction algorithm from the onboard data
logger. SMS controlling and feedback system makes the
farmer more comfortable. Hence it can operate in an
automatic process unless the system is interrupted by SMS
command. So the user doesn't need to involve in continuous
monitoring of operations. If any hazard is happening, the
user will get a notifying SMS. It's a complete solution for a
farmer to cultivate crops in the greenhouse method. It needs
Fig. 6. Implemented intelligent greenhouse monitoring and controlling some future development for extensive integration. A web
system. monitoring system can be developed if this smart system is
implemented on a large scale. But for the individual farming
purpose, this system is good enough.
TABLE I. OUTPUT RESULT'S FROM HARDWARE

Description Result REFERENCES


Temperature value on [1] M. Nargotra and M. J. Khurjekar, "Greenhouse based on IoT and AI
for societal benefit," 2020 International Conference on Emerging
LCD. Smart Computing and Informatics (ESCI), Pune, India, 2020, pp. 109-
112, doi: 10.1109/ESCI48226.2020.9167637.
[2] S. B. Khot and M. S. Gaikwad, "Development of cloud-based Light
intensity monitoring system for green house using Raspberry Pi,"
Moisture Sensor 2 2016 International Conference on Computing Communication
Value on LCD. Control and automation (ICCUBEA), Pune, 2016, pp. 1-4, doi:
10.1109/ICCUBEA.2016.7860128.
[3] C. Akshay et al., "Wireless sensing and control for precision Green
SMS alert on the house management," 2012 Sixth International Conference on Sensing
mobile phone. Technology (ICST), Kolkata, 2012, pp. 52-56, doi:
10.1109/ICSensT.2012.6461735.
[4] N. Samal and U. C. Pati, "Multi-channel data acquisition and data
logging for Green House application," 2014 IEEE Students'
Conference on Electrical, Electronics and Computer Science, Bhopal,
2014, pp. 1-5, doi: 10.1109/SCEECS.2014.6804507.
[5] Wei Ai and Cifa Chen, "Green house environment monitor
technology implementation based on android mobile platform," 2011
2nd International Conference on Artificial Intelligence, Management
Science and Electronic Commerce (AIMSEC), Dengleng, 2011, pp.
5584-5587, doi: 10.1109/AIMSEC.2011.6010025.
[6] S. Vatari, A. Bakshi and T. Thakur, "Green house by using IOT and
cloud computing," 2016 IEEE International Conference on Recent
Trends in Electronics, Information & Communication Technology
(RTEICT), Bangalore, 2016, pp. 246-250, doi:
10.1109/RTEICT.2016.7807821.
[7] "DHT11, DHT22 and AM2302 Sensors", Adafruit Learning System,
2020. [Online]. Available: https://learn.adafruit.com/dht. [Accessed:
VI. ADVANTAGES OF THIS PROPOSED SYSTEM 15- Nov- 2020].
[8] "Pololu - Methane Gas Sensor MQ-4", Pololu.com, 2020. [Online].
The key features of the proposed greenhouse monitoring and Available: https://www.pololu.com/product/1633. [Accessed: 15-
controlling system are: Nov- 2020].
 Real-time weather monitoring system.

421

Authorized licensed use limited to: Universiti Kebangsaan Malaysia. Downloaded on May 18,2021 at 03:52:59 UTC from IEEE Xplore. Restrictions apply.

You might also like