Implementation of Aquaponics Within IoT Framework
Implementation of Aquaponics Within IoT Framework
Muhammad Fasih Uddin Butt, Maryam Hammad, Moaz Ahsen and Muneeb Ansir
COMSATS University Islamabad, Department of Electrical and Computer Engineering, Islamabad, Pakistan
Abstract- With the surge in population and the sharing data with the users. It is a network of
demand of the food increasing, urban farming is
physical devices communicating with one another
rising steadily over the years in terms of popularity.
Farmers and scientists have been trying to find ways via a cloud. IoT not only has technical, but also
to develop healthier and sustainable choices for social and economic significance and has numerous
farming and have come up with various solutions applications [1]. One such application, that we will
including aquaponics. Aquaponics is changing the focus on, is the agriculture sector.
way that the food is grown. This paper deals with
integrating Aquaponics with Internet of Things (IoT). There has been a paradigm shift in the 21 st century
This will ensure that the yield can be maximized,
human error minimized and preventative actions can towards urban farming due to the growing
be taken for unpredictable hazards. With IoT, the population [5]. However, traditional farming and
system can be easily monitored and controlled from agriculture methods are not enough. Not only are
any remote location. In addition, the mobile the natural resources declining rapidly, but the
application allows the user to either control the
system by one self or to let it run automatically, as availability of arable land is diminishing as well.
the system is both autonomous and semi-autonomous. Moreover, it is estimated that by 2050, food
The sensors placed in the Aquaponics system resources need to be increased by 75%, to meet the
continuously monitor the system and the data is demands of the population [4]. To cater to all these
stored on Google Spreadsheets where it can be used
demands, integrating aquaponics with IoT seems
for further analysis.
like a feasible solution.
Keywords- IoT, Aquaponics, Sustainable
Farming. Aquaponics is a technique of incorporating both
aquaculture and hydroponics. ‘Aqua’ is a Latin
I. Introduction word, meaning water and comes from aquaculture,
which is the farming of fishes. ‘Ponics’ comes from
Internet of Things (IoT) is an emerging concept that
hydroponics, which is the farming of plants, in
has several applications in many sectors. From
water, using chemicals as nutrients. In this system,
smart cities to smart cars, and from smart healthcare
water from the aquarium is fed to the plants where
systems to smart homes, IoT promises to transform
the by-products are broken down by nitrification
the way we live [1]. IoT can be defined as
bacteria into nitrates and nitrites and used up as
objects/devices communicating among themselves
nutrients. The water is then filtered and circulated
without any need of intervention [8]. It refers to the
back to the fish aquarium [2].
billions of physical devices around the world that
are now connected to the internet [3], collecting and IoT based aquaponics system assists in continuously
monitoring and analyzing the whole system. IoT has
embedded sensors, connected with physical objects
which are controlled by a central processing unit
[7]. Not only that, the sensors can also communicate
with the user, thus introducing a two way
communication between the user and devices,
through a network [6]. This system takes corrective
actions to maintain a balance between both species.
The data collected from the sensors is then stored
and further used for analysis. This data helps in
maximizing the yield, reduces the risk and
eliminates the need of manual intervention.
Numerous sensors placed in the system take values Figure 2: Block Diagram
from their respective environments and send them
to the microcontroller, NodeMCU. The IV. Hardware
microcontroller then sends these values to the
mobile application, via the cloud. These values are 1) ESP8266
also stored on a database, which, in this case, is ESP8266 is a microchip that consists of a Wifi
Google Spreadsheet. In case of any abnormality, the module, Analog-to-Digital Converter and
mobile application alerts the user to take an multiple analog and digital pins. The speed of
appropriate action, by turning on or off the actuator processing is 160 MHz and compared to some
devices. The actuator devices i.e. water pump, light other microcontrollers, such as Raspberry pi, it
bed, heater and oxygen supplier, are connected by a is cost efficient. The pin configuration of
relay to the microcontroller. When an action is ESP8266 is shown in figure 3.
taken, the microcontroller triggers the relay to either
Figure 4: Top View of Relay Module
Courtesy:https://www.lankatronics.com/module
s-sensors/relay-modules/5v-four-4-channel-
Figure 3: Pin configuration of ESP8266 relay-module.html
Courtesy:https://iotbytes.wordpress.com/nodem
cu-pinout/
3) Sensors
Various sensors have been integrated in the
2) Relay Module
system. These are the following:
Four modules in our project are driven from AC
power source. It is needed in our project to
a. pH Meter (Sku: Sen0161)
switch these modules after a specific time
period. Therefore, a four-channel relay module, Shown in figure 5 is an analogue pH meter. It
as shown in figure 4, is used which can drive has a BNC connector and PH2.0 sensor
and switch four AC power sources at the same interface. You can simply associate the pH
time. Following are the key features of this sensor with BNC connector, and connect the
module: PH2.0 interface to any analogue input on the
Four channel Relay with opto couplers controller to read the pH value.
which provide isolation to the logic circuit
Operating voltage: 5V
Can switch up to 250 V AC & 30 V DC.
Maximum Current Rating: 10 A at the
output.
SRD 05V DC operated relay modules are used
with two opto couplers. The usage of opto
coupler is to ensure that no damage is done to
Figure 5: pH sensor
the digital logic circuitry due to reverse current
in the circuit. Courtesy:https://www.robotshop.com/ca/en/gravity-
analog-ph-meter-kit.html
Figure 7: DHT22
Courtesy: https://core-electronics.com.au/dht22-
temperature-and-relative-humidity-sensor-
module.html
V. Software
VI. Results
DO 5-8 mg/litre
Ammonia 0 mg/litre
Nitrite 0 mg/litre
Figure 12: Plot of humidity in Google Spreadsheet Nitrate 5-150 mg/litre
KH 60-144 mg/litre