Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 14

K L UNIVERSITY

Design Tool Workshop-2


A Project Based Lab Report

On

Automated Water Planting Using Arduino

SUBMITTED BY:-

ID NO: 2100040140- Maruthi kumar


210004014
5-R.Uday Satya Kiran
210004015
6-M.Chandra shekar
210004017
4-CH.Sai chaturya
KL
UNIVERSITY
Green fields, Vaddeswaram – 522 502
Guntur Dt., AP, India.
ABSTRACT:-Automatic watering system to ensure that these plants
are still alive when we come back here the next time. It monitors the
soil humidity of each potted plant, if the humidity is too low, the
pump automatically starts to spray, in this way, does not need to
water those plants every day.

S.NO TITLE

1 Introduction

2 Apparatus

3 Schematic Diagram

4 procedure

5 precautionsd

6 code
INTRODUCTION
The program in the Arduino reads the moisture value
from the sensor every 20 seconds. If the value
reaches the threshold value, the program does the
following three things:

1. It moves the servo motor horn, along with the


water pipe fixed on it, toward potted plant,
whose moisture level is less than the
predetermined/ threshold level.
2. It starts the motor pump to supply water to the
plant for a fixed period of time and then stops
the water pump .
3. It brings back the servo motor horn to its initial
position.
 In this project, two sensors can be connected to
analogue pins a of the Arduino board. Each sensor
has four pins (Vcc, Gnd, Ao and Do) available for
interfacing with the Arduino board. Here, digital
output pin (Do) is not used. The water pump and
servo motor are controlled by Arduino connected to
digital pins respectively. That is, the servo motor
signal control pin is connected to pin of the Arduino
board.
Apparatus:-
1.Arduino Uno and Usb Connector

2.Soil Moisture Sensor

3.DC Water Pump


4.Relay

5.Connecting Cable
6.9v Battery

Schematic Circuit Diagram:-


Procedure:-

*Connect Soil Moisture Sensor and Sensor Module.


Connect the pins as follows
1. A0 to A0
2. Gnd to Gnd
3. Vcc to 3.3v to the Arduino
*Connect the battery wire -ve terminal and and dc motor
negative terminal together.
Then now attach the +ve wire of battery and motor into
the relay.
Connect the wires as following
1. Gnd wire to Gnd
2. Vcc to 5v
3. In wire to -3 to the Arduino
After Connecting this all put the dc motor in the Water.
Take a dry soil.
Fix the Soil Moisture sensor in it.
Now connect the wire to the Arduino.
Precautions:-
1.The wires should be properly connected as given.
2.If we miss proper connections it will not work.
Code:-

int sensor_pin= A0;


int output_value;

void setup(){
pinMode(3, OUTPUT);
Serial.begin(9600);
Serial.println("Reading from the
Moisture sensor…");
delay(2000);
}

void loop()
{
output_value= analogRead (sensor_pin);
output_value= map (output_value,-550,-
10,0,-100);
Serial.print("Moisture:");
Serial.print(output_value);
Serial.println("%");

if (output_value<0)
{
delay(1000);
digitalWrite(3, HIGH);
}

else
{
delay(1000);
digitalWrite (3,LOW);
}

delay (1000);
}

THANK YOU...!

You might also like