Professional Documents
Culture Documents
ABSTRACT
i
1 CHAPTER ONE
1.1 Introduction
This chapter encompasses the background of the study, problem statement, the
purpose, objectives, Assumptions, significance, scope, and limitations of the study.
1.2 Background
Agriculture is a very crucial aspect of human beings. Africa has however been
characterized as being the cradle for agriculture. This is because most of the nations in
Africa heavily depend on agriculture to build their economy. Ironically, Africa has not
fully exploited agricultural advantage to its fullest. This is because most African nations
depend on natural rainfall for agriculture. However recently due to issues related to
climate change, rainfall patterns have become unpredictable. This has paved way for
irrigation to dominate the agricultural sector. [1]Irrigation has however been manual
since its inception. Farmers should be present physically to water their crops. This
however is not effective since it leads to wastage when the water level in the farm is still
high in case the farmer is not available, the crops tend to wilt and in adverse scenarios
dry. This research seeks to solve these problems by use of sensors and IoT to ensure
irrigation is carried out automatically and that farmers are notified via their mobile
phones of successful irrigation for documentation. With rapid changes experienced
technologically, Famers are adopting the current revolution in agriculture This is
because of one cannot opt to depend on natural rainfall for food production and
security. This due issues like global warming which has hampered weather and climate
patterns. Hence disrupting the use of natural rainfalls for agriculture. Using irrigation
however has been raised to a new level of standard thus farmers are beginning to
embrace smart irrigation. Farmers opt to use automated systems as much as possible.
This has however not been fully embraced in Africa despite agriculture being such
1
pertinent. This, therefore, necessitates the development of an improved automated
method of irrigation.
This system is an internet of things (IOT) based system that collects soil moisture,
humidity and temperature data and channel it to a control system. [2] The system uses
an algorithm to analyses the input from the sensors to determine the action to be taken
by the microcontroller. The system then sends data to the Wi-Fi module which translate
the data to the phone of the farmer once the farm has been irrigated using a module.
Data interpretation and data presentation is done by a preexisting readymade
application that is installed in the user’s phone.
The application is designed and integrated with the micro controller allowing data
transmission to and for allowing full duplex transmission of data. The application
allows wireless, unlimited range of transmission since it apply IOT capabilities.
From the study work I have developed an automatic irrigation system that
collects data from the farm environment and through the control unit carry out
irrigations when necessary. The control unit is embedded on the Arduino board.
The system send data via WIFI module to the farmer for every successful
irrigation and the farm environmental conditions.
1.5 Objectives
1.8 Assumptions
2.1 INTRODUCTION
This chapter elaborates on the case study of the project. These are general structures of
this study, the techniques used, and the former system that is already created. It
reviews some of the existing
Literature review
GSM-based System
In this system, farm parameters are relayed to the user via a sim card
the sim card is used to receive data in form of text message from the
gsm module device [9].
2.1.4 Plant Monitoring System
The system only monitors the moisture, and temperature of the plant.
[11] moisture sensor is used to detect the moisture of the soil and
temperature sensor to measure temperature of the plant surrounding
and at the light sensor for measuring light intensity. [12]
I. In the systems previously developed, they had soil moisture sensors but the
systems could not automatically carry out irrigation. And those that gave room
for some percentage of irrigation required commands from the user from the
review carried out on the existing systems, farmers did not receive notification of
the irrigation pattern hence eliminating the documentation process.
II. From the review of systems build previously, the systems served different
functions other than soil moisture sensing. This burdened the system with doing
multiple activities. This is sorted out in the new system since it’s solely dedicated
to soil moisture sensing and carrying out irrigation automatically.
III. Some systems e.g., Bluetooth are short distance transmitters
IV. Most system use one way transmission (simplex transmission)
V. The system does not provide real time data transmission
VI. Systems previously reviewed depended on manual turning on and off of water
pumps, hence these systems are prone to water wastage.
VII. The proposed system addresses these niches in the case study
3 CHAPTER THREE:
3.1 METHODOLOGY
3.1.1 INTRODUCTION
This chapter focuses on the development methodology that was used to develop a
smart IoT-based irrigation system.
3.1.2 SYSTEM DEVELOPMENT METHODOLOGY
System development is used to structure, plan and control the process of system
development. The evolutionary prototype methodology [18] provides a foundation for
the system to be built upon. It features rigid and linear development stages with
attainable goals in each stage. Requirement gathering and feasibility study are used for
evolutionary prototype methodology. Changes can easily be integrated into the original
framework without introducing errors and complications The prototype model allow
for feedback analysis enabling more and more improvements.
I. Microcontroller
II. Moisture sensor
III. Temperature sensor
IV. Water pump
V. Relay module
ESP32 modules can be easily be configured and customized due to the different
provision on setup and certificates tutorial and simple examples present.
3.8 DHT11
DHT11 is an electronic component that features both temperature and humidity
detection properties. These unique features of integration allow simultaneous mapping
of both parameters.
It uses a capacitive humidity sensor and a thermistor to measure the surrounding air,
and spits out a digital signal on the data.
3.10 Calibration
The module has a built-in potentiometer that’s used for ranging the sensitivity of the
module. the potential meter generates the op amp reference voltage.
Normally open
Normally closed
Common
Connect the 5 Volts positive supply to the common terminal, connect the normally open
to one terminal of the submersible water pump then connect the other terminal of the
pump to the negative supply of the submersible water pump.
Initialize the Wi-Fi name, authentication token and Wi-Fi password in Arduino ide and
upload.
3.14.4 Create a Blynk account
An account is used to save projects for access tin multiple devices remotely
Auth Token connects the hardware to mobile device. Every new project created will
have its own Auth Token. You’ll get Auth Token automatically on your email after
project creation
System operation
3.15.1 WIFI connectivity
Wi-Fi information (SSID and password) is sent to the device. Blynk app will request an
Auth Token from the server and then send it to the device. the Your device stores all of
these items in Flash/EEPROM memory.
Device uses the Wi-Fi credentials provided to connect to your home or office Wi-Fi
network.
The serial monitor shows the process the micro controller connects to the Wi-Fi
network.
3.16 Module’s operations
The smart irrigation system relies to the DHT11 and moisture sensor modules to
convert the physical environmental quantities into electrical signals that can be
processed by the microcontroller.
Fulfilling objective 1: To design an IOT based irrigation system that collects soil
moisture data, temperature and humidity conditions.
This project utilizes the analog output to input data into the microcontroller analog pin
0 which acts an input in default mode of the microcontroller. The pin captures a voltage
of 3.3 v from the analog pin input and converts the voltage into a series of segments
ranging from 0 to 255 segments via analog digital converter in the node mcu
microcontroller. from the Arduino IDE the analog pin is called as an input and
assigned a variable name and a memory location named sensor
The variable name called sensor is assigned values from the analog in put readings. The
analog reading is then divided by 1023 segments to digitize it the multiplied with 100 to
generate the sensor reading in percentage format. The serial print allows the sensor
value be printed in the serial monitor for display.
Blynk.virtualWrite(V2, sensor); this program allows the sensor data to be relayed to the
blynk app via Wi-Fi connectivity to the blynk application for display purpose both on
the graph and the gauges.
The DHT11 module relay the humidity and temperature properties into the node mcu
microcontroller. this is made possible by the Arduino library that has pre-defined
functions that only require function calling into the code.
Blynk.virtualWrite this program allows the sensor data to be relayed to the blynk app
via Wi-Fi connectivity to the blynk application for display purpose both on the graph
and the gauges.
The water pump is turned on by means of relay operation which is either turned on or
off at any given instance. The name relay on the above program denotes the digital
output pin of the microcontroller. The relay used is activated by active low therefore a
low turns the relay on turning the water pump on allowing irrigation process. At the 45
mark the node mcu micro controller digital writes the relay in logic low that turns the
relay on. on the other hand, at 65 mark a logic high is sent to the relay pin turning off
the relay thus deactivating the relay module thus turning off the water Pump.
Fulfilling objective 3: To develop an IOT based system that display to the farmers on
farm condition and keep record.
Dashboard
Switch
Gauge
graphs
BLOCK DIAGRAM OF SYSTEM MODEL
Mobile
device
Micro-
controller
WIFI module
Relay
Water Pump
Humidity sensor
Temperature sensor
Probe/Sensor
Moisture
sensor module
RESULTS
The soil moisture sensor collected moisture content variation in the soil then convert it
into digital data from digital pin of soil moisture sensor. The sensor module generates a
low signal when the moisture content in the soil is high and high signal when the
moisture content is low. The micro controller accepts the low input, the algorithm in the
controller outputs a low signal which activates a relay module that turn on a water
pump. The humidity sensor and the temperature sensor generate analog output, the
output variation is dependent on the environmental conditions which is input to the
micro controller. The controller sends data to wi-fi module that connects to a phone via
Wi-Fi connectivity then transmit data to and for.
The notifications are being sent to serial monitor depending on the program statement
achieved. Moisture, humidity and temperature are printed successfully in the serial
monitor. The mobile application displays data accurately with minimal delay in data
changes. The mobile application also plot graph without any difficulty showing the
rising and falling of the variables. Data storage is achieved since the graphs can be
accessed in different time intervals. Email data proves that the project not only rely data
via mobile application but also through g mail account.
5 CHAPTER FIVE
CONCLUSION
The soil moisture collected moisture content variation in the soil then convert it into
digital data from digital pin of the moisture sensor.
The micro controller input data, the algorithm in the controller output signal which
activated the relay module that turned on the water pump.
Humidity and temperature sensor generated output signal that were graphically
presented on the user interface
The controller sent data via Wi-Fi connectivity then transmit data to the mobile device
for interpretation purposes and presentation.
5.1 Observation
5.2 Limitations
The moisture sensor experienced corrosion on the probes due to the voltage difference
between the probes. Water pump flooding leading to short circuits
DHT11 had to be adjusted in relation to moisture sensor in order to give precise data
Water pump being active even before the micro controller could connect to Wi-Fi
network since there is a delay involved.
5.3 Recommendation
Solar power can be integrated to reduce power consumption and harness the free
sun energy
Develop idle mode to ensure the system is in sleep mode when farm conditions are
optimal and the system to awake when necessary.
27