Pond Control is a garden automation project with sensors, feeder, water level control for my Koi pond. For low level io i use an Arduino UNO + 2 shields for all the connections of sensors and the few extra discrete components that are needed. For user interface and control logic a Raspberry PI is used running a nitrogen/CowBoy Erlang web server.
Features:
- Keeps a precise water level so you never risk overflowing the pond.
- The water fill flow is monitored over time to detect leaks or suspiciously high water usage.
- Monitors water temperature which controls the fish feeding frequency.
- Monitors the PH value in realtime and signals if counter measures should be taken (too high/low). Good range is PH 7.8 - 8.2
- Watering plants and bushes near the pond with sprinkler system
- Fish feeder
- Webserver running a mobile friendly UI to monitor and control the system
All sensors are located close to the pond naturaly. The concrete box is partly placed above the water for the fish feeder and the sensors.
- Fish feeder for pellets (home made with a continous rotating servo like this http://www.adafruit.com/products/2442)
- The PH sensor (http://atlas-scientific.com/product_pages/kits/ph-kit.html?) and an insulation cricuit to eliminate motor noise in the ground plane (http://atlas-scientific.com/product_pages/circuits/pwr-iso.html)
- The liquid eTape ruler (http://www.adafruit.com/products/464) to measure the level (i keep a +/-5mm level)
- The temperature sensor (http://www.adafruit.com/products/381)
No, it's not the prettiest construction i've made but it does the job. The top shield contains 3 TIP120 power FETs to open the water flow to these solenoids (http://www.adafruit.com/products/997). One for the water fill and 2 spinkler systems (http://www.gardena.com/int/water-management/micro-drip-irrigation-system/)
Standard ethernet (RJ-45) cables running in an underground tube from the base unit out to the sensors (by the waterside) or the sprinklers / water fill/flow measurement. And another RJ-45 cable to the closest switch in the house for.
The PH circuit i use required it's own breadboard so i placed that out near the water. Otherwise it is mainly a hub for all the sensors and fish feeder
Here are some sketches of how te fishfeeder works. Most of the material can be obtained at your closest IKEA. I've chosen to put in some tupperware similar box (which is then both a container for the fish pellets (2-3 mm granulat) and the feeding device). The rotating cylinder is a roll (yes, like the one you use for your ginger breads!) with a DC servo connected to it.
Instead of writing a specific android or iphone app i've chosen to make a web gui with the jQuery mobile look. Below is the simple web gui to interact and watch the sensor values (page is updated as soon as a new sensor value is available and pushed to the web client, typically once every second). The web server runs on a raspberry PI which can be accessed from any device (LAN and WAN). All the sensor values are pushed to a mysql database once every 15 minutes to create statistics over time (ph, temp, flow etc)
The feeding time and sprinklers can be configured (drop down menu button).
If you look really careful the hose that fills the water level is visible to the left of the waterfall. I.e. when draining the pond (back flushing the filter out in the garden) fresh water is filled from the opposite side of the pond.
Oh and YES! The Koi fishes loves the automation too :-)