Professional Documents
Culture Documents
By
Name ID_NO
1. Asnakech Tekle RU1133/10
2. Kalkidan Mahtabe RU1743/10
3. Rediat Berhanu RU2093/10
4. Tedy Wandiye RU2271/10
5. Tesfaye Baynesagn RU2286/10
JIMMA, ETHIOPIA
June, 2022
Agriculture Monitoring System Based on MIT Robot
Declaration
This is to certify that the thesis entitled “AGRICULTURE MONITORING SYSTEM BASED
ON MIT ROBOT” has been carried out by the below group members, which submitted to
Faculty of Electrical and Computer Engineering, Jimma Institute of Technology(JIT),
Jimma University, in partial fulfillment for the award of the Degree of Bachelor of
Science(B.Sc.) in Electrical and Computer Engineering, specialized in Industrial Control
Engineering. We declared that all sources of materials contained in the thesis are fully
acknowledged.
This final thesis has been approved for examination with our approval:
Acknowledgement
First of all, we would like to thank God for the guidance and strength given to us to complete
this thesis. And we would like to thanks, To Jimma Institute of Technology, Faculty of
Electrical and Computer Engineering, for giving us the opportunity to carry out this final thesis.
Next, we would like to express the deepest gratitude to our advisor Mr. Zewde T. for the
guidance, inspiration and constructive suggestions that helpful us in the preparation of this final
thesis. Also, we the students of this group endeavored more to finalize this final project.
Therefore, we thank one another for our mutual supports. Finally, we extend our gratefulness to
one and all who are directly or indirectly involved in the successful completion of this project
work.
Abstract
About 80% of Ethiopia’s economy is dependent on agriculture, but only 33% of the land is
suitable for agricultural purposes. Agriculture is the art and science of cultivating plants and the
soil to grow crops as well as raise livestock. Especially in Ethiopia, where agriculture has been
done by hand since ancient times. As the world is trending into new technologies and
implementations, it is a necessary goal to trend with agriculture also, but, in our country, there is
still nothing. Therefore, the objective of this work provides a model of an agriculture monitoring
system based on the MIT App Inventor robot, which helps the farmers carry out plant monitoring
on a farm robotically without the use of much manual inspection. Android applications are
capable of providing information about agriculture fields. This system has been proposed as an
MIT Robot Monitor agriculture system. The MIT Robot based Agriculture Monitoring System
makes use of wireless sensor networks that collect data from different sensors deployed at
various nodes and send it through the wireless protocol. This robotic monitor of agriculture uses
the MIT App Inventor system is powered by Arduino. It consists of a temperature sensor, soil
moisture sensor, soil PH sensor, soil EC sensor, CO2 sensor, LDR sensor, humidity sensor, DC
motor, DC motor driver, and Arduino Uno. The agricultural field monitoring system based on
the MIT robot starts and checks the humidity, temperature, CO2 concentration, and EC value of
the conditions to monitor the health of plants and for their flourishing growth. It also checks the
moisture level in the soil, the PH of the soil, and light intensity to monitor the nutrition of the soil
for plant growth and plant production. It sends information to the Android phone about the levels
of all the sensors and displays the conditions of the plant. If the level of water in the soil goes
down, it automatically starts the water pump. If the temperature goes above the set level, the fan
starts, and if light intensity is in abnormal conditions, the light source starts. If the level of
humidity goes down, it automatically starts the water spray. All these are displayed on the LCD
display module and are also seen in the Android application which has been developed by MIT
App Inventor.
Keywords: MIT App, temperature sensor, soil moisture sensor, soil PH sensor, soil EC sensor,
CO2 sensor, LDR sensor, humidity sensor, DC motor, DC motor driver, Bluetooth, Android
phone, and Arduino Uno.
Table of Contents
Declaration ....................................................................................................................................... i
Acknowledgement .......................................................................................................................... ii
Abstract .......................................................................................................................................... iii
List of Figure.................................................................................................................................. vi
List of Tables ................................................................................................................................ vii
Acronyms and Symbols ............................................................................................................... viii
CHAPTER ONE ............................................................................................................................. 1
INTRODUCTION .......................................................................................................................... 1
1.1 Background of Study ............................................................................................................ 1
References ..................................................................................................................................... 42
APPENDIX ................................................................................................................................... 44
List of Figure
Figure 1. 1 System methodology .................................................................................................... 9
Figure 3. 1 Block diagram of the overall system. ......................................................................... 12
Figure 3. 2 Flowchart of overall system. ...................................................................................... 16
Figure 3. 3 Arduino hardware. ...................................................................................................... 18
Figure 3. 4 DH11 sensor. .............................................................................................................. 20
Figure 3. 5 Soil moisture sensor. .................................................................................................. 20
Figure 3. 6 Light dependent resistor. ............................................................................................ 21
Figure 3. 7 Soil PH sensor ............................................................................................................ 21
Figure 3. 8 Soil EC sensor ............................................................................................................ 22
Figure 3. 9 MQ-135 sensor ........................................................................................................... 23
Figure 3. 10 Bluetooth module ..................................................................................................... 24
Figure 3. 11 LCD .......................................................................................................................... 25
Figure 3. 12 L293D motor driver .................................................................................................. 26
Figure 3. 13 Design of robot ......................................................................................................... 28
Figure 3. 14 Product structure diagram of Proteus software ....................................................... 30
Figure 4. 1 Overall Proteus simulation of the systems. ................................................................ 31
Figure 4. 2 The result of temperature, humidity, 𝐶𝑂2 and moisture at not normal conditions. .. 32
Figure 4. 3 System monitoring circuits. ........................................................................................ 35
Figure 4. 4 The result of plant at good conditions. ....................................................................... 35
Figure 4. 5 The result of moisture, 𝐶𝑂2 and PH at not normal .................................................... 36
Figure 4. 6 Android applications developed in MIT App ............................................................. 37
Figure 4. 7 The result of overall system with hardware. .............................................................. 38
List of Tables
Table 1. 1 Recommendation value of most plants .......................................................................... 2
Table 3. 1 Specifications of Arduino UNO. ................................................................................. 19
Table 3. 2 Specifications of LCD ................................................................................................. 24
Table 4. 1 DH11 sensor reading and state of fan and heater ........................................................ 33
Table 4. 2 Humidity sensor reading and state of sprinkler ......................................................... 33
Table 4. 3 LRD sensor reading and the state of lamp ................................................................... 33
Table 4. 4 Soil moisture sensor reading and state of watering pump ........................................... 34
NH3 Ammonia.
S Sulfur.
𝐶6 𝐻6 Benzene.
CHAPTER ONE
INTRODUCTION
1.1 Background of Study
In Ethiopia, agriculture started during the Neolithic Revolution era, ten thousand years ago [1]. It
began with the domestication of crops and animals. So, agriculture is the largest economic sector
of Ethiopians, and it plays a great role in the economy of every nation. According to the statistics
of the Gross Domestic Product (GDP) of the country, accounting for half of the gross domestic
product, 83% of exports, and 80% of total employment, it contributes about 50% of the country’s
gross domestic product (GDP) and more than 80% of its exports [2, 3]. And agriculture is still
the backbone of the country, which represents about 33.88% of its GDP in 2020. In Ethiopia,
even today, traditionally, farming is done by humans with the help of bullock carts, oxen, and
tractors. However, these farms are facing various constraints that hamper crop productivity.
Major constraints include poor soil fertility; severe land degradation; high dependence on
rainfall; low availability and poor quality of seeds and fertilizers; economic constraints like low
income and lack of financial support; as well as insufficient policies and guidelines [4]. In the
modern era, the main problems in the agricultural field include lack of labor availability, lack of
knowledge regarding soil testing, increase in labor wages, wastage of seeds, and more wastage of
water [5]. To overcome these problems, automation technology was used in agriculture. To solve
these various problems, it developed and implemented a robot for an agriculture monitoring
system based on MIT and which is controlled by our Android phones. The main aim of this
thesis, which means robot for agriculture monitoring system, is to apply robotic technology and
to overcome problems that are related to plant farming in the agricultural field, which includes
monitoring climate (environmental) change, soil fertility, and soil health to plant growth and
crop production. These systems apply different automation solutions to diverse agricultural tasks
(e.g., irrigating, environmental monitoring, supply of water and nutrients, soil health, and
detection and treatment of plants). Agriculture monitoring robots can be used in a variety of field
operations and can be applied to facilitate capturing and processing high quantities of data. It can
provide the capabilities needed to operate not only at some plant levels, but also at the field level
[6]. A robot is a mechanical device which is capable of performing various tasks with minimal
human intervention. It means the robot works based on commands given by the controller. This
system uses various sensors for sensing various parameters, such as temperature, soil moisture,
soil PH, soil EC, concentration, LDR or light intensity, and humidity. After sensing the above
parameters, it also recommended the farmer if the plant is not in good condition, and
recommended which plant is suitable in the field of that farmer. A motor driver circuit has been
used to drive the DC motor, which in turn controls the wheel motion. The control of the
agriculture monitoring robots mainly requires some means of communication. One of the
communication means is wireless Bluetooth connectivity. HC-06 is the Bluetooth module that is
used to control the agriculture monitoring robots using smartphones developed by MIT Apps. In
this system, the Arduino Uno (ATMEGA 328) microcontroller is the heart of the system, and it
receives data from sensors and generates an actuating signal to control the devices, namely, the
fan, heater, spray, and motor pump. Generally, agriculture monitoring robots mainly test the soil
health using soil moisture, soil PH, and soil EC and environmental or climate change using
DH11 and LDR sensors to monitor growth, health, and crop production of plants. These are also
significant environmental factors for the quality and better productivity of plant.
Plant Farming Systems
Ethiopia’s agriculture heavily relies on oxen plow and rain-fed by neglecting other alternative
technologies since the time of the Neolithic era [7]. As a result, traditional farming systems and
low production and productivity accurately reflect Ethiopian agriculture today. According to [7]
reference, the practice of mechanized agriculture in Ethiopia is estimated at 0.7% for land
preparation while it is less than 0.8% for crop thresher machines. These still indicated very little
transformation in the utilization of technologies in production. This system can develop
agriculture monitoring systems for plant farming. Plant farming is often a suitable field for
applying the technologies of automation, computing, and robotics [8]. The environmental
monitoring of plant farming is interesting not only to control the growth of crops but also to
determine the traceability of products [9]. Monitoring of these models determined the input,
output, and disturbance variables described below.
The input variables allow the system to actuate the plant farming and change the environmental
conditions. The most relevant variables considered by the system are the ventilation, heating,
pumping (shading), and spraying (fogging) systems. The ventilation or fan systems control the
exchange of air between the plant, and the environment, which has an impact on the air
temperature, humidity, and composition. The heating systems are used to compensate for the
heat losses and keep the temperatures in an adequate range. The fogging systems spray water
into the air to increase the humidity and reduce the temperature. The shading systems control the
irradiation of the covers to avoid the overheating of the plant. Finally, the injection systems are
used to promote the photosynthesis of the plants. The MIT App application that we created
controls or toggles the above input variables on the Android phone.
The output variables define the state of the farm, and can be measured by the appropriate sensors
and are the target of climate control. The most relevant variables collected by the literature are
air temperature, air humidity, light intensity, and concentration. In addition, there are some
variables that have an influence on the state of the fields, and should be measured and controlled.
These are temperature, humidity, CO2 concentration, and light intensity. The above output
variable result is displayed on the Android phone application was developed on MIT Apps.
Another task in plant farming where robots can help is detecting soil health and fertility using
soil PH, soil EC, and soil moisture sensors for plant crop inspection and treatment to improve
precision and rationalize products. For more information, refer to "Info Center" on Android
phones.
these challenges is not an easy task. But one of the best methods to solve this problem is by
changing our traditional ways of farming into technological ways of farming, such as robot
agriculture monitoring systems and make knowledgeable farmers about the modern farming
system. So, as mentioned in the plant farming, we developed a robot that detecting
environmental or climate change, soil fertility, and soil health using different sensors and
displays the results on the android phones. This system not only detects sensor parameters, it also
treats plants from unbalanced nutrients (such as macronutrients and micronutrients) and
recommends farmers.
1.3 Objective
1.3.1 General Objective
The general objective of this thesis is to design and implement agriculture monitoring system
based on MIT App Inventor robot.
1.3.2 Specific Objective
To build a battery-operated smart agricultural robot for multipurpose farm activities.
To create Android apps in MIT App Inventor.
To develop a system that interfaces plant monitoring systems with Android phones
To made control pump, heater, and fan relay in android phones.
1.4 Scope of Study
This final thesis concerns agriculture monitoring systems based on MIT App Inventor robots,
which are mainly used for cultivating remotely based areas to save human labor, increase
production capacity, and protect the health and growth cycle of plants. The scope of the system is
to develop a multipurpose wirelessly controlled mobile agriculture monitoring robot. This
agricultural robot is designed and implemented using a wide range of technologies for the
advancement of agricultural automation. This can also make agriculture a zero-loss business. We
designed and implemented a robot that monitors plant health and production through sensors
such as soil PH, soil EC, soil moisture (to soil health), temperature, humidity, carbon dioxide,
and light intensity (climatically changes).
1.7 Methodology
The methodology which we used are as follows.
Developing simulation
and write code
Developing prototype
CHAPTER TWO
LITERATURE REVIEW
The development of our agricultural robots and the ideas used to implement them started with
the study of various papers. In recent years, many efforts have been made to change the
traditional agriculture system. Any smart agriculture system should operate in a systematic way
to maximize quality and productivity. This agriculture monitoring system based on the MIT App
Inventor robot thesis has been discussed among the previous research projects. Some selected
research papers have been chosen from the previous project as a literature review to identify the
gap and the difference between this thesis.
Chandana R, Nisha M, and Pavithra B [11] Design and implement a multipurpose agricultural
robot for automatic ploughing, seeding and plant health monitoring. The main aim of agricultural
robot is applying robotic technology in agricultural field. The agriculture robot efficiently
performs ploughing, seeding and mud leveling automatically. In this system Arduino Uno
microcontroller being the heart of the robotic system manipulates entire the action of the robotic
system. In addition to this the temperature and humidity sensors also been used. The sensory
data are displayed on LCD display.
Designing IoT based agricultural robot for monitoring plant health and environment [12] they
project is concerned with the farmer and the cultivation land. It uses a camera and all the sensors
which are used to monitor the agricultural land. It can be used from the plantation period to
harvesting period. It detects plant type and calculates the area of the field itself. The robot
monitors the field, checks the soil health based on moisture level and PH level. The plant health
is judged based on its leaf color.
Pushkar I Madrap and Amey Deshmukh [13] developed PIC microcontroller-based greenhouse
monitoring and control system. This paper represents the need of greenhouse and how much
effective they can be in good yield of crops and they automated greenhouse monitoring ignores
the need of human operators to take care of the plants. They monitor the greenhouse parameters
like humidity, temperature, soil moisture and light using PIC18F452 microcontroller and based
on the values stored, the above system will compare the stored values with threshold values set
for particular plant and control the actions of cooler, heater, and water pump. For displaying the
stored values, they have used GLCD.
Designing IoT Based Plant Monitoring System [14] in this paper, humidity sensor, moisture
sensor, temperature sensors placed in root zone of plant and gateway unit (ESP8266) handles
the sensor information and transmit data to android application. This application is developed
for measure approximate values of temperature sensor, humidity sensor and moisture sensor that
was programmed into a microcontroller to control water quantity.
K.V.Fale and P.Bhure amit et al [15] designed an autonomous intelligent farming robot which
indicates plant health by observing the colour of their leaves and the height of the plant. It also
notes environmental conditions such as temperature, moisture and humidity. The health of the
plant is displayed on the LCD. The robot has also watered mechanism, it will water the plants
according to their needs by observing soil moisture and humidity. The main feature of the robot
is the ability to sense the health of the plants using image processing. Webcam will take the
photo inside the field and analyses the growth according to the height, colour of the leaves, etc.
Vision based row guidance method is used to guide the robot platform driven along crops
planted in row.
As has been literate, research papers all contain some limitations. Firstly, they used a Wi-Fi
module to transmit the data to the web server. But in real life (especially in our country), Wi-Fi is
difficult to find in an agricultural field. To overcome this, it has been using a Bluetooth module
to send data to a web server database. Second, the systems based on the Internet of Things (IOT)
and Artificial Intelligence (AI) are designed solely as immobile devices. But in our system, we
have designed a robot car to overcome both problems, which are unmovable and device-feature.
Finally, most of the systems that have been designed in the last decade and even in recent times
are designed only for detector purposes. But our system not only detects sensor parameters, it
also treats plants at normal environmental conditions, unbalanced nutrients (such as
macronutrients and micronutrients), and recommends the farmer. Generally, the agriculture
monitoring based on the MIT App Inventor robot system gives so many advantages to our farms
because the farms can easily be controlled by an Android phone.
CHAPTER THREE
METHODOLOGY AND SYSTEM BLOCK DIAGRAM
3.1 System Block Diagram
The development of the agricultural monitoring robot consists of the integration of hardware
techniques and software tools. The basic block diagram of the agriculture monitoring system
based on the MIT App Inventor is as show in figure 3.1.
Power supply
Temperature A
sensor 4*5V
L293D gear
R
Motor driver motor
Humidity
sensor D
U
Moisture LCD 20x4
sensor I display
N
Soil PH
sensor O Fan
Soil EC
Pump
sensor U
N Heater
CO2 sensor
O
LDR sensor Spray
chip computer that contains the processor (the CPU), non-volatile memory for the program
(ROM or Flash), volatile memory for data input and output (RAM), a clock, and an I/O control
unit. The microcontroller is powered by a 12V DC battery and consists of a voltage regulator,
which is used to regulate the voltage input for the controller. The L293D motor driver is used to
control the bidirectional motion and receive signals from the microcontroller to drive the robots.
The DC motors control wheel motion and other activities of the robot.
In an agricultural monitoring system, there are seven different sensors, such as temperature,
humidity, soil moisture, light intensity, soil PH, soil EC, and CO2 sensor. These sensors act as
inputs to microcontroller systems. The input feed provided to the micro controller is in the form
of analog data, and the input data is converted by the controller into digital forms. The converted
data is shown on the Android phones via Bluetooth, which we developed using MIT App
Inventor, and we can control the robot in every direction via this Android application. There are
output parameters in this system such as fans, heaters, sprays, and water pumps that respond
automatically if the data from the input sensors is outside of the appropriate ranges. In the
system, input parameters such as temperature, humidity, LDR, and carbon dioxide sensors are
monitored climatically. If the results of these sensors are outside of a range that is not good for
the plant, the output parameters such as fans, heaters, spray, and water pumps give response
automatically and treat the conditions. The fan treats the temperature automatically if the result is
above the normal range, and the heater also treats the temperature if it is below the normal range.
The spray is used to spray water when the humidity is below the normal range, and the pump is
used to pump water when the moisture is dry. Another task of the system is monitoring soil
fertility and soil health by using parameters such as soil moisture, soil PH, and soil EC. The soil
PH sensor detects whether the soil is acidic, neutral, or alkaline in order to determine the type of
soil. The electrical conductivity (EC) sensor measures the number of salts in soil (salinity of soil)
in order to know the crop yields, suitability, nutrient availability, and activity of soil
microorganisms. The system will show the results of soil PH and EC values on Android phones
and LCD displays. If the soil PH and soil EC are out of the normal range, the serial monitor will
display the method of treatment, and it recommends more reference. The requirement for water
is identified by the soil moisture sensor. Soil moisture sensors will measure the moisture quantity
in the soil and the conditions of the soil, i.e., whether it is wet or dry. These sensors' output
signals are displayed on Android phones and LCD screens.
Start
K
Is phone No
connected with
Bluetooth?
Yes
Robot Movement
A
No No No
Ist PH Ist EC Ist Tmp
detect? detect? detect?
Is PH,EC &
Temp value
optimum?
No No
Yes
Plant is not at
Good Condition
Plant is at Good
Condition
Check solution in
android phone
K Info Center
No No No No
Is Moi Is Hu Is LDR Is CO2
Detect? Detect Detect Detect?
? ?
A
Yes Yes Yes Yes
Moisture Result Humidity Result LDR Result 𝐶𝑂2 Result
Is Moi, Hum,
CO2, LDR at No
optimum
value?
Plant is at good
Condition Check solution in
android phone
Info Center
K
The above figure 3.2 shows the overall flow chart that describes how the system program works.
The system program work starts, connecting the Bluetooth module in the Arduino Uno. Then
connect your Android phone with Bluetooth. After connecting your Android phone with
Bluetooth, check the connection between your Android phone and Bluetooth. If the connection is
correct, we can control the movement of the robot based on the button and motor shield. If the
connection between an Android phone and Bluetooth is not correct, it will be back to fix the
connection. Once the robot movement starts, we control the robot with an Android phone to go
to the desired areas and locations. After the robot is at the desired field area, the system will
receive analog data measured by the sensors, then apply all functions of the system's measured
environmental parameters. The functions are called one by one, and each one must be accessed
without any predefined consolation. After the parameter functions are applied, the value of
parameters and the state of the loads are displayed on Android phones if with hardware, and on
LCD if with software of Proteus. Digital data from the ADC of the microcontroller is changed
into or detected temperature, soil PH, soil EC, moisture, humidity, light intensity, and CO2
concentration values and compared with the maximum preset values and displayed on Android
phones. If the resulted value of temperature, soil PH, soil EC, moisture, humidity, light intensity,
and CO2 concentration values exceeds the preset value, and if the resulted value of temperature,
soil PH, soil EC, moisture, humidity, light intensity, and CO2 concentration values is less than
the preset maximum value, it announces and displays the values, and also solves the problems
with recommendations.
AREF (Stands for Analog Reference): Most of the time you can leave this pin alone. It is
sometimes used to set an external reference voltage (between 0 and 5 Volts) as the upper limit
for the analog input pins.
Table 3. 1 Specifications of Arduino UNO.
MCU ATmega328P
Architecture AVR
Operating Voltage 5V
Input Voltage 6V – 20V (limit), 7V – 12V (recommended)
Clock Speed 16 MHz
Flash Memory 32 KB (2 KB of this used by bootloader)
SRAM 2 KB
EEPROM 1 KB
Digital IO Pins 24 (of which 6 can produce PWM)
Analog Input Pins 6
material are eager to enter the conduction band. But, the photons in the incident light must have
energy superior to the bandgap of the material to make the electrons jump from one band to
another band (valance to conduction).
(NH3 ), sulfur (S), Benzene (𝐶6 𝐻6 ), 𝐶𝑂2, smoke and other harmful gases. Similar to other MQ
series gas sensor, this sensor also has a digital and analog output pin. When the level of these
gases goes beyond a threshold limit in the air the digital pin goes high. This threshold value can
be set by using the on-board potentiometer. The analog output pin, outputs an analog voltage
which can be used to approximate the level of these gases in the atmosphere. The MQ-135 gas
sensor has an inbuilt variable resistor (sense resistor) that changes its resistance value according
to the concentration of gas. If the gas concentration is high, the resistance decreases, and if the
gas concentration is low, the resistance increases. The MQ135 air quality sensor module operates
at 5V and consumes around 150mA. It requires some pre-heating before it could actually give
accurate results. The MQ135 is one of the popular gas sensors from the MQ series of sensors that
are commonly used in air quality control equipment. It operates from 2.5V to 5.0V and can
provide both digital and analog output. The pinouts and important components on an MQ135
module are marked below.
module or received from the module though this interface. So, we can connect the module to any
microcontroller or directly to PC which has UART interface [21].
1 VSS Ground
2 VDD Power supply for logic
3 VO Contrast Adjustment
4 RS Data/ Instruction select signal
5 R/W Read/Write select signal
6 E Enable signal
7~14 DB0~DB7 Data bus line
15 A Power supply for B/L +
16 K Power supply for B/L -
Figure 3. 11 LCD
3.3.11 DC Motor
A direct current (DC) motor is a type of electrical machine that converts electrical energy into
mechanical energy. DC motors takes electrical power through direct current, and convert this
energy into mechanical rotation. It uses magnetic fields that occur from the electrical current
generated, which powers the movement of a rotor fixed within the output shaft. The output
torque and speed depend upon both the electrical input and the design of the rotor.
3.3. 12 Relay
A relay is an electrical switch that opens and closes under the control of another electrical circuit.
In the original form, the switch is operated by an electromagnet to open or close one or many
sets of contacts. Because a relay is able to control an output circuit of higher power than the
input circuit, it can be considered to be, in a broad sense, a form of an electrical amplifier.
3.3. 13 Pump
A water pump is a machine used to increase the pressure of water in order to move it from one
point to another. Modern water pumps are used throughout the world to supply water for
municipal, agriculture, and residential uses. Water pumps are easily available at a lower cost and
are used to provide high irrigation efficiency by supplying the proper amount of water to every
area of the field to gain speed in cultivation. These pumps come in a wide range of varieties
where framers can easily buy based on the capacity of the pump as per their needs.
3.3.14 Fans
A fan is a powered machine used to create a flow of air. It consists of a rotating arrangement of
vanes or blades, generally made of wood, plastic, or metal, which act on the air. The rotating
assembly of blades and hub is known as an impeller, rotor, or runner. A fan can be any revolving
vane or vanes used for producing currents of air. It produces air flows with high volume and low
pressure (although higher than ambient pressure), as opposed to compressors, which produce
high pressures at a comparatively low volume. A fan helps replicate the same air movement that
happens naturally outdoors.
3.3.16 Robots
A robot is a type of automated machine that can execute specific tasks with little or no human
intervention and with speed and precision. Robot is reprogrammable, multifunctional
manipulator designed to move materials, tools through variable programmable for the
performance of a variety of tasks.
Specification:
Size of robot car: 22cmx10cm.
Wheels diameter: 6cm.
Thickness of board: 3cm.
Length of board: 22cm.
Width of board: 10cm.
Features:
Mechanical structure is simple, so it is easy to assemble.
This robot car has 4pcs deceleration DC motor, it can corner well.
Can use with android phone to realize function of wireless remote control.
a block-based programming language built on Google Blockly. The MIT App Inventor user
interface includes two main editors: the design editor and the blocks editor. The design editor, or
designer, is a drag and drop interface to lay out the elements of the application’s user interface
(UI). The Blocks editor is an environment in which app inventors can visually lay out the logic
of their apps using color-coded blocks that snap together like puzzle pieces to describe the
program. To aid in development and testing, app inventor provides a mobile app called the app
inventor companion (or just the companion) that developers can use to test and adjust the
behavior of their apps in real time. A key feature of MIT App Inventor is its live development
environment for mobile applications. App Inventor provides this by means of a companion app
installed on the user’s mobile device. The App Inventor web interface sends code to the
companion app, which interprets the code and displays the app in real time to the developer. This
way, the user can change the app’s interface and behavior in real time [23].
3.4.3 Proteus
Proteus is a complete development platform from product concept to design completion. Its
advantages are intelligent principal layout, hybrid circuit simulation and accurate analysis,
single-chip software debugging, single-chip and peripheral circuit co-simulation, PCB automatic
layout and wiring.
CHAPTER FOUR
RESULT AND DISCUSSION
This chapter deals the result and discussion of design simulation and implementation of a
prototype result of an agriculture monitoring system based on MIT robots. The overall protues
design result is as follow.
Figure 4. 2 The result of temperature, humidity, 𝐶𝑂2 and moisture at not normal conditions.
Table 4.1 below shows how the output of the DH11 temperatures sensor vary with field plant
temperature variation and state of the fan and heater, as a result of this variation. As the table
shows the fan is automatically turned on when the temperature of the field is raised above the
optimum range of temperature and when the temperature falls below the optimum range the
heater is turned on automatically. At the optimum temperature range both the fan and heater are
turned off.
Table 4. 1 DH11 sensor reading and state of fan and heater
Temperature level displayed on LCD Heater state Fan state
< 15°𝐶 ON OFF
15°𝐶-30°𝐶 OFF OFF
> 30°𝐶 OFF ON
Pulse with different frequencies is used to represent the output of relative humidity sensor
(DH11) and it calculated from the frequency by the Arduino control program and displayed in
the LCD. As in table 4.2 given below the sprays is turned on when the humidity reading is less
than the minimum limit for the most plant, which is 40% humidity in the air, otherwise the
sprinkler is turned off.
Table 4.3 given below shows the variation of measured light in the field and the state of the lamp
at each level of illumination. As can see from the given table below lamp is off if the light
illumination is rise above the specified maximum value for the most of plant which is above 92%
bright, otherwise the lamp is on.
As shown in the above figure 4.2 𝐶𝑂2, moisture, temperature and humidity are not at normal
range, due to lower range of temperature the relay of heater is activated. And the system is
recommended the appropriate range of parameters for most plants, also displayed current states
of PH and EC.
The soil moisture output is displayed on the LCD after being changed to moisture by the Arduino
control program. As we have seen from table 4.4 shown below, when the moisture reading
becomes less than the minimum limit for most plants, the plant watering pump is turned on,
which is less than 40% of soil moisture. Otherwise, the plant watering pump is turned off.
As shown the above figure 4.2 the microcontroller is detected the input data of 𝐶𝑂2 sensor, the
sensor output was displayed in the LCD after the voltage of the sensor was changed into CO2
concentrations, which means if the result of the 𝐶𝑂2 is above 1000ppm, serial monitor is
displayed as carbon dioxide, temperature, moisture and humidity are out of the normal ranges.
As a result, the relay of heater and moisture is activated but humidity is over the normal range.
For this task the microcontroller decided whether the value was in optimum conditions or not,
and displayed the result in the serial monitor and LCD.
developing machine-to-machine communication and phase two focused on integrating with the
Android phone developed by MIT APP. Phase 1 of the prototype development was setting up the
board and sensors for data abstraction of environmental parameters. Development for this phase
was done by programming the Arduino Uno board using Arduino software version 1.8.7. The
testing of phase one was done in the field by farmers to test the efficiency of the machine-to-
machine communication between the sensors and the Arduino board.
The system has been tending to control the environmental factors by monitored them through
sensors and turned on and off the respective loads according to the analysis carried out by the
controller. This system displayed the results of monitored sensors and appropriated conditions
for plants based on the plant farming recommendations (which are written or coded in the
Arduino IDE using C++ programming) through Android phones. As shown above sensor
parameter are measured and displayed on the android phones (serial monitor and LCD in Proteus
software), then the overall conditions of the systems are measured. As a result, if the soil health
(soil PH, soil EC, and soil moisture) is in appropriated conditions, the plants are in good health
conditions and the results of the parameters are displayed on android phones. But if the soil
health (soil PH, soil EC, and soil moisture) is not at the appropriated range, the results are
displayed on the android phones, and the system notified the farmer to solve the problems. Then
treatment is initiated through the android by adding organic or biological fertilizer, chemical
fertilizer, and acidic or alkaline elements. To lower the soil PH, we could add sulfur, ammonium-
based fertilizers, or aluminum sulfate, and to raise the soil PH, we could add nitrogen fertilizer,
calcium carbonate, wood ash, or so on. It could treat the unappropriated range of soil EC and soil
moisture using pumped water if the results are under appropriated. Finally, the system is tested
using simulation by Proteus 8.6 professional software tool, which then developed its prototype.
CHAPTER FIVE
CONCLUSION AND RECOMMENDATION
5.1 Conclusion
The present study provides a reliable robotically agriculture monitoring system, which has wide
application in farming fields, and it has been discussed in agriculture plant farming. The main
purpose of this system has been to identify the optimum environmental conditions in a farming
field, and it is the best technology to monitor plant farming. To accomplish the set objectives, the
systems made use of both primary and secondary data. Primary data was used to identify the
optimum environmental parameters such as temperature, humidity, light intensity, soil PH, soil
EC, soil moisture, and carbon dioxide in a plant farming system that faced challenges in the
field. Secondary data was used to compare various plant farming management architectures
deployed and to determine the most appropriate technology to be deployed in plant farming at
any farming fields that had agriculture monitoring systems based on MIT robots because it has
been important for the farmers to record the environmental conditions accurately and recommend
important farming information to ensure growth, health, and higher yield production of plants.
Furthermore, the system automatically monitored and controlled the environmental parameters
of a plant farm in order to provide the best climate, soil health, and soil fertility for plant growth
in the farming fields. The results of the parameters are displayed on the application of the
android phones. If it is not within the range, the controller turns on/off the loads as per the
requirements. For instance, if the temperature is above 30, the system will automatically turn ON
the fans to normalize the level of temperature. If the temperature is below 15, the system will
automatically turn ON the heater. If moisture is below the appropriated level, the relay of the
motor pump is turned ON, then water is pumping and if the light intensity is below the
appropriated level, the relay of the lighting is turned ON. It also turns ON the relay of the motor
pump to spray water if the result of humidity is below the appropriated range. Systems also
control the robot using human voice, turn on/off the relay loads using android phones, treat the
plant's farming problems, recommend farmers through voice assistance, and store some
information on the applications. So, the obtained simulation and prototype results show that the
system's performance is quite consistent and accurate, and the system has overcome many
farming problems successfully.
5.2 Recommendation
This proposed system as much as monitored the plant farming and simplified the work of the
farmers in the field, but it does not fully cover the problems of the farmers. As a result, it can be
expanded in many ways. In the near future, we will develop robots with fully automated tasks
such as mowing, monitoring of pests and disease, harvesting and tilling through collaborations
between ANN and MATLABs based on IoT communication systems.
References
or%20is%20a%20web%20application%20integrated,and%20iOS%2C%20which%2C%20
as%20of%208%20July%202019. [Accessed 26 November 2019].
[23] M. T. a. F. H. Evan W. Patton, "MIT App Inventor: Objectives, Design,," in MIT App
Inventor, Cambridge, MA, USA, Computational Thinking Education, 2019, pp. 1-36.
[24] "Wikipedia," Definitions.net, [Online]. Available:
https://www.definitions.net/definition/arduino+ide.
[25] X. L. R. L. B. S. Chengcheng Fan, "Application of proteus in Experimental Teaching and
Research of Medical Electronic Circuit," Advances in Social Science, Education and
Humanities Research, vol. 215, pp. 512-513, 2018.
APPENDIX
#include <SoftwareSerial.h>
#include "AFMotor.h"
#include "dht.h"
void loop(){
//if some date is sent, reads it and saves in state
if(BT.available() > 0){
state = BT.read();
Serial.println(state);
if(state > 10){
Speed = state;}
}
motor1.setSpeed(Speed); // set the motor speed to 0-255
motor2.setSpeed(Speed);
motor3.setSpeed(Speed);
motor4.setSpeed(Speed);
if(state == 1){
forward();
}
else if(state == 2){
backward();
}
else if(state == 3){
turnLeft();
}
else if(state == 4){
turnRight();
}
else if(state == 5){
Stop();
}
else if(state==6){
forward();
//state=5;
Serial.println("Forward");
}
else if(state==7){
backward();
//state=5;
Serial.println("Backward");
}
else if(state==8){
turnLeft();
//state=5;
Serial.println("Turn to Left");
}
else if(state==9){
turnRight();
//state=5;
Serial.println("Turn to Right");
}
else if(state==10){
Stop();
Serial.println("Stop");
}
else if((state==11) && (Temp>30)){
digitalWrite(RelayTemp1, HIGH);
}
else if((state==12) && (Temp<=30)){
digitalWrite(RelayTemp1, LOW);
}
else if((state==13) && (Temp<15)){
digitalWrite(RelayTemp2, HIGH);
}
else if((state==14) && (Temp>=15)){
digitalWrite(RelayTemp2, LOW);
}
else if((state==15) && (Humi<40)){
digitalWrite(RelayHumi, HIGH);
}
else if((state==16) && (Humi>=40)){
digitalWrite(RelayHumi, LOW);
}
BT.print(";");
BT.print(Humi);
BT.println(";");
BT.print(moisture);
BT.println(";");
BT.print(co2ppm);
BT.println(";");
BT.print(ldrV);
BT.println(";");
BT.print(ph_actual);
BT.println(";");
}
delay(1000);
}
void forward(){
motor1.run(FORWARD); // turn it on going forward
motor2.run(FORWARD);
motor3.run(FORWARD);
motor4.run(FORWARD);
}
void backward(){
motor1.run(BACKWARD); // the other way
motor2.run(BACKWARD);
motor3.run(BACKWARD);
motor4.run(BACKWARD);
}
void turnRight(){
motor1.run(FORWARD); // the other right
motor2.run(FORWARD);
motor3.run(BACKWARD);
motor4.run(BACKWARD);
}
void turnLeft(){
motor1.run(BACKWARD); // turn it on going left
motor2.run(BACKWARD);
motor3.run(FORWARD);
motor4.run(FORWARD);
}
void Stop(){
motor1.run(RELEASE); // stopped
motor2.run(RELEASE);
motor3.run(RELEASE);
motor4.run(RELEASE);
}