You are on page 1of 23

A project report on

Automatic Plant Watering System Using


Arduino UNO

by

Chaudhary Hassan Sayem BME193077


Muzammil Ayyaz BME193046
Muhammad Umer BME193083
Zohaib Zammurad BME193089

A Project Report submitted to the


DEPARTMENT OF MECHANICAL ENGINEERING
in partial fulfillment of the requirements for the Course of
PRECISION ENGINEERING AND METROLOGY LAB
of the degree of
BACHELOR OF SCIENCE MECHANICAL ENGINEERING

Faculty of Engineering
Capital University of Science and Technology
Islamabad
July 2021
i
Copyright © 2021 by CUST Student

All rights reserved. Reproduction in whole or in part in any form requires the prior written
permission of Chaudhary Hassan Sayem Khalid BME-193077, Muhammad Umer
BME193083, Muzammil Ayyaz BME193046 and Zohaib Zamurrad BME193089 or designated
representative.

ii
DECLARATION

It is declared that this is an original piece of my own work, except where otherwise
acknowledged in text and references. This work has not been submitted in any form for
another degree or diploma at any university or other institution for tertiary education
and shall not be submitted by me in future for obtaining any degree from this or any
other University or Institution.

CHAUDHARY HASSAN SAYEM KHALID BME193077

MUZAMMIL AYAZ BME193046

MUHAMMAD UMER BME193083

ZOHAIB ZAMMURAD BME193089

July 2021

iii
CERTIFICATE OF APPROVAL

It is certified that the project titled “Automatic Plant Watering System Using
Arduino UNO” carried out by Chaudhary Hassan Sayem Khalid - BME193077,
Muzammil Ayyaz BME193046, Muhammad Umer BME193083 and Zohaib
Zammurad BME193089 under the supervision of Zain ul Abdeen, Capital University
of Science and Technology, Islamabad, is fully adequate, in scope and in quality, as a
semester project for the course of Precision Engineering and Metrology Lab.

Supervisor:
Zain ul Abdeen
Lab Engineer
Department of Mechanical Engineering
Faculty of Engineering
Capital University of Science and Technology, Islamabad

iv
ABSTRACT

Food self-sufficiency is a government program that has been being actively promoted so that
Indonesia to reach food independence. Indonesia is a maritime and agricultural country with
rainy and dry seasons. In the rainy season, food plants usually do not need to be watered,
while in the dry season, the plants must be watered regularly according to the soil moisture
conditions. Farmers usually do not grow food plants in the dry season for fear that it will not
grow well. The farmer’s dependence on the season causes the production to decline and
becomes an obstacle in the success of the food self-sufficiency program. An information and
communication technology-based agricultural device is needed to overcome the problem.
The research aimed to design a programmed microcontroller chip to control watering
automatically based on soil moisture detected using a domestic soil moisture sensor. This
device detected whether the soil was dry or not. The farmers did not need to do watering
manually. In addition to helping farmers, the device could also be installed on plantations,
seedbed nurseries, urban parks, hotels, offices, and homes.

5
TABLE OF CONTENTS

DECLARATION .............................................................................................................. iii

CERTIFICATE OF APPROVAL ...................................................................................... iv

ABSTRACT ....................................................................................................................... 5

CHAPTER 1 ...................................................................................................................... 7

INTRODUCTON ........................................................................................................... 7

1.1 Aims of our project ............................................................................................... 7

1.2 Proposed Idea ....................................................................................................... 8

1.3 Applications of this Project ................................................................................... 9

1.4 Detecting Moisture Content .................................................................................. 9

1.5 Automatic Watering to The Plant and User Notifications ...................................... 9

1.6 Report Organization ............................................................................................ 10

CHAPTER 2 .................................................................................................................... 12

LITERATURE REVIEW ............................................................................................. 12

2.1 Related Components ........................................................................................... 12

CHAPTER 3 .................................................................................................................... 17

METHODOLOGY ....................................................................................................... 17

CHAPTER 4 .................................................................................................................... 21

RESULTS AND DISCUSSION ................................................................................... 21

CHAPTER 5 .................................................................................................................... 22

CONCLUSION ............................................................................................................ 22

CHAPTER 06 .................................................................................................................. 23

REFERENCES ............................................................................................................. 23

6
CHAPTER 1

INTRODUCTON

Some farmers in Indonesia still depend on the rainy season for farming. It makes the
production of agricultural products unstable. In the dry season, the prices of agricultural
products increase significantly due to their small production, while in the rainy season, the
production is abundant that decreases the price. It causes loss and disappointment for many
farmers. During the dry season, farmers who want to do farming must spend extra energy
and costs to do watering manually.

Hence, an automatic watering plant that works both in the rainy season and the dry season
is necessary to design. The device used a microcontroller chip programmed based on the
detection of agricultural soil moisture sensors. When the soil was dry, the device
automatically watered the plants. Conversely, if the soil was wet, the device would not water
them. It led to healthy plants because the need for water had been fulfilled all the time.

Several researchers have conducted research in agriculture such as Qingmei, Zhili, and
Mingzhu who designed communication nodes in tractor control networks based on the
ISO11783 Protocol. The tractor was equipped with a GPS module that can be controlled
remotely with the sensor, a PIC type microcontroller, a water pump, and a Zigbee
communication

1.1 Aims of our project


The paper aimed to design an automatic watering system for plants. Several
references were used.

 Rosinski researched an unattended flower watering system using a soil


moisture sensor and a comparator to replace the function of the
microcontroller.

7
 Tapak and Csiba investigated the watering of IoT plants using an Ethernet,
a light sensor, a soil moisture sensor, a temperature sensor, a humidity
sensor, a water level sensor, and a solenoid valve.
 Selmani et. Al. investigated the multithreading design for irrigation systems
using solar power. The system consisted of a temperature sensor, a soil
moisture sensor, a water level sensor, a Raspberry PI, and a solar panel water
pump

1.2 Proposed Idea


There are two functional components in this paper. They are moisture sensor and
motor / pump. Arduino board is programmed using the Arduino IDE software. Humidity
sensor is used to detect the soil moisture content. Motor / pump is used to supply water to
plants. Soil moisture and temperature predetermined range is set particularly for specific
plants requirement, and according to that system is being operated. Microcontroller
(ATmega328), is the brain of the system. Both humidity and temperature sensor is
connected to the controller's input pin. Pump and servo motor coupled to the output pin. In
case of soil_moisture value is less than threshold system automatically triggers water pump
on till sensor meets threshold and then sets off automatically. The overall activity is
reported to the user using mobile application.

8
1.3 Applications of this Project
This project having many applications in our daily life like:

1. Agriculture sector.
2. Parks and gardens.
3. Industrial sector.
4. High class buildings.
5. Greenhouses or nurseries.
6. Homes irrigation.
7. ETC.

1.4 Detecting Moisture Content


This will be achieved by soil moisture sensor. They are connected to an Arduino
microcontroller board. Arduino board is programmed using the IDE software. Humidity
sensor senses to indicate that the plant needs watering humidity levels in the soil, and sends
the signal to the Arduino.

1.5 Automatic Watering to The Plant and User Notifications


On receiving logic high signal, Arduino will notify the user by turning on the first buzzer. In
this work we have used an Arduino microcontroller in combination with relay control switch
to control the motor and overall functioning. Motor may be driven by external 9V battery
with interfacing to microcontroller.

9
1.6 Report Organization
• In this report, the reader will firstly come across chapter 1. This chapter provides
the most basic information and an overall review about the whole report. How it
will be analyzed and the industrial uses that are associated with it.

• Moving forward, there comes Chapter 2. This part of the entire context focuses
more on the terminologies and different components used in our project. This
chapter will help the readers to have better concepts of the expressions that were
acknowledged from this course. Here the engineering terms will be converted into
simpler words and conveyed to all types of readers.

