Introduction: WATERING SYSTEM - INTRODUCTION

INTRODUCTION & OBJECTIVES:
 
I is a simple system, using Arduino to automate the irrigation and watering of small potted plants or crops.
This system does the control of soil moisture, doing indications via LEDs and in case of dry soil emitting a alarm beep. In case of dry soil it will activate the irrigation system pumping water for watering plants.
The system uses a LCD display to notify all actions that are taking place and a real time clock.
 
 
The Theory (from Wikipedia):
Water content or moisture content is the quantity of water contained in a material, such as soil (called soil moisture), rock, ceramics, fruit, or wood. Water content is used in a wide range of scientific and technical areas, and is expressed as a ratio, which can range from 0 (completely dry) to the value of the materials' porosity at saturation. It can be given on a volumetric or mass (gravimetric) basis.
Volumetric water content, θ, is defined mathematically as:

where  is the volume of water and  is the total volume (that is soil volume + water volume + air space).
Gravimetric water content[1] is expressed by mass (weight) as follows:

where  is the mass of water and  is the bulk mass. The bulk mass is taken as the total mass, except for geotechnical and soil science applications where oven-dried soil (, see the diagram) is conventionally used as .
To convert gravimetric water content to volumetric water, multiply the gravimetric water content by the bulk specific gravity of the material.
In soil mechanics and petroleum engineering, the term water saturation or degree of saturation,  is used, defined as

where  is the porosity and  is the volume of void or pore space. Values of Sw can range from 0 (dry) to 1 (saturated). In reality, Sw never reaches 0 or 1 - these are idealizations for engineering use.
The normalized water content, , (also called effective saturation or ) is a dimensionless value defined by van Genuchten[2] as:

where  is the volumetric water content;  is the residual water content, defined as the water content for which the gradient  becomes zero; and,  is the saturated water content, which is equivalent to porosity, .



Step 1: HARDWARE & MATERIALS

To accomplish this project, you will need:

1 x Arduino UNO MEGA Duemilanove or Teensy 2.0 +
1 x LCD display with I2C communication
1 x RTC module with I2C communication
1 x Relay Module opto-coupled to 250V/10A
2 x Modules "Driver" LM-393 general purpose
1 x Soil Moisture Sensor (Hygrometer) KDQ11
1 x Water Level Sensor (Homemade)
1 x Buzzer piezoelectric
2 x LEDs - 10mm, Green
1 x LED - 10mm, Red
1 x LED - 10mm, Yellow
4 x Resistors 150 Ohm 1/4 W
1 x Water pump for aquarium, with filter system (127 or 220V)
1 x Electric Power Cable, 127/220VAC - 10Amps
1 x Socket 127/220VAC - 10 Amps
Wires and cables for connections and communication

You can purchase the soil moisture sensor and  "Driver" on ebay.
http://www.ebay.com/itm/KDQ11-MOISTURE-SENSOR-KIT-URBAN-GARDEN-TOOL-SOIL-MOISTURE-SENSOR-SCA-1703-/221227848188?pt=LH_DefaultDomain_0&hash=item33823511fc


You can purchase the soil moisture sensor and  "Driver" on ebay.
http://www.ebay.com/itm/1-Channel-5V-Relay-Module-Shield-for-Arduino-uno-1280-2560-ARM-PIC-AVR-DSP-/271117672120?pt=LH_DefaultDomain_0&hash=item3f1fdf5eb8

Step 2: COMPONENTS

In the Pictures you have an overview of the components used.

Data from the soil moisture sensor set:
When the soil is dry, the impedance will be high and the LM-393 will show a high value on the output.
When the soil is wet, it will show a low value in the output.
The 3 LEDs range can be defined as:
- Soggy soil -  moisture between 0 and 500;
- Wet soil - moisture between 500 and 800;
- Dry soil - moisture between 800-1023;
The module has one digital output and an analog output. (in the project, should be used to analog output)

The water level sensor:
This sensor must be made (homemade) on phenolite board, with spacings of 1 mm between trails and trails with 1 mm of thickness.


Step 3: INTERCONNECTION & DIAGRAM:

Below you have:
1 - a block diagram;
2 - an interconnection diagram (in manuscript);
3 - a wiring diagram;
4 – usability principles

These diagrams are describing the main system interconnections.

You can get the original of this file by accessing the "GOOGLE driver" below:

https://docs.google.com/file/d/0B_YlEklLDDS7SllRMzUyQlhHVDg/edit?usp=sharing

https://docs.google.com/file/d/0B_YlEklLDDS7RkNMZko2ckhLcUU/edit?usp=sharing

https://docs.google.com/file/d/0B_YlEklLDDS7Ym52UE1qcGlqQVE/edit?usp=sharing

https://docs.google.com/file/d/0B_YlEklLDDS7Z3hZY3pNZ0NWZG8/edit?usp=sharing

*********************************************************************************************************************************************
*********************************************************************************************************************************************
Please, fix an error in your "interconnection diagram (in manuscript)" diagram:
The level sensor must be connected to pin A0 of Arduino and the soil moisture sensor must be connected to pin A1 of arduino.
*********************************************************************************************************************************************
*********************************************************************************************************************************************

Description of the main connections:
RTC <-> Arduino:
GND <-> GND
+5 V <-> +5 V
SDA <-> A4
SCL <-> A5

Relay <-> Arduino:
GND <-> GND
+5 V <-> +5 V
IN <-> D7

LCD <-> Arduino:
GND <-> GND
+5 V <-> +5 V
SDA <-> A4
SCL <-> A5

BUZZER <-> Arduino:
+ <-> D2
- <-> GND

LM-393 DRIVER (moisture sensor) <-> Arduino
GND <-> GND
+5 V <-> +5 V
OUT <-> A1

LM-393 DRIVER (water sensor level) <-> Arduino
GND <-> GND
+5 V <-> +5 V
OUT <-> A0

Other Components <-> Function <-> Arduino
Red LED <-> Dry soil <-> D5
Yellow LED <-> Soggy soil <-> D3
Green LED <-> Moist soil <-> D4
Green LED <-> Water Pump <-> D6


Step 4: SOFTWARE & PROGRAMMING:

You can download freely the code for this project in the "GOOGLE driver":
https://docs.google.com/file/d/0B_YlEklLDDS7T3JFX...

Or on the GitHub:

Arduino Watering System Files


Any problems, questions and suggestions, please send an email to:

arduinobymyself@gmail.com

Step 5: TESTS & ADJUSTMENTS

Below is a picture with an example of how the system works and how the tests should be performed.
Logically, as the system has an hour  pre set to operate, you can change the time via software for the time you will do the tests, and after you can adjust the operational "time".

Step 6: VIDEOS & PHOTOS:

Questions and suggestions send to: arduinobymyself@gmail.com


Part 1:

http://youtu.be/_jcDxYK33ew

Part 3:

http://youtu.be/Czvxi1r21Zc



Comments

author
imeggy made it! (author)2014-07-22

My first Arduino project, after much messing about I got it right, even added more code to operate a water valve to open when the water tank becomes low.

photo 2.JPGphoto 1.JPGphoto 3.JPGphoto 4.JPG
author
AlexH311 made it! (author)AlexH3112017-04-16

Sir, your project was awesome. I hope you can send me the code to my email alexlimhanjet@gmail.com ,i would like to have a try . Thank you very much!

author
Mhmmadfaisal made it! (author)Mhmmadfaisal2017-02-19

Nice project. Please teach me

author
kunalg39 made it! (author)kunalg392017-02-01

Can i get your code sir. Pls help me sie sir...kunalganesan17@gmail.com pls send to here

author
fvon wielligh made it! (author)fvon wielligh2017-01-11

Good day sir ,can i please have the code for your awesome project. i love your project and the system looks very good . my email is franch4u@hotmail.com

author
MohdN28 made it! (author)MohdN282016-11-21

The project really nice. i'll make for my tiny garden too. i hope can u send me the code adruino,library and simulation for proteus for me too.. i begging u sir

my email:
ewann94@gmail.com
as soon as possible sir
thanks

author
hazlin made it! (author)hazlin2016-04-21

The project really nice. i'll make for my tiny garden too. i hope can u send me the code adruino,library and simulation for proteus for me too.. i begging u sir

my email:

hazlin2802@gmail.com
as soon as possible sir
thanks

author
asfae made it! (author)asfae2015-11-25

sir, the project really nice. i'll make for my tiny garden too. i hope can u send me the code,library and simulation for proteus for me too.. i begging u sir

my email:

teknoprinter@hotmail.com
as soon as possible sir
thanks

author
Raze26 made it! (author)Raze262015-04-01

sir, the project really nice. i'll make for my tiny garden too. i hope can u send me the code,library and simulation for proteus for me too.. i begging u sir

my email:

muhammadraze26@gmail.com
as soon as possible sir
thanks

author
tuntungchan made it! (author)tuntungchan2015-02-26

​Hi, sry for disturbing you. Can u gve me simulation circuit for watering system project if u have it. And what software do you prefer to make simulation. Ty!

author
usman afzal made it! (author)usman afzal2015-03-01

Hi, sry for disturbing you. Can u gve me simulation circuit for watering
system project if u have it. And what software do you prefer to make
simulation.

author
BIGDOG1971 made it! (author)BIGDOG19712014-07-26

Awesome!
Great Job.

Seems to be a professional system.

Congratulations.

author
e9b9hoy1 made it! (author)e9b9hoy12014-08-28

You should think about making an instructable of your own! That looks awesome!

author
imeggy made it! (author)imeggy2014-07-27

Hi Marcelo
Thanks and thanks to you for the project.
Regards
Ian

author
rheaumep made it! (author)2017-07-23

Hi,

It's written 1 x RTC module with I2C communication in the components list while your picture shows RTC DS1302 which is not I2C. How did you make it works ?Thanks!

author
ArdhiI made it! (author)2017-06-03

Your project really interesting. i'll try to make for mine too. i hope can u send me the code adruino,library and simulation for proteus for me too..

i begging you, sir

my email:
ardhi.istiadi.ai@gmail.com
as soon as possible, sir
thank you very much, sir

author
antoniob132 made it! (author)2017-05-24

Can i get your code , pls help me sir..

antonio.bartolic@gmail.com pls send to here

author
MindaugasM4 made it! (author)2017-05-14

Any one tried to make watering system with public supply water flow type? I mean where you need valves to stop or start water flow? If anyone building similiar Project, can free to contact me at milukasm@gmail.com

author
constec made it! (author)2017-04-24

Sir pls sent how to programm this micro controller and pls sent the code to email

zitosan@live.com

Thank you very much!

author
raym89 made it! (author)2017-03-12

Awesome!

Seems to be a professional system.
Tyvm for sharing, and so detail.

author
Mhmmadfaisal made it! (author)2017-03-02

Schematic diagram please

author
JenissaS made it! (author)2017-02-06

Please sent code to my e-mail : iamraungkhow@hotmail.com

author
Mhmmadfaisal made it! (author)2017-02-06

Sir great project. Please help me sir. My email pejal333@gmail.com. Much help

author
MichelH13 made it! (author)2017-01-29

bonjour

pourriez vous m'envoyer votre projet par email en pdf à hohm.michel@hotmail.fr

merci bonne journée

author
BrahmaD made it! (author)2017-01-18

Is this an automatic one?

author
PetrN17 made it! (author)2016-12-30

I dont have power suply on my balkony so I would like use solar powered arduino and pump. Similar to this http://shop.irrigatia.com/index.php?route=module/productbundles/listing Can anyone help me with this projekt ? TY

author
Alias peter made it! (author)2016-10-25

Sir pls sent how to programm this micro controller and pls sent the code to email
aliaspeter6@gmail.com

author
arduIoT com made it! (author)2016-07-23

take a look of this board www.arduIoT.com/u1

It will help for a project like this

bravo for what you made!

author
arduIoT com made it! (author)2016-07-23

take a look of this board www.arduIoT.com/u1

It will help for a project like this

author
Engyp made it! (author)2016-07-19

hello, greate job

can u send me the code,library and simulation too?

thx

your.engineer@yandex.ru

author
Engyp made it! (author)2016-07-19

hello

thx for greate job

Can you please
send me the code and libraries for me too

your.engineer@yandex.ru

author
kang bo bae made it! (author)2016-07-12

Hi your project is very nice!
please send me code and libraries of project
Thanks!
email:vheh491066@gmail.com

author
MarcusB45 made it! (author)2016-07-06

Could you send me the code for this?

marcus.bonassi@gmail.com

Best regards

author
renrobn made it! (author)2016-07-02

can i ask for the codes of this projec?

email: renz_nangkil@yahoo.com

author
chaloemthoi made it! (author)2016-05-27

Hello All...

Please send me the code and libraries of watering system project.

Thank you so much.

E-mail : chaloemthoi0134@gmail.com

author
Raze26 made it! (author)2015-04-01

final year project

i hope can u send me the code,library and simulation for proteus for me too.. i begging u sir

my email:

muhammadraze26@gmail.com
as soon as possible sir
thanks

author
sainkupar made it! (author)sainkupar2016-05-04

can u please send me the code and library since it was showing error..my email sainkupar.sawian@gmail.com

author
hazlin made it! (author)2016-04-21

sir, the project really nice. i'll make for my tiny garden too. i hope can u send me the code adruinp,library and simulation for proteus for me too.. i begging u sir

my email:

hazlin2802@gmail.com
as soon as possible sir
thanks

author
alatmos made it! (author)2016-04-14

It seems to be nice !

Could i have the code and the libraries please ;

my e-mail is:

alatmos@gmail.com

author
alatmos made it! (author)2016-04-14

It seems to be nice !

Could i have the code and the libraries please ;

my e-mail is:

alatmos@gmail.com

author
FaezA1 made it! (author)2016-04-03

hello....in my watering system project...i have a problem regarding to the lcd display come out weird character when i connect ac source water pump into the cct arduino...

what is the problem actually???

hope u can help me....plesaseeeee...

author
Naseemsha NK made it! (author)2016-03-25

Sir ,

im intrested in your arduino project "WATERING SYSTEM - INTRODUCTION"

while executing the code provided in the project shows an error.

,I'm currently working on a similar project for my final year at

college ,can you help me to complete the task by sending the code and

libraries details for me.

Also i hope the technical assistance from your side.



yours sincerely



Naseemsha N

author
umer2013 made it! (author)2016-03-20

Hi,

can you please give me the schematic Proteus file of this project?

umerhashmi2013@gmail,com

author
ikhwanIsmail made it! (author)2016-03-14

Hello....i'm beginning learn about the arduino....can someone sent email to emil on this project....i'm interested to made it...

ikh22@yahoo.com....

thank you u all..

author
santhoshk200 made it! (author)2016-03-09

Hello All,

I am new to Arduino and just purchased Uno last week. I am interested in the watering project. Can you please email me the code and any documentation for Arduino Uno to my email please?

Kumar

home.santhosh@gmail.com

Appreciate.

author
AmalalE made it! (author)2016-03-06

Hi Sir.

Please send me the code and libraries of watering system project.

My e-mail : amalal.elal@gmail.com

Thank you so much.

author
gokhann_helvaci made it! (author)2015-05-21

HI. sir ....please mail me the project details and code.my email...

thank you so much sir

ghelvacioglu@hotmail.com

author
BIGDOG1971 made it! (author)BIGDOG19712015-06-05

Hi,

I sent the code and libraries for you. Check your email inbox, please.


Best Regards

Marcelo Moraes
arduinobymyself.blogspot.com.br
arduinobymyself@gmail.com
Skype: marcelo.moraes

author
DuhaA2 made it! (author)DuhaA22016-02-08

hi ,thank you for being a positive inspiring person ,I'm currently working on a similar project for my final year at college ,can yo please send me the code and libraries details for me too..

thank you very much

duhaalazzawi921@gmail.com

author
potlaramu made it! (author)2016-02-07

i hope can u send me the code,library and simulation for proteus for me too..

potlaramu@gmail.com

About This Instructable

176,643views

473favorites

License:

Bio: I am 43 years old and I live in Brazil. I am a Telecommunication / Electronics Engineer. Sixteen years acting in the industry of "Telecommunication and ... More »
More by BIGDOG1971:Arduino Propeller Message Display (POV)ARDUINO By Myself Mini-CNC (Plotter)ROVER Bot - The Arduino Bluetooth Controlled Tank
Add instructable to: