IoT-Based Hydroponic System
IoT-Based Hydroponic System
IoT-Based Hydroponic System
Abstract— For the past few years, hydroponics has become to provide a more suitable environment. The greenhouse is a
popular due to its capability to produce nutrient-rich crops with house built of glass or plastic used mainly by the plants inside
minimum resources. The project concentrates on developing a from excessive heat or cold outside as well as undesired pests
hydroponic system based on internet of things technology to [6].
provide a flexible growing environment. The paper provides a
modern system for monitoring parameters like temperature, Conversely, William Frederick Gericke firstly popularised
humidity, water temperature, TDS, pH, and light intensity via Wi- the idea of growing plants is actually possible without the soil
Fi in the Blynk platform. It promises an opportunity to grow using only a mix of water and nutrient solutions, which then
varieties of crops throughout the year without the restrictions became an interest for researchers at California university, in
imposed by climate. Many researchers have contributed to this which several experiments were performed and revealed the
field of interest by exploiting various techniques and technologies benefits and importance of the hydroponic cultivation (Espiritu
such as leaf temperature-based watering system and different and Teodoro, 2019). Unlike traditional agriculture, hydroponic
hardware like NodeMCU. The core elements of the proposed cultivation saves a tremendous amount of space, where the roots
model are the Arduino board, ESP12F Wi-Fi module, DHT22 are dipped in the nutrient solution and don't need a large area to
sensor, DS18B20 sensor, TDS sensor, pH sensor, LDR, LED light, spread. Not only that, hydroponic farms can be implemented
and an ultrasonic atomiser. Tests have been conducted to appraise vertically, maximising the benefit and reducing space. Similarly,
the performance and production consistency. The findings show
hydroponics consumes 65-70% less water than soil-based
that the Greek basil grown in the system achieved the best growth
cultivation. Apart from that, it allows better control, especially
rate in which the plants' height was 26, 24, 23.6mm for the three
samples, respectively. While the leaves number was 26, 13, and 10 when bugs and diseases appear; where it helps to illuminate the
with an average height of 9.07, 9.49, and 9.96mm, respectively. traces of the disease and eliminate or control them before they
Besides, the root length was 90.6mm, 39.6mm, and 38.2mm, prevalence to the rest of the harvest, although hydroponics
respectively. Similarly, the number of leaves of Loose-leaf lettuce minimise the chances of running into these issues owing to the
of the three samples planted in the system was 16, 14, and 8 with clean and controlled medium [1].
23.99mm, 31.87mm, and 36.49mm average height, respectively, Excessive temperatures occur in many countries worldwide,
while the plant height reached 48.3, 79.8, and 80.2mm and roots
not to mention drought, desertification, water scarcity, and
length of 92.7mm, 83.7mm, and 38.2mm. Therefore, the paper's
findings have concluded that the proposed IoT-based hydroponic
chemical toxicity due to exacerbated population growth,
system performed satisfyingly. The growth rate was better than affecting the cultivation. The demand rose in recent years,
the other scenarios tested, and the system manifested consistent causing to spread awareness among people to their consumed
results. food quality. As a result of these factors, agriculture was
pressured to meet the high demand and standard quality.
Keywords— hydroponic; environment; climate; arduino Accordingly, an IoT-based hydroponic system will be
implemented to tackle the over-water consumption, water and
I. INTRODUCTION soil salinity facing conventional agriculture and soil-based
For the past few centuries, the soil was considered the key greenhouse cultivation, offering control over the growing
element for agriculture as it hosts plants and provides a good and environment. The system will aid to grow high-quality food
reliable medium for the roots. Nevertheless, traditional soil- varieties faster and healthier.
based farming became useless as the soil does not hold nutrients
and water for too long, making the roots spread out. Also, the II. RELATED WORKS
crops themselves require a lot of space, and with the rapid A paper about an IoT based hydroponic system was written
urbanisation, agricultural lands started to diminish. by (Lakshmanan, Djama, Perumal and Abdulla, 2020). The
Additionally, according to Arizona university researchers, plants system's methodology introduced in the previous paper consists
grown in the soil consume a large amount of water, which of three stages, client-side, server-side, and graphical interface.
created a real challenge for farmers. Further, traditional soil- The first stage includes setting up the components used for
based farming limits the food varieties that could be grown due implementing the system. The system's main component was the
to the climate's nature. Equally important, the emergence of NodeMcu board, which was used as a microcontroller alongside
problems in the soil is directly reflected in the plants' health and a 220V light with a relay and various sensors, such as a
growth at the time the problem is difficult to control and temperature sensor, pH sensor, ultrasonic sensor, and humidity
eradicate [1]. Thereafter, agriculture evolved to use greenhouses
sensor. All the components were connected to a circuit board an ultrasonic atomiser, LED light, DHT22 sensor, float sensor,
and supplied with 5V. DS18B20 sensor, photoresistor, TDS sensor, pH sensor, DC-DC
boost converters, a relay, NPN transistors, push-button, ON- OFF
Altogether, the system has spectacular features, for instance, switch, a fuse, capacitors, resistors, and regulators.
sending SMS notification to the user in case no internet
available, notifying the supplier as the stock running out, and
switching ON or OFF the light using the application, and
visualising real-time data in a web page and the smartphone
application. However, one of thesystem's limitations is that there
is no sensor to measure the total dissolved solids. It is an
important parameter in hydroponics formonitoring the strength
and concentration of the nutrient solution.
Furthermore, (Lakshmanan, Djama, Perumal and Abdulla,
2020) did not provide an android version of the application. The
android's market share is 71.18% compared to IOS, which only
forms 28.19% in November 2020, according to (Mobile
Operating System Market Share Worldwide, 2020). There is no
timer for the light, which might cause a series damage on the
plant growth if it was put on for too long. To illustrate, some
Fig. 1. Block diagram. (Self, 2019).
plants need 12 hours of light per day and some 18 hours; the
variation of periods between types of plants will confuse users.
Hence, it's preferable to set a timer to run the light at specific ggggggg
A. Model Fabrication
times for a particular period. Also, the light has low efficiency The enclosure of the project was designed in Autodesk
and consumes power and produces heat that might affects the Inventor software. It's a 2D and 3D CAD software that allows
plants, so it's preferable to use LED light instead. modelling, simulating, and visualising prototypes before they
built. Furthermore, it enables adding components and visualise
On the contrary, (Adidrana and Surantha, 2019) introduced
their position in the design. This software was used to design the
in their paper an IoT hydroponic nutrient control system design
structure of the project and the covers.
with remarkable features such as a nutrient circulation system
and TDS sensor. The system was designed to maintain the The project's physical appearance was 3d modelled in
quality of the nutrient solution in terms of total dissolved solids Autodesk Inventor to visualise and evaluate the idea as
(TDS), acidity (pH), water temperature, and electrical aesthetics, authenticity, and functionality are essential for the
conductivity (EC) to ensure healthy growth for the plants. The project. The project's structure consists of a reservoir, reservoir
authors used an Arduino board, HC-SR04 sensor, and ESP8266 holder with an electronics enclosure, a lid for the electronics box,
board as a communication module. a holder for net pots, and a base with slides to hold the reservoir
holder properly. In addition, it has a top section in which the light
Still, it's necessary to highlight the limitations of this
will be attached and two walls at the sides to provide support as
system. Firstly, the system's efficiency depends on the plants'
shown in Fig.2.
health, so if the plants were already defective, this method of
control would be useless. Secondly, the pump's duty cycle alters
based on the type of plant grown. Each time a new cultivar is IV. SYSTEM IMPLEMENTATION
planted, an update will be required for programming, so it's In this phase, the components were connected based upon the
better to make the system programmable by adding the schematic diagram. The pH and TDS sensors were calibrated using
controlling button either in the circuit design or in the buffer solutions. The code was written, modified in the Arduino
ThingSpeak. Lastly, the solar panel provides clean energy; yet, IDE, and uploaded to Arduino. The performance of the system
it's expensive. The panel requires maintenance periodically, not was tested and evaluated under diverse conditions. The project's
to mention the large space it takes, which must be considered enclosure was prepared and assembled. Then, the PCBwas made,
when designing the project's outer body. Also, it might limit the and all components were attached to the board and soldered.
ability to execute a modern and compact design for the system. Lastly, the electronics were arranged in the enclosure and tested
again to examine the hardware and software functionality and
assess the system's efficiency. The circuit wasconnected Initially
III. SYSTEM DESIGN AND FABRICATION in a breadboard. It consists of an Arduino mini pro, ESP12F, an
ultrasonic atomiser, LED light, DHT22 sensor, float sensor,
A. System Model
DS18B20 sensor, photoresistor, TDS sensor, pH sensor, DC-DC
This design focuses on implementing a modern and efficient boost converters, a relay, NPN transistors, push-button, ON-
hydroponic system utilising IoT features and the Blynk OFF switch, a fuse, capacitors, resistors, and regulators. The
platform to create a user-friendly interface ultrasonic atomiser was connectedto Arduino through a TIP120
transistor. It's suitable for driving high power devices, namely
B. Hardware pumps. When a HIGH signal is sentto the base, the transistor will
A list of components was selected to implement the project. act as a switch, and it will allow the current to flow to the emitter
The circuit consists of an Arduino mini pro, ESP12F, from the collector by completing the circuit. The LED light was
The project's parts were 3D printed using three 3D printers. The time response was tested under two conditions, Ideal and
The structure was split into smaller pieces to fit the printing Normal condition. The Ideal state was considered when there
plate. Further, acrylic sheets were used to make the covers and were no devices connected to the Wi-Fi except the system. In
net pots holder. The files were exported from Autodesk Inventor contrast, the Normal case was considered when there were
and sent to a CNC milling machine to cut the sheets as per the multiple devices connected to the Wi-Fi. The internet signal and
design. The reservoir was fabricated from acrylic, whereby a speed are crucial factors that massively affect the response time
heat strip was used for bending the edges and the cavity. Then, and delay. It's been noted that the average response time was 1s
the whole project was assembled, including the structure and the under the Ideal condition. Consequently, the data is being sent to
electrical circuit. Little joints were printed to be used between the Blynk server within 1s, and the user interface is updated with
each part to align the printed parts correctly. Superglue was used minimum delay. Similarly, the Blynk server connectivity
to glue the pieces together firmly. Nevertheless, bolts and nuts remained stable. Fig. 4 represents the signal strength and speed
were used to attach the side walls to the main body. Similarly, under the Ideal condition. On the contrary, the system was
the electronics components were placed on the PCB and experiencing lag in transferring and updating the data due to the
soldered. Then, they were placed on the prototype. The ON-OFF weak internet signal, where the average response time was 4.25s.
switch, along with the fuse, was utilised to safely power on or The Blynk application often disconnects from the server, causing
off the circuit. In addition, LDR and DHT22 sensors were connection instability between the system and the Blynk server.
attached to the body. Fig. 3 demonstrates the final prototype of Fig. 5 justifies the connection failure most times. The Arduino
the IoT-based hydroponic system. sends tens of data to the server multiple times within asecond. If
the internet signal were weak, it would cause a lag intransferring
the data to the server; hence the connection will be lost. However,
V. RESULTS AND DISCUSSION in the first case, the ping was 30.77ms, as shownin fig. 4, while it
The tests targeted the time response to evaluating the speed was 270.9ms in the second case. The ping describes the latency
of updating the data in the Blynk interface, the system occurred when data is being transferred from the device to the
performance, and system consistency. For the time response, server. It's recommended to have a low ping for demanding
services, whereby any values in the range of 50 to 100ms
considered very good. Thus, it's undesired to have ping values
The root growth was more explicit than the ones in the
previous experiment that were grown in the system. And that's
maybe because of the type of cultivar or seeds used. To illustrate,
during the last investigation, the basil developed one to two
strips of roots, and they were fragile and delicate. On the
contrary, the Loose-leaf lettuce grew multiple strips of evident
and stronger roots than the previous one. The results indicate
healthy and consistent growth.
VII. FUTURE WORK [5] Pennington, "How to Save Brown Tipped Plants", Pennington.com.
Available: https://www.pennington.com/.
The project provided outstanding results as per the tests [6] J. King, "The History of Greenhouses", Blog.growlink.com, 2020.
conducted. The project performed satisfyingly and was able to Available: https://blog.growlink.com/the-history-of-greenhouses.
produce crops efficiently and in a healthy manner. Nevertheless,
some improvements can be achieved to the system in future to
enhance the performance of the system and provide an excellent
user experience. Firstly, improving connectivity by adding a
two-way connection through Wi-Fi and Bluetooth allows
controlling and monitoring the system wirelessly even with the
absence of the internet. Secondly, adding more feature windows
such as an LCD to monitor the system status without referring
to the Blynk application. Thirdly, implementing a temperature
control system to cool down or heat the growing environment as
needed. Though, saving the data in the cloud and prepare weekly
reports and records of the sensors and devices could be
beneficial for users to track the system's progress and tasks.
Besides, utilising the NFT technique can be of the utmost
essential for recycling the water, therefore decreasing the water
consumption further. Having said that, using another IoT
platform might give better results, especially in terms of
updating the data in the user interface since some readings still
fluctuate in the Blynk app each time the server updates the data.
Additionally, integrating a humidity control system will
definitely enhance the system's performance and production
quality by allowing control over the environment. Moreover,
utilising wireless sensors will avoid cables misconnections as
well as wires jam. Equally important, more tests, experiments
and comparisons have to be conducted to analyse the project's
performance from different aspects and explore its limits and
capabilities.
ACKNOWLEDGEMET
The completion of this project wouldn't be possible without
the assistance and encouragement of many people whose names
might not be enumerated in this paper. I would also like to
express my deep appreciation and gratitude to my advisor, Dr
Suresh Manic, for his continuous contribution and countless
guidance. However, many thanks to all relatives and friends who
expressed their endless support in one way or another, either
physically or morally.
REFERENCES
[1] Rimolgreenhouses, "5 Reasons Hydroponic Growing is More Profitable
Than Soil Growing", Rimolgreenhouses.com, 2017. Available:
https://www.rimolgreenhouses.com/.
[2] R. Ahmed, "The Impact of TDS & pH on Quality of Drinking Water",
Medium, 2021. Available: https://medium.com/blueeast/tds-ph-and-
their-impact-on-quality-of-drinking-water-68b2a7433043.
[3] D. Martinez, "Light Wavelengths: Does Your Grow Light Have What
Your Need for Your Next Harvest?", GrowAce.com, 2020. Available:
https://growace.com/blog/light-wavelengths-does-your-grow-light-
have-what-your-need-for-your-next-harvest/.
[4] J. Dobbin, "Lag! Top 5 Reasons your Ping is so High", Hp.com, 2020.
Available: https://www.hp.com/us-en/shop/tech-takes/5-reasons-your-
ping-is-so-high.