Abstract:
[spoiler]
As we live i a time where climatechange is actually happening we need to think about our water supply. I own some land that needs watering and the last few month the waterlevel nearly dropped below my well. If the pump started the waterlevel dropped below in a few seconds. (I live next to a river that is predicted to fall down to a brook in the future... i love the river

)
At this point i startet cleaning up an underground cistern (~20000 Liter) that is still full of dirt. I am confident that i clean it up until september and make it waterproof.
I also got a big fountain that can store an incredible amount of water. But as the water in my region carries Fe oxide i cannot fill the water in the fountain directly as it paints the bottom of the fountain orange-red.
[/spoiler]
Time for the plan:
[spoiler]
I use the cistern to clean the water of the Fe oxide (it falls down after a few weeks) and fill the fountain with it. In addition i use the rain from the roofs and direct them into the cistern and the fountain. Now i got 2 very good water storages.
The underground cistern and the well need level indicators.
The pumps need to work as a team to
1. keep the pressure above a limit
2. jump in for a pump with malfunction
3. save energy (we do not want a climate change, do we?)
The system also should be able to
1. predict how long the water will last (dependent on the weather forcast)
2. build statistics to make us use the water and energy more efficiently (watering on many locations the same time is not so good i guess

)
3. detect malfunctions and try to fix or work around them
4. prevent an overflow of the water storages
5. Send SMS if smth bad happens and send emails for notifications
[/spoiler]
Status: in progress
[spoiler]
Bus: CAN (still works on 5km cable, so it is good for extensions)
I made a pressure sensor that sends the water pressure in the system over the CAN bus. In early August i will hook on a logger to see if the sensor works correctly 24/7 and how much Current it will drain max.
I bought some solenoid valves that will do the job. I did make some notes on how i organize everything but i cannot find them anymore

so i need to do it all again.
[/spoiler]
Timeplan:
[spoiler]
This project IS heavy. I continue on August and try to make a light version of this system until october. The timeplan to finish it will be in about one year. (i need that time because i cannot work on this much)
[/spoiler]
Please give me some feedback and some suggestions. I will post my notes and schematics when i start to continure the project.
*Watermeter:
[spoiler]
Those Watermeters are pretty expensive if you need to read them digitally and need 1 1/4"
So i tried a different approach. I write down the waterlevel in the Pressure tank when the pump stops, and i write down the waterlevel when the pump starts. The Pressure tank is kind of a cylinder so i can calculate how much L water will be pumped into the tank in 1 pump cycle. Now i detect the pump cycles in my statistics that i did witch my Breadboard can logger and multiply them with the value i calculated.
The result ist not exact as the watering is going on during the pump cycles.
Another problem is that the Pressure tank loses air over time and the L/pumpcycle changes because of this.
The aprox. error per day is <100L which is good enough for me.
I plan to compensate the ongoing watering by software. I also plan to automaticly keep the same "pre pressure" in the Tank by interfacing a compressor and reading the waterlevel in the pressure tank via capacitance.
[/spoiler]
Items:
[spoiler]
*pressure sensor: Honeywell 13C0500PA1K
*MCU(pressure sensor): Atmel AtMega32
*MCU(i2c 7segment): Atmel AtMega88
[/spoiler]
(02.09.2011):
*Watermeter
(08.08.2011):
*schematics(eagle) uploaded for pressure sensor(drucksensor)
*schematics(eagle) uploaded for 7segment display for pressure sensor