Introduction: WATERING SYSTEM - INTRODUCTION

Picture of 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

Picture of 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

Picture of 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:

Picture of 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:

Picture of 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

Picture of 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:

Picture of VIDEOS & PHOTOS:
Questions and suggestions send to: arduinobymyself@gmail.com


Part 1:

http://youtu.be/_jcDxYK33ew

Part 3:

http://youtu.be/Czvxi1r21Zc



Comments

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.

Omar IvanA (author)imeggy2017-11-13

1.Amigo me gusto tu trabajo, me podrias ayudar, es que nesecito hacer uno para mi hortaliza que estoy haciendo en mi casa.Me ayudaría en enviarme el código, al correo omar8f17@gmail.com

AlexH311 (author)imeggy2017-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!

Mhmmadfaisal (author)imeggy2017-02-19

Nice project. Please teach me

kunalg39 (author)imeggy2017-02-01

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

fvon wielligh (author)imeggy2017-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

MohdN28 (author)imeggy2016-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

hazlin (author)imeggy2016-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

asfae (author)imeggy2015-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

Raze26 (author)imeggy2015-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

tuntungchan (author)imeggy2015-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!

usman afzal (author)tuntungchan2015-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.

BIGDOG1971 (author)imeggy2014-07-26

Awesome!
Great Job.

Seems to be a professional system.

Congratulations.

e9b9hoy1 (author)BIGDOG19712014-08-28

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

imeggy (author)BIGDOG19712014-07-27

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

IvanA158 (author)2017-12-17

HI can you send me the code to my email : ivananievas@yahoo.com

ThanhN103 (author)2017-11-15

Hi, I wanted to know which relay you used in this product ? thanks

Kenkenken (author)2017-11-10

Good day sir. Your project was awesome. Were planning to build our own watering system for our project in instrumentation . Please sir. Send the code in my email "kennethmillan06@gmail.com" i hope you can help us sir. Its our pleassure sir. Thank you

Kenkenken (author)2017-11-10

Helo sir . Your project was awesome . And were planning to build our own for our project in instrumentation . I hope u can send me the code to my email " kennethmillan06@gmail.com ". Thank you sir.

Mai AnhN1 (author)2017-10-07

Nice project. I'm studying about same project. Could you send me the Schematic and code ardruino via email : nguyenthimaianh1202@gmail.com. Thanks you very much!!! Hope you send me soon

FaezA1 (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...

Farzadlatifeh (author)FaezA12017-09-22

my screen showed crazy characters and sometimes even Arduino hanged immediately after relay works, according to this post(https://electronics.stackexchange.com/questions/237688/arduino-16x2-lcd-weird-symbols-after-relay-switch/330632#330632) and some other websites I found it is something about the AC device because when the device was disconnected the relay and other parts would work properly but when the AC device which is a simple Aquarium water pump was connected to test the system in real situation, after relay changes (on and off both), the system goes crazy, I put 6 * 1nF capacitor in parallel (5.6nF totally) to entire system close to the relay between VCC and Gnd of Relay and just one n4148 diode to VCC wire, this diode shows around 110 K resistance with Multimeter. therefore, in any case if there is any back current or emf or Idk anything to interrupt the system, it prevents them all.

thanks to you all for sharing information. hope this helps somebody.

fas83 (author)2017-09-10

hi i made your project but the rtc doesn't work

where do i fixing the date and time for the first time ,please

because when the arduino is on date and time is 165:165:2165

165:165:165:

thx fas83

Amila Dhanushka (author)2017-07-27

Hi!! The project is really nice. I have a problem with Arduino board coding. I made it with the same components and coding which you were given above(Git Hub). But finally, when I going to upload the programme there was an error in compiling.I have not enough knowledge with coding.The error is attached below.I really appreciate if you could support me to resolve the problem.

Thank you.

rheaumep (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!

ArdhiI (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

antoniob132 (author)2017-05-24

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

antonio.bartolic@gmail.com pls send to here

MindaugasM4 (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

constec (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!

raym89 (author)2017-03-12

Awesome!

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

Mhmmadfaisal (author)2017-03-02

Schematic diagram please

JenissaS (author)2017-02-06

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

Mhmmadfaisal (author)2017-02-06

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

MichelH13 (author)2017-01-29

bonjour

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

merci bonne journée

BrahmaD (author)2017-01-18

Is this an automatic one?

PetrN17 (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

Alias peter (author)2016-10-25

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

arduIoT com (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!

arduIoT com (author)2016-07-23

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

It will help for a project like this

Engyp (author)2016-07-19

hello, greate job

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

thx

your.engineer@yandex.ru

Engyp (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

kang bo bae (author)2016-07-12

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

MarcusB45 (author)2016-07-06

Could you send me the code for this?

marcus.bonassi@gmail.com

Best regards

renrobn (author)2016-07-02

can i ask for the codes of this projec?

email: renz_nangkil@yahoo.com

chaloemthoi (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

Raze26 (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

sainkupar (author)Raze262016-05-04

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

hazlin (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

alatmos (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

alatmos (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

About This Instructable

192,958views

496favorites

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: