Irrigating With Recycled Water
by paolofoti in Living > Gardening
4043 Views, 75 Favorites, 0 Comments
Irrigating With Recycled Water
![Immagine2lowqual.png](/proxy/?url=https://content.instructables.com/FGF/27RP/IRDUPQ7J/FGF27RPIRDUPQ7J.png&filename=Immagine2lowqual.png)
![DSCN1509.JPG](/proxy/?url=https://content.instructables.com/FM6/KR05/IRDUPV1Q/FM6KR05IRDUPV1Q.jpg&filename=DSCN1509.JPG)
![DSCN1513.JPG](/proxy/?url=https://content.instructables.com/FD0/UFES/IRDUPVFF/FD0UFESIRDUPVFF.jpg&filename=DSCN1513.JPG)
My idea to reduce the consumption of water, is to use the water generated as waste by the domestic air-conditioner, and use this water to irrigate the plants, just collecting this water in a tank,and using a water pump and a sensor
Initially I measured that my air conditioner set at 25 ° C (77 ° F) produce about 2 liters of water every hour. So in a normal day I can collect enough water for all my plants.
To provide an automatic irrigation system I used :
- tank for collecting water
- small water pump (12V - 5 W) and some pipe
- relay
- soil moisture sensor
- Arduino micro for the control of the system
Connect All Components
![low-water-connection.PNG](/proxy/?url=https://content.instructables.com/FDD/GPC7/IRDUPMME/FDDGPC7IRDUPMME.png&filename=low-water-connection.PNG)
I used a 12 V power source for all the system. 12 V it is perferct for the water pump and arduino as well.
The water pump is controlled by a relay, and the relay is controlled by the digital pin 4 of arduino.
The soil moisture sensor is checked by the analog pin A0.
Write the Code
![arduino code.JPG](/proxy/?url=https://content.instructables.com/FWK/N4F8/IRDUPSNF/FWKN4F8IRDUPSNF.jpg&filename=arduino code.JPG)
![DSCN1507.JPG](/proxy/?url=https://content.instructables.com/FM8/9LXP/IRDUPRLW/FM89LXPIRDUPRLW.jpg&filename=DSCN1507.JPG)
![DSCN1502.JPG](/proxy/?url=https://content.instructables.com/F1S/S8DH/IRDUPSDS/F1SS8DHIRDUPSDS.jpg&filename=DSCN1502.JPG)
You can see the full code in the picture. I made it as simple as possible., so I think it will be very easy to understand.
This is a very easy control system, so of course it can be improved, but for my needs it is good enough.
First, I tested the soil moisture sensor in different situations, and I measured the following value with the analog pin:
- 100 into the water
- 150 in wet soil
- 600 in dry soil
- 900 in air
So I set the threshold = 400 as the maximum level of dry soil admitted.
Then I measured the water flow, and decided to set in 10 seconds the duration of the irrigation.
Here you can read the full code:
/* this simple sketch allows you to irrigate the plants when the soil becomes dry
* with a soil moisture sensor I measured the following value:
* - 100 into the water
* - 150 in wet soil
* - 600 in dry soil
* - 900 in air */
int threshold = 400; // Maximum level of soil moisture allowed
int sensor = 0; // soil moisture sensor connected in A0
int relay = 4; // relay controlled by the digital pin 4
void setup() {
pinMode(relay,OUTPUT); // The relay control the water pump
}
void loop() {
int level = analogRead(sensor); // check if the soil moisture level
if (level > threshold) { // when the moisture level is too low
digitalWrite(relay,HIGH); // it activate the water pump
delay (10000); // and irrigates for 10 seconds
digitalWrite(relay,HIGH);}
else {
digitalWrite(relay,LOW);}
delay(600000); // check the soil every 10 minutes
}
Enjoy Your Irrigation System
![DSCN1508.JPG](/proxy/?url=https://content.instructables.com/FQJ/LG1Z/IRDUPM09/FQJLG1ZIRDUPM09.jpg&filename=DSCN1508.JPG)
![DSCN1516.JPG](/proxy/?url=https://content.instructables.com/F27/HJE3/IRDUPMJN/F27HJE3IRDUPMJN.jpg&filename=DSCN1516.JPG)
![DSCN1510.JPG](/proxy/?url=https://content.instructables.com/FWJ/FSK3/IRDUPM0J/FWJFSK3IRDUPM0J.jpg&filename=DSCN1510.JPG)
![DSCN1517.JPG](/proxy/?url=https://content.instructables.com/F72/5QQY/IRDUPMLO/F725QQYIRDUPMLO.jpg&filename=DSCN1517.JPG)
![DSCN1511.JPG](/proxy/?url=https://content.instructables.com/FIS/8BVP/IRDUPM0O/FIS8BVPIRDUPM0O.jpg&filename=DSCN1511.JPG)
Now it's time to install all the components and check that everything works.
So insert the water pump in the tank and connect all the pipe through the plants, insert the soil moisture in the ground and when you power on, it should start working.
This little sistem I created for 2 chili-pepper plant it could be used for much bigger situation, whit much more water and much more plants, to reduce the water consumption, and for sure there are many little improvements that sould be made, but I hope you like my idea and it will be of inspiration for all the readers, to a more rational use of the important resource that water is.