• Further into the report, Chapter 3 will be having the most essential content. It will
include the methodology of our project.

10
• Chapter 4 is also as significant as chapter 3. Chapter 4 will be presenting all the
circuit diagrams and project pictures.

• Moving on, there will come chapter 5. It is the concluding chapter. It will be a short
summary and the results obtained.

• Lastly, the reader will come to chapter 6, References.

11
CHAPTER 2

LITERATURE REVIEW

This chapter provides a better understanding of all the components that will be used
through-out the report. It is to give reader a better judgement on the analysis of the wing.

2.1 Related Components


Main we use the Arduino UNO, Soil Moisture sensor 1N4007 High Voltage / High Current
Rated Diode, NPN Transistor, Resistor, DC Water Pump, Water Tubes, Male / Female
Jumpers and Breadboard and 12V / 1.5A adapter that is used:

Arduino UNO
The Arduino Uno is an open-source microcontroller board based on the Microchip
ATmega328P microcontroller and developed by Arduino.cc. The board is equipped with sets
of digital and analog input/output pins that may be interfaced to various expansion boards
and other circuits.

Arduino is an open-source electronics platform based on easy-to-use hardware and


software. Arduino boards are able to read inputs - light on a sensor, a finger on a button, or a
Twitter message - and turn it into an output - activating a motor, turning on an LED,
publishing something online.

12
Soil Moisture Sensor

Soil moisture sensors measure the volumetric water content in soil. Since the
direct gravimetric measurement of free soil moisture requires removing, drying, and
weighing of a sample, soil moisture sensors measure the volumetric water content indirectly
by using some other property of the soil, such as electrical resistance, dielectric constant, or
interaction with neutrons, as a proxy for the moisture content.

The relation between the measured property and soil moisture must be calibrated and may
vary depending on environmental factors such as soil type, temperature, or electric
conductivity. Reflected microwave radiation is affected by the soil moisture and is used
for remote sensing in hydrology and agriculture. Portable probe instruments can be used by
farmers or gardeners.

Diode 1N4007
1N4007 is a PN junction rectifier diode. These types of diodes allow only the flow of
electrical current in one direction only. So, it can be used for the conversion of AC power to
DC. 1N 4007 is electrically compatible with other rectifier diodes and can be used instead
of any of the diode belonging to 1N400X series.

13
Resistor
A resistor is a passive two-terminal electrical component that implements electrical
resistance as a circuit element. In electronic circuits, resistors are used to reduce current flow,
adjust signal levels, to divide voltages, bias active elements, and terminate transmission lines,
among other uses.

DC Water Pump
DC powered pumps use direct current from motor, battery, or solar power to move fluid in a
variety of ways. Motorized pumps typically operate on 6, 12, 24, or 32 volts of DC power.
Solar-powered DC pumps use photovoltaic (PV) panels with solar cells that produce direct
current when exposed to sunlight.

14
Water Tubes

Water tubes is used to supply water from water bath to plants.

Male / Female Jumpers Wires

Jumper wires typically come in three versions: male-to-male, male-to-female and female-to-
female. The difference between each is in the end point of the wire. Male ends have a pin
protruding and can plug into things, while female ends do not and are used to plug things
into.

DC Adapter 12V/1.5A

An AC adapter, AC/DC adapter, or AC/DC converter is a type of external power supply,


often enclosed in a case similar to an AC plug. Other common names include plug pack,
plug-in adapter, adapter block, domestic mains adapter, line power adapter, wall wart,
power brick, wall charger, and power adapter.

15
Breadboard

16
CHAPTER 3

METHODOLOGY

1. Build System Relay


We create connections to the solid state relays, Arduino, and small fountain pump
system, Arduino allows the pump open or close automatically. A striped cut through
the inner tube of the pump segment insulated wire, only half. Install the new cut wire,
there are two output relays at both ends. We put on the bare electrical tape. Finally,
the ground relay is connected to the Arduino ground and relay input to the Arduino
digital pins.

2. Build up System Reservoir


Submerged pump supplies a desired amount of water needed by the plant in order to
work properly. Automate this process, we use a float valve, which you need to open
whenever needed, close the connection when the water level rises and water hoses.
Drilling is high enough to ensure that the float valve chamber, sufficient to
accommodate the width of the tank float.

3. Build System tubing and connect


Connection to plastic lob feed pumps and drilling small holes through which water
droplets. All of the trunk circuit

4. Code
Automated plant watering system is programmed using Arduino IDE software.
Arduino microcontroller checks soil moisture level, if low, triggering a water pump
on until sensor reaches threshold. After this, the system will re-check the soil
moisture between periodic intervals to see if you need more water. If the water in the
initial inspection, no water or comment, the system waits 24 hours, and repeat the
process.

17
int WATERPUMP = 13; //motor pump connected to pin 13
int sensor = 8; //sensor digital pin vonnected to pin 8
int val; //This variable stores the value received from Soil
moisture sensor.

void setup() {

pinMode(13,OUTPUT); //Set pin 13 as OUTPUT pin


pinMode(8,INPUT); //Set pin 8 as input pin, to receive data from
Soil moisture sensor.
//Initialize serial and wait for port to open:
Serial.begin(9600); // opens serial port, sets data rate to 9600
bps
while (! Serial);// wait for serial port to connect. Needed for
native USB
Serial.println("Speed 0 to 255");
}

void loop()
{
if (Serial.available()) //loop to operate motor
{
int speed = Serial.parseInt(); // to read the number entered as
text in the Serial Monitor
if (speed >= 0 && speed <= 255)
{
analogWrite(WATERPUMP, speed);// tuns on the motor at
specified speed
}
}
val = digitalRead(8); //Read data from soil moisture sensor
if(val == LOW)
{
digitalWrite(13,LOW); //if soil moisture sensor provides LOW
value send LOW value to motor pump and motor pump goes off

18
}
else
{
digitalWrite(13,HIGH); //if soil moisture sensor provides HIGH
value send HIGH value to motor pump and motor pump get on
}
delay(400); //Wait for few second and then continue the loop.
}

19
20
CHAPTER 4

RESULTS AND DISCUSSION

From this work, we can control the moisture content of the soil of cultivated land. According
to soil moisture, water pumping motor turned on or off via the relay automatically. This
saves water, while the water level can be obtained in a preferred aspect of the plant, thereby
increasing productivity of crops. Servo motor from vegetation water uniformly dispersed in
water, in order to ensure the maximum utilization of absorption through. Thus, there is
minimal waste of water. The system also allows the delivery to the plant when needed based
on the type of plant, soil moisture, and observed temperature. The proposed work minimizes
the efforts of major agricultural regions. Many aspects of the system can be customized and
used software to fine-tune the requirements of the plant. The result is a scalable, supporting
technology. Using this sensor, we can see that the soil is wet or dry. If it is dry, the motor
will automatically start pumping water.

21
CHAPTER 5

CONCLUSION

Automatic system using a microcontroller, moisture sensor and other electronic tools were
being developed. It was observed that the proposed methodology controls the moisture
content of the soil of cultivated land. The motor automatically starts pumping water if the
soil is dry and need water and stops when the moisture content of the soil is maintained as
required.

22
CHAPTER 06

REFERENCES

1. https://create.arduino.cc/projecthub/neetithakur/automatic-plant-watering-system-
using-arduino-uno-8764ba
2. file:///C:/Users/hp/Downloads/DesignofAutomaticWateringSystemBasedonARDUI
NO2020.pdf
3. http://ijarcsse.com/Before_August_2017/docs/papers/Volume_4/10_October2014/V
4I10-0228.pdf
4. https://www.ijert.org/research/automated-plant-watering-system-
IJERTCONV5IS18012.pdf

23

You might also like