top of page

Arduino Sprinkler Controler 

Goal

  My goal is to be able to turn on the sprinklers in my yard by tweeting specified terms like "left front yard on" or "garden on 15" to set the garden on for 15 minutes.  

Step One

                 Get the solenoids setup below are a few pictures of them set up in my yard.  

 Step Two

 

Design a breadboard layout for the electronics and find out how to distribute the power within the system and convert the electricity from ac to dc  

 

 

Step 3.5     

 

I decided to switch to having the controller work on solid state relays because they are a lot better than regular relays because there is no moving parts in the relay which means that they will last a lot longer and have fewer chances of messing up.

 

With this step, one obstacle I found is if I only want one power cord going to the circuit board I will need to convert ac power to dc power.  normal ac current forms a sine wave which peaks at 120 volts like the picture to the right I had to convert ac current at 24vac (what the solenoids run off of) to 5vdc (what the atmega328 chip and the relays run off of).  Since this is not 120vac or 240vac there are few transformers that can do this so I had to find another way to do it. What I came up with is something called a diode rectifier which takes ac current and makes it where it does not change from positive to negative like it normally does.  How a diode workers is it only allows power to flow in one direction like a check valve which allows the power to form a absolute value sine wave like the picture below.  Then the power is sent to a capacitor to smooth out the absolute value sine wave.  Finally the power is sent to a 5 volt regulator (7805) to converts the 24 vdc to 5 volts. 

 

 Step Three

 

Start designing the pcb (printed circuit board) and get all the parts ready for assembly of the controller for the valves so twitter can talk to the valves. In other words time for hardware.

Step Four 

           

I decided to change from using twitter to using a webpage and a app that I am working on because of several reasons.  First and most importantly I decided not to use twitter because with twitter it was only able to send commands out from the Arduino and was not able to send commands out to the Arduino.  Second I decided to use a webpage because it is a lot easer to set up a unique webpage than a unique twitter for every sprinkler controller and this has a lot more functionally than what i would be able to do with twitter. 

Step Five testing July 3rd 2014   

At this time the sprinkler controller is under alpha testing at my house and at this time able to be turned on and off only by a web page and not yet able to be on a schedule or be controlled by the app at this time  

Step 5.5 testing August 21 2014   

Now I am able to run the sprinkler system on a text based weather page.  The atmega 328 is able to read the webpage and controle the the sprinklers based on the results it reads.  If the weather is showing rain in the forcast then it will turn off the sprinklers to save water.  Also if the weather is warmer than normal then it will run the sprinklers longer and if the weather is colder then normal then the sprinkler time will be reduced.

By Palmer Tetley

bottom of page