Background

I had a dream…. a dream of setting up an automated irrigation system to water my garden. But, a number of things had to happen before I could get started.

One of my requirements was that I wanted to collect rainwater and use that for irrigation when available, but the only place I could put water tanks was behind my garage.

The double-garage and workshop (located at the back of the property, at the furthest point from the driveway) was in serious need of repairs. The back third of the garage/workshop was buried under almost a foot of dirt in parts. This meant that any time we had heavy rain, the garage would flood, as the outdoor ground level was well above the concrete slab on which the garage is laid. It didn’t help that the guttering around the garage had completely rusted through, so any rain would run directly down the side of the garage. There were also a number of holes in the walls, meaning that rodents could easily get in and make their homes in amongst the things I had stored in the garage.

Aftermath of a huge downpour soon after we started digging out the back of the garage. Shows how deep under dirt it was (orange coloured stains on the fibro show the previous dirt-level) and how easily it would flood the garage.
Aftermath of a huge downpour soon after we started digging out the back of the garage. Shows how deep under dirt it was (orange coloured stains on the fibro show the previous dirt-level) and how easily it would flood the garage.

We excavated the back and sides of the garage and got a builder in to:

  • Replace the roofing
  • Replace the guttering
  • Install proper drainage around the garage
  • Re-clad the exterior
  • Separate the double-garage from the workshop
  • Add a door and window to the workshop area
  • Replace the decrepit roller-doors to the garage with glass sliding doors
  • Build a pergola outside the sliding doors

I planned to put in a couple of slim-line rainwater tanks behind the garage after it was renovated.

We got a concreter in to lay concrete around the garage and put in retaining walls between the garage and the back fence and garden. The concrete around the back of the garage was laid thicker to handle the weight of the tanks when they are full.

The double-garage area was to be converted into an external studio/rumpus room. We got a tiler in to lay the floor tiles, then got a kitchen place to do the interior, including a double-sink, benches and 6 sets of floor-to-ceiling cupboards for storage. Much better.

Before
Before
After. Still a few bits of blue masking tape around from the painting, and the pipe from the gutter is running out into the fruit trees, awaiting the arrival of the water tanks, but almost complete.
After. Still a few bits of blue masking tape around from the painting, and the pipe from the gutter is running out into the fruit trees, awaiting the arrival of the water tanks, but almost complete.

Rainwater tanks

I ordered 2 x 3000L slimline tanks, along with a water pump and pump housing, then got a plumber in to:

  • Connect the guttering to the tanks
  • Join the two tanks together, giving me a single 6000L body of water
  • Connect the pump to the tanks
  • Run piping from the tank down either side of the garage and install a tap at the end of each pipe run

I should have asked the plumber to install 25mm blue-line poly-pipe. Instead I got 20mm pipe installed from the pump to the taps. The people at the irrigation shop later strongly recommended that I install 25mm blue-line poly-pipe from the taps onward to carry the water from the pumps to the solenoid valves, as this would reduce friction losses over the distances involved… and ideally replace the 20mm piping between the pump and taps. I left the 20mm pipe in place, with a view to replacing it later if required, but so far, so good. No pressure issues.

Once the tanks were in, and after our first decent rain, we started connecting our regular garden-hose sprinklers to the rainwater taps to water the garden. It was nice to be able to water the garden with water that would otherwise have gone down the drain!

2 x 3000L slimline rainwater tanks delivered!
2 x 3000L slimline rainwater tanks delivered!
My daughter inspecting the location of the tanks and pump enclosure
My daughter inspecting the location of the tanks and pump enclosure
View of the tanks from the opposite side
View of the tanks from the opposite side

OpenSprinkler

I had my eye on OpenSprinkler for a few years before taking the plunge into this endeavour. OpenSprinkler is the brains behind the irrigation system, allowing manual and scheduled control of the solenoid valves through a web interface, smart-phone application or API. You can also apply for a WeatherUndergound API key and configure the OpenSprinkler to adjust watering levels based on weather observations from a community of local weather stations.

I purchased the DC OpenSprinkler unit (8 zones) and a zone expander (which I thought gave me another 8 zones - turns out it is an additional 16 zones!). I scaled back my plans on the number of zones I wanted slightly after seeing that good quality Solenoid valves and valve boxes are not that cheap, and after seeing how difficult and time-consuming trenching, cabling and piping can be. I could have done without the zone expander, as my current setup only uses 8 zones, however if I ever feel like expanding in future, I have an additional 16 zones to play with. I’ve connected 8 of the 16 zones on the zone expander to a terminal strip, but for now they are unused.

The OpenSprinkler unit is not water-proof and must be installed indoors or in a water-proof enclosure. I went looking for ideas for external enclosures and was inspired by an enclosure setup that I saw on the OpenSprinkler forums: OpenSprinkler in a custom enclosure

I love how neat this setup looks, and while this setup is larger than I need (this one has the OpenSprinkler and 2 x Zone Expanders), it gave me the name of the enclosure manufacturer and the idea of using terminal strips mounted on the rear of the panel, with short jumper wires connecting the terminal strips to the OpenSprinkler and Zone Expanders. You then connect the irrigation cable wires to the other end of the terminal block and everything is hidden neatly behind the panel. Brilliant!

I tracked down an Australian electrical supplier (DigiKey Australia) that sells BUD Industries enclosures and bought a smaller one to hold the OpenSprinkler unit, a single zone expander and the power supply. Everything fits. Just. I could have given myself a little more room, but it worked out well in the end.

The panel required some minor modifications to allow the wires to run more easily around the back of the panel, and a section cut out of it to install the power-point. I also needed to drill 4 large holes in the base of the enclosure to run the electrical cabling into the enclosure.

My father-in-law is an electrician, so he kindly helped me with the installation of the power-point, the electric conduit, trenching for the electrical runs and connecting up power to the enclosure. He also generally helped to keep my crazy ideas in check and made sure that I didn’t take any short-cuts that I would regret later.

One evening, I decided to connect the OpenSprinkler, Zone Expander and terminal blocks to the panel and wire it all together. I showed my father-in-law the next day, very proudly, how I had connected everything to the enclosure panel and wired everything up to the terminal strips. It all looked very neat and tidy. He took one look at it and told me I had hadn’t left enough space to put the power-point in, nor left enough room for the lugs behind the panel to hold it up from the back of the enclosure (to make room for the wiring to run behind the panel). He suggested that I re-arrange everything to create more space, which meant undoing everything, moving it around and re-wiring it. The only orientation that worked was to put the zone expander upside-down above the OpenSprinkler unit. Thankfully, I got it right the second time and there was enough space to fit everything in.

Holes drilled in the base of the enclosure (with cable ports screwed in) for the three irrigation wire runs and the electrical input. The home-made wooden lugs are to raise the panel and make room for the terminal strips and wiring behind.
Holes drilled in the base of the enclosure (with cable ports screwed in) for the three irrigation wire runs and the electrical input. The home-made wooden lugs are to raise the panel and make room for the terminal strips and wiring behind.
OpenSprinkler unit and zone expander screwed onto the panel
OpenSprinkler unit and zone expander screwed onto the panel
OpenSprinkler wiring: Red=Sensor inputs (not currently used), Black=Common wires, White=8 zones
OpenSprinkler wiring: Red=Sensor inputs (not currently used), Black=Common wires, White=8 zones
Zone Expander wiring: Blue=8 of 16 available zones connected to terminal strip. To be used later, if required.
Zone Expander wiring: Blue=8 of 16 available zones connected to terminal strip. To be used later, if required.
Back of panel showing terminal strips. If you look carefully, you will see the modifications to the panel and evidence of my initial, incorrect attempt at connecting everything to the panel.
Back of panel showing terminal strips. If you look carefully, you will see the modifications to the panel and evidence of my initial, incorrect attempt at connecting everything to the panel.

Trenching, electrical and pipe work

Setting up the OpenSprinkler was definitely the easiest part of the whole exercise. By far, the most difficult and tiring part was getting the trenching done for electrical conduit and the piping. Most of the trenching was done over the Christmas holiday break, and of course, we had a string of 35-40 degree days which made it very sweaty, tiring work.

The Australian standard for trenching low-voltage cabling (24v) is 300mm, and my father-in-law ensured that I dug the trenches to that depth, despite my initial “That should be deep enough, right?” efforts. While 300mm might not sound like very far to dig down, doing it by hand, with the temperatures we were having and through clay soil, for around 40+ metres… I was very happy to see the end of that part.

Thankfully the trenches for the water pipes didn’t need to be quite that deep, and the pipes could go in above where the electrical trenches had already been dug.

Putting in an irrigation system as a fore-thought, rather than an after-thought, would have made things easier. Having lived in our house for around 8 years, I already had a number of established garden beds and plants, which made putting trenches in for the pipes a little trickier than it could have been if I had done earlier.

The trenching, electrical and pipe-work were done in two stages. Given that I have two tap outlets from the tanks/pump, I connected one up first, got it working completely, then did the other. The east side of the property was done first and put into operation, then the west-side was completed at a later stage.

The pictures of the trenches are deceptive. They look really shallow in the photos, but all electrical trenches are 300mm deep.

Trench with electrical conduit (orange) running to valve boxes on east side of house and to enclosure (out of shot, mounted on the wall near the air-conditioner compressor)
Trench with electrical conduit (orange) running to valve boxes on east side of house and to enclosure (out of shot, mounted on the wall near the air-conditioner compressor)
Conduit running underneath a storm-water pipe. Glad I didn't dig through that!
Conduit running underneath a storm-water pipe. Glad I didn't dig through that!
Enclosure mounted outside near my electrical box with the panel flipped and sitting above the enclosure
Enclosure mounted outside near my electrical box with the panel flipped and sitting above the enclosure
Close-up of the wiring into the terminal strips. I'm glad I had this picture to refer to, as I promptly forgot which colour wire was connected to which zone and didn't know what solenoid to connect to which coloured wire!
Close-up of the wiring into the terminal strips. I'm glad I had this picture to refer to, as I promptly forgot which colour wire was connected to which zone and didn't know what solenoid to connect to which coloured wire!
The final product, all wired in and closed up. Huge thanks to my father-in-law for doing such a neat job with the electrical conduit, even using a flame-torch to heat and bend the conduit so it sits neatly over the conduit going to the air-conditioner.
The final product, all wired in and closed up. Huge thanks to my father-in-law for doing such a neat job with the electrical conduit, even using a flame-torch to heat and bend the conduit so it sits neatly over the conduit going to the air-conditioner.
Looking up from underneath showing the bends in the conduit and how the conduit connects into the bottom of the enclosure.
Looking up from underneath showing the bends in the conduit and how the conduit connects into the bottom of the enclosure.

Chickens?

OK, chickens were definitely NOT an essential part of the irrigation system, but I ended up deciding that I didn’t have enough work to do, so ordered a palatial sized chicken-coop, which now houses 5 very productive Australorp chickens. The chicken coop took about 3 days to setup, including vermin/predator proofing the outside of the chicken coop. I dug a shallow trench around the outside of the coop, attached chicken mesh to the outside bottom-edge of the coop and ran it out about 300mm from the edge of the coop, then filled the trenches. So, if anything does try to dig, slide or crawl under the coop (rats, foxes, brush turkeys, snakes etc), they will hit chicken mesh underground and hopefully be deterred. I haven’t seen any evidence of digging around the outside of the coop yet.

The chicken palace
The chicken palace
Silly chickens!
Silly chickens!

Solenoid valves and valve boxes

The solenoid valves control the water flow to each of the sprinkler zones. The valves are connected together in a manifold configuration, taking one input from the “mains” supply (mine is not directly connected to mains pressure, but to the pump), and this is distributed between all valves in the manifold. The solenoid valves are in a default off position, and only open when a current is applied.

I have two valve boxes containing two valves each, and a third valve box containing four valves.

Each valve box has a run of 7 core irrigation cable running back to the OpenSprinkler unit. Should I ever wish to install any additional valves, I can add up to another two valves to each of the current 2-valve boxes.

The valve boxes are buried into the ground, with holes cut out of the sides to allow the mains input and the solenoid outputs. The valves themselves are water-proof and the wiring is also waterproof. All the valves have two wires, one of which is connected to a common wire (black) going back to the OpenSprinkler common port, and the other wire of each valve is connected to an active core going back to each zone input on the OpenSprinkler.

Valve box (2 valves not yet connected) controlling the blueberry bed, herb garden, mango trees and succulent garden
Valve box (2 valves not yet connected) controlling the blueberry bed, herb garden, mango trees and succulent garden
Valve box (2 valves not yet connected) controlling the banana trees, hydrangeas and Pinkerton avocado tree
Valve box (2 valves not yet connected) controlling the banana trees, hydrangeas and Pinkerton avocado tree
Valve box (4 valves not yet connected) controlling the raised veggie beds, back garden bed and yet to be built garden bed near the house
Valve box (4 valves not yet connected) controlling the raised veggie beds, back garden bed and yet to be built garden bed near the house
Solenoid valve installation in valve box, showing low-density 19mm elbow connectors cut through box. I cut out holes for another 2 valves and covered them with duct tape. Saves me having to dig out the whole valve box if I want to install any more valves in future.
Solenoid valve installation in valve box, showing low-density 19mm elbow connectors cut through box. I cut out holes for another 2 valves and covered them with duct tape. Saves me having to dig out the whole valve box if I want to install any more valves in future.
Solenoid valve installation in valve box, showing mains connector for 25mm blue-line poly-pipe.
Solenoid valve installation in valve box, showing mains connector for 25mm blue-line poly-pipe.
Solenoid valve box fully loaded with 4 valve manifold and connected to low-density 19mm poly-pipe. The supply from the rainwater tanks has an end-cap installed on the other side of the T connector.
Solenoid valve box fully loaded with 4 valve manifold and connected to low-density 19mm poly-pipe. The supply from the rainwater tanks has an end-cap installed on the other side of the T connector.
The gel-cap connectors are filled with a silicone gel. You insert the wires you want connected into the end and use a pair of pliers or similar to squeeze the cap shut. This cuts into the plastic around the wire, connecting any wires inserted and water-proofs the cabling at the same time. The connectors I am holding are connecting the active wires from each zone on the OpenSprinkler to one of the wires of each solenoid. There is a corresponding set of connectors daisy-chained with the common cable (black) connected to the other wire from each of the solenoids.
The gel-cap connectors are filled with a silicone gel. You insert the wires you want connected into the end and use a pair of pliers or similar to squeeze the cap shut. This cuts into the plastic around the wire, connecting any wires inserted and water-proofs the cabling at the same time. The connectors I am holding are connecting the active wires from each zone on the OpenSprinkler to one of the wires of each solenoid. There is a corresponding set of connectors daisy-chained with the common cable (black) connected to the other wire from each of the solenoids.

Mains water top-up for rainwater tanks

It dawned on me after installation of the tanks, if I was setting up this whole complicated irrigation system to run off rainwater tanks… and I didn’t get any rain, my whole system would be useless. I had to put in a mains water top-up. Thankfully such a thing is reasonably inexpensive, and I already had more than enough piping to add another run to the tanks from my garden tap. It would have been better to have thought about this much earlier and run a copper mains water supply to near the tanks, before concreting around the garage, but too late for that.

I installed a second tap on my mains-water garden tap and ran a 25mm blue-line poly-pipe run to the rainwater tanks. This is connected to a float-valve inside the tank. The idea is to only top up a small amount of water when the water level in the tanks is low. There is a weighted float tied to the arm of the float switch. When the float is in water, the valve remains shut. When the weighted float is not in water, the weight pulls the arm down and opens the valve to top up the tanks. Because the tanks are connected to one another, I only need to fill one tank. When the tanks get down to the last ~10%, the float valve kicks in and tops it back up a small amount, to roughly 12%. This way, room is left for rainwater to fill the tanks when available, without ever letting the tanks go dry. The pump does have a dry-run protection mechanism, but it’s more about making sure water is always available for irrigation.

Second garden tap installed, connected to 25mm blue-line poly-pipe.
Second garden tap installed, connected to 25mm blue-line poly-pipe.
Double outlet tap from rainwater tanks, one outlet connected to normal garden hose, one outlet going to irrigation system. 25mm blue-line poly-pipe (running along retaining wall above the 20mm pipe), carrying mains water to float valve installed in rainwater tank.
Double outlet tap from rainwater tanks, one outlet connected to normal garden hose, one outlet going to irrigation system. 25mm blue-line poly-pipe (running along retaining wall above the 20mm pipe), carrying mains water to float valve installed in rainwater tank.
Port drilled into tanks for the mains water top-up.
Port drilled into tanks for the mains water top-up.
Float-switch arm inside the tank (weighted float not yet tied to arm).
Float-switch arm inside the tank (weighted float not yet tied to arm).

How much did it cost?

I haven’t actually worked it out exactly until now, and I’m probably going to regret doing it rather than living in sweet ignorance as to how much I’ve actually spent on this.

Item Cost
2 x 3000L slimline water tanks $2130
1 x pump $653
1 x OpenSprinkler and 1 x Zone Expander $353
8 x Solenoid valves $297
3 x Valve boxes $62
1 x 50m length of 7-core irrigation cable $85
1 x Main auto top-up valve for rainwater tanks $157
Piping, fittings, irrigation tools and equipment $601
Total $4338

Ouch! Ok, that was more than I was expecting.

Was it worth it?

Absolutely. It cost me a lot in terms of time, effort and money, but I learned a lot, sometimes about what not to do if I ever needed to do something like this again in future, but I am very happy with the result.

My raised veggie beds are looking great! I am converting three of them to raised avocado tree beds instead of veggie beds long-term. I was having trouble growing avocado trees directly in the ground due to the clay soil in our area. The raised beds are split into two zones, the lower beds and upper beds. I have planted a tree in the centre of each of the lower three beds, as the soil is rich and raised, so has good drainage. I have these being watered on a less frequent schedule, and plan to grow whatever veggies will grow around the trees for as long as I can. The trees will provide much needed afternoon shade to the house for the long, hot summer afternoons, and the trees will hopefully provide me with a wealth of avocados. I have a Sheppard, Hass and Fuerte avocado in the veggie beds, a struggling but recovering Wurtz in the ground, and a Pinkerton avocado in the front yard.

Knowing that my garden will be watered precisely where and when I want, and being able to control it from anywhere in the world (via VPN), is very comforting. Seeing the results in the short time it has been operational has been very exciting. Everything seems to be thriving and I can’t wait until I start seeing some of the fruits of my labour.

Raised veggie beds, the closest three have a young avocado tree each. Fuerte closest, Hass, then Sheppard. Behind the beds on the fence, I have a black muscat grape, a seedless sultana grape, thornless loganberry, thornless blackberry and passionfruit.
Raised veggie beds, the closest three have a young avocado tree each. Fuerte closest, Hass, then Sheppard. Behind the beds on the fence, I have a black muscat grape, a seedless sultana grape, thornless loganberry, thornless blackberry and passionfruit.
The veggie/avocado beds being watered. The upper beds are on a different schedule/interval (you can see this in a screenshot of the schedule below) which is why they are not being watered at the same time.
The veggie/avocado beds being watered. The upper beds are on a different schedule/interval (you can see this in a screenshot of the schedule below) which is why they are not being watered at the same time.
OpenSprinkler iPhone app showing configured zones, all currently inactive. The 'Water Level: 74%' indicates that the Zimmerman algorithm has decided based on temperature and humidity information (gathered from the WeatherUndeground API), to adjust the length of time each zone is configured to water for down by 16%. This is to conserve water when it is not required and to ensure plants have enough water on very hot, dry days, where the level might be bumped to 150% for example.
OpenSprinkler iPhone app showing configured zones, all currently inactive. The 'Water Level: 74%' indicates that the Zimmerman algorithm has decided based on temperature and humidity information (gathered from the WeatherUndeground API), to adjust the length of time each zone is configured to water for down by 16%. This is to conserve water when it is not required and to ensure plants have enough water on very hot, dry days, where the level might be bumped to 150% for example.
OpenSprinkler iPhone app showing schedule preview, which gives you a time-line of scheduled watering for a particular day.
OpenSprinkler iPhone app showing schedule preview, which gives you a time-line of scheduled watering for a particular day.
OpenSprinkler iPhone app showing individual zone schedule configuration.
OpenSprinkler iPhone app showing individual zone schedule configuration.