Garden Automation Project

I’ve been trying to get my vegetable garden going for a few years now with limited success. My main problem has been watering them at the appropriate times. I tried a water timer but did not satisfy need for better automation. So this is a story of my journey to smarter water automation :)

I’ve always had a fascination of physical computing. Having a programming history I’ve always liked creating new things but taking that and controlling real world objects got me excited. I started doing some research and found a device called an Arduino. An Arduino is a micro controller that lets you control other devices, physical and digital. I started with the Sparkfun’s inventors kit. It has the basics to get you going.. like blinking leds, simple relay control, etc.

This sparked my imagination and started getting some ideas on what I can use this for. I had a few ideas but thats for another post :) My main idea was the have some sensors in the garden that would detect when the plants need more water. After a tonne of research I started to look into the Xbee’s. These are designed for point-to-point and point-to-multipoint communications. They are designed for very low power consumption and can be made into a mesh network. Xbee_Mesh I also decided early on that I wanted the project to be solar powered. So I went with the Seeeduino Stalker. It has input for a solar panel and battery power. Well suited for what I want to use it for. You can buy the water proof kit as a pack. It works out alot cheaper and you will need the battery, solar and UartSBee to interface with the board.


I highly recommend if you use Xbee’s to read ‘Building Wireless Sensor Networks’. Will step you through the process of setting up / pairing the devices as it is quite involved to get them talking. I started to hunt around for a solenoid valve I could use on my tap. I found the Orbit at Bunnings (massive DYI warehouse in Australia), which is a latching valve. Which would of been perfect except when I tried I realised that I need a h-bridge to reverse the polarity (will look into this in this for future projects) to turn it off (this was beyond what I had learnt so far). I then found Sparkfun had a 12v solenoid valve so I ordered a few of those and tested them out.

Very early relay control test

They worked pretty well, but while I waited for them to arrive (I got a little impatient), I bought another solenoid valve which was little more robust but is 24v. This introduced a new problem as my battery I was planning to use is 12v. I did some research into making a booster and decided to use a off the shelf product as my electrical skills were still quite limited.

I started looking at ways to control the relay without a massive breadboard or prototype shield. There are quite a few relay shields around and was looking at the Freetronics relay shield. A friend of mine was using one successful so I decided to give that one shot. The code is provided and works as described.

I also used the Freetronics terminal shield as it made it easier to run the VIN, Gnd and digital pin connections with all the shields in play.


  • 1 x Soldering Iron
  • 1 x Solder
  • 1 x Pliers
  • 1 x Screwdrivers
  • 1 x Power drill
  • 1 x Electrical tape
  • 10 x Ali gator clips


  • X x Irrigation pipes (depending on how big your irrigation system will be)
  • 1 x Pressure reducer (100psi)
  • 1 x Flow back valve
  • 1 x Pluming tape
  • 1 x Inline filter
  • 1 x Inline flush valve


  • Sleep / power saving mode for the Arduino’s’ (Currently working on this)
  • Create a mount for the solar panels to track the suns path throughout the day
  • Wall mount the enclosure
  • Could try and slim down the unit by making the controller setup run off mains power.


  • Start simple and work your way up
  • Never put + on a – terminal or – on a + on a 12v battery (or in general). I did this by accident and melted the cabled :)
  • Do a heap of research before you start. Ask questions to the community if you get stuck
  • If something simple is not working, then double check your connections
  • If you are using shields or 3rd party Arduino boards, check the default pins they use. I learnt this the hard way and spent LOTS of hrs trying to figure out why something wasn’t working as expected.
  • Check the voltage requirements of components. Seeedstudio stalker is 3.3v
  • Version control your code. Back it up :)
  • Chunk the work into small components. That way it doesn’t feel un-achievable


Tags: , , , ,

Categories: House, Tech

Author:Edward Austin

Solutions Architect, Gamer


Keep up to date with interesting articles

3 Comments on “Garden Automation Project”

  1. February 16, 2013 at 4:33 pm #

    Awesome work :)

  2. October 15, 2017 at 8:27 am #

    this is awesome Ed. Will copy some ideas.


  1. Create A Water Automation System For Your Garden | Lifehacker Australia - February 19, 2013

    […] Edward Austin has proffered an ambitious solution to the above dilemma. His Garden Automation Project employs a range of technologies to provide automated, solar powered sustenance to parched […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: