3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Garduino: Gardening + Arduino

Garduino: Gardening + Arduino
«
  • gintro1.jpg
  • zoomin.jpg
Garduino is a gardening Arduino. So far, Garduino:
-Waters my plants whenever their soil moisture level drops below a predefined value.
-Turns on grow lights, but only when it's dark out and only long enough to make the plants get 15 hours of total light (sunlight + supplemental light) daily.
-Alerts me if the temperature around the plants drops below 50 degrees.

This is the first grow-light and auto-water setup i know of that takes into account natural sunlight received and soil moisture level before turning on water / light.

This and other projects I've built are available as kits / products at my website.

I heavily relied on knowledge / inspiration / encouragement from:
-Mikey Sklarand his many green-tech projects
-Selwyn Pollit's permaculture knowledge
-Mitch Altman, for giving me a long-overdue lesson on how to properly solder

Future expansions might include:
-Teaching my Garduino to brew his own compost tea from greywater.
-Using pulsed, red-and-blue LED grow lights (like Mikey Sklar's setup) to significantly increase efficiency.
-Adding a solar panel and batteries to remove any need for a power grid.
-Testing for soil ph level and air CO2 content.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Obtain Your Materials

Obtain Your Materials
I built this using recycled / free materials wherever I could think to. It cost significantly less than $100 in total. Here's what I used:

The relays:
2 http://www.jameco.com/webapp/wcs/stores/servlet/ProductDisplay?jameco_page=42&langId=-1&productId=187151&catalogId=10001&freeText=omron+g5le-1&storeId=10001&search_type=all&ddkey=http:StoreCatalogDrillDownView
Omron G5LE-1 relays]
2 http://www.jameco.com/webapp/wcs/stores/servlet/ProductDisplay?langId=-1&storeId=10001&catalogId=10001&productId=1537918&
1N4004 diodes]
1 A.C. extension cord
1 A.c. power cord
1 A. C. outlet

The watering system:
1 Tiny clean-water pump
1 Plastic milk jug
~2 Old road bike tubes
1 Milk crate
String

The lighting system:
1 4' fluorescent light fixture
1 "plant type" fluorescent bulb (I used the Ott-Lite, but any bulb marketed as for plants should be fine)

The soil moisture sensor:
2 galvanized nails, 1-4" in length

The light sensor:
1 photocell

The temperature sensor / alert:
1 LED (any you'd use with an Arduino will do)
1 10k-ohm thermistor

The plants and holders:
A variety of seeds, preferably that'll grow into things you'd like to eat. Everywhere, I hear people recommend swiss chard as an easy starter plant...

Planting containers:
As many plastic milk jugs as you'd like. I used ~30.
28-gallon clear plastic storage containers. You'll need one for every 6 milk jugs.
~5 red bricks for each storage container, or anything else that will allow the milk jugs to stand at least an inch off the bottom of the container.

Soil mixture:
I used Mel's Mix, the mixture recommended in "The Square Foot Gardener." It consists of 1/3 peat moss, 1/3 coarse vermiculite, and 1/3 mixed compost, with the mixed compost coming from at least 6 different sources. I've heard lots of people bash peat moss and vermiculite's sustainability (not to mention vermiculite's obscenely-high price), so definitely explore your options here. As I understand it, you want something w/:
-lots of plant nutrients (the mixed compost)
-water retention (peat moss / vermiculite)
-'fluffiness:' soil should be light so plants can easily grow their roots through and you can easily remove plants from it (vermiculite / peat moss)

Tools / Miscellaneous
Multimeter
Wire stripper
Solder
Electrical tape
3 ~10k-ohm resistors
1 ~210-ohm resistor (for the LED)
several feet 22-gauge wire
1 Arduino (in my case a Duemanilove, but any should work)
1 Protoshield (Ladyada's model)
1 mini circuit board
Hot glue gun, with glue
« Previous StepDownload PDFView All StepsNext Step »
91 comments
1-40 of 91next »
Oct 25, 2009. 5:49 PMReagenWard says:
How's it working over time?  Almost everyone tries nails first, then moves to gypsum or the like, and if they want accuracy, they end up with a tensiometer.

Also, DC is known to be a problem for moisture sensors over time - have you considered AC or are you just replacing your probes often?
May 6, 2012. 12:23 PMdiy_bloke says:
As a matter of fact, I tried gypsum first and then went to bare spikes. Gypsum is a bother and the sensors actually fall apart quite soon. Also they are slow in reacting.

With regard to the DC. I have not seen any problems yet with my spikes that have been in the ground for a year., but what you could do is provide the positive feed to yr spikes from an arduino pin and only switch that on right before you measure and then off again ofcourse
May 17, 2011. 1:22 AMtypomaniac says:
sounds like a good idea. Do you have an idea how to modify the code to achieve this? I am not very experience with arduino yet..

thank you so much!
tm
May 6, 2012. 12:26 PMdiy_bloke says:
Have a look here on how to write such a code: http://arduinodiy.wordpress.com/2012/04/29/garduino-an-arduino-sort-of-for-your-garden/ if you haven't already found out how to do that
Nov 10, 2009. 10:29 AMReagenWard says:
Good advice.  Thanks!
Mar 10, 2012. 6:42 PMdeqwer says:
i built the whole thing up but when i run some test and found out that my moisture sensor seem to be receiving an unstable read .the read runs between 707 and 560 i check the connection is ok,and the soil is basically wet
Dec 14, 2011. 5:09 PMdurgenflabbit says:
hey liseman,

From what I can tell, excellent tutorial. I am kind of new to arduino but I really want to try this one out, I figure Im a fast learner.

But the 2nd link on your materials list is broken, or at least doesn't link me to a product that still exists. Just wanted to make sure I got the right diodes. If you could point me in the right direction I'd appreciate it. But then again, I dont even see where you used them, unless I missed something. Thanks again.
Feb 12, 2012. 7:34 PMdaley045 says:
I am working on replicating a similar project and have spent most of the day getting the water pump figured out. This is where you need the diodes. I am setting up a drip hydroponic system that turns the pump on and off with a set time interval. What I understand is that when the motor turns off it sends a high voltage shock through the system. I have unfortunaly / naively been using only a 50v diode which was not enough to protect the system from the voltage generated by the 120 volt water pump. I am new to electrical systems. Does anyone know what diode I should be using.
Feb 14, 2012. 10:30 AMdaley045 says:
Never mind. A 1N4004 diode should be good for 400v.
Nov 29, 2011. 1:02 AMdiy_bloke says:
I have used galvanized nails for some time now and they do well. In order to combat oxydation one could feed them with AC (=getting the voltages from two digital pins that you alternately switch from high to low), but I found it easier to just switch off the voltage to the pins and only switch it on when I am doing a reading.

I have these pins in the ground for a year now and they still look fine. Since winter is coming, I took them out, gave them a quick clean with a brillo. They will go back in the soil in the spring.

If they really look bad, I will just replace them
Nov 22, 2011. 1:58 PMmarcuantonio says:
I get these values, Im concerned that the seconds lit is not changing and hence the achieved is not changing either.

The lights are on however.

Is this normal?


moisture sensor reads 614
light sensor reads 107
temp sensor reads 489
seconds elapsed total = 0.00
seconds lit = 0.00
proportion desired = 0.58
proportion achieved = 0.00
moisture sensor reads 627
light sensor reads 118
temp sensor reads 490
seconds elapsed total = 27.00
seconds lit = 0.00
proportion desired = 0.58
proportion achieved = 0.00
Nov 22, 2011. 6:10 PMmarcuantonio says:
Yes, I do have a light connected. I lowered this value and that gave seems to have helped doing the seconds of light desired and achieved.


//update time, and increment seconds_light if the lights are on
seconds_for_this_cycle = DateTime.now() - seconds_elapsed_total;
seconds_elapsed_total = DateTime.now() - start_time;
if (light_val > 120)
Nov 11, 2011. 2:54 PMmarcuantonio says:
Hi, I got the kit, and have assembled it. I get some info on the serial monitor, but have not got the lights to turn on. Is there anything you might suspect I am doing wrong?

Thanks!

Nov 11, 2011. 7:58 AMmarcuantonio says:
I have one light attached to the light board, and a light to the water board. Neither is doing anything. I tried them on, on an oulet, connectting the two lead that would go into the board, and they worked fine.

At some point, the board for the light was giving me tiny electroschocks

I changed them and now they are fine

Nov 11, 2011. 7:56 AMmarcuantonio says:
Hi,
Where is the test code?
Nov 11, 2011. 8:13 AMmarcuantonio says:
I found the test code, sorry about that. I think there is a problem with the pcb, it doesnt fit snuggly on top of the ARduino. When I sandwch them together the red LED turns on.
Sep 13, 2011. 7:23 AMthekatr2 says:
cool project
Aug 29, 2011. 2:06 AMdotdash says:
Hi Luke,

Thanks for this fantastic instructable, I'm currently using it as the basis for a system as part of an art installation. It's my first foray into using Arduino, and as you say, it's ambitious but I'm getting there, slowly but surely!

You can see my progress here: http://iwilltakeyoueverywherebianca.tumblr.com

if you're interested.

Pip
Jul 21, 2011. 8:37 AMrmullins says:
I've never done anything with Arduino, what would you recommend in getting started?
May 1, 2010. 10:21 PMFredicvsMaximvs says:
Just curious, why galvanized? Why not stainless steel? Is there something in the chemistry that makes this work better?
Jul 26, 2011. 3:36 PMGlider-diver says:
Ever try soldering to stainless steel? :-)
Apr 26, 2011. 9:38 AMSuper_Nerd says:
galvonized is coated with zinc so the metal doesnt oxidize

I belive there is no difference with stainless steel except it is an alloy not an electro-plating

there probably is no difference but price
Jul 20, 2011. 9:07 PMjbuchanan6 says:
Inspired by your garduino i have implemented my own. You can see my version here http://web.mac.com/sillyfunnypedro/garden/1234.html

Awsome project. Thanks for all the details. I have pointed people back here

Sillyfunnypedro
Jul 18, 2011. 5:45 PMsweenes says:
Great project! I just finished my version of this which is solar powered with a windshield washer pump, no sensors yet but its working great coded with 4 hour delay in waterproof box. Thanks for posting this!
Jun 15, 2011. 1:28 AMtypomaniac says:
hey : ) is there a special reason why you chose a 10 k resistor? what would happen if i take a higher or lower resistor?

thank you!

tm
May 25, 2011. 12:12 AMtracyscott says:
You need to install the DateTime library into your Arduino environment.

Download it from here:
http://www.arduino.cc/playground/Code/DateTime

On my Mac, I ended up putting it here:
$ pwd
/Applications/Arduino.app/Contents/Resources/Java/libraries

At the same level as the existing libraries:
$ ls
DateTime DateTimeStrings Ethernet LiquidCrystal SPI SoftwareSerial Stepper
DateTimeBad EEPROM Firmata Matrix Servo Sprite Wire

Restart Arduino and it should show up in the menus under:

Sketch > Import Library

Read more here:
http://www.arduino.cc/en/Main/Libraries
Dec 21, 2009. 11:33 PMmhkabir says:
I would like to run this off a 12v Solar Panel and a small battery bank.What changes are necessary to the system?? I don't want to run it off the mains at all.

Some basic changes would be to get a 12v pump and a 12v light. Also a regulator would be necessary to get 9v power to the Arduino.

Also I don't have a protoshield.Is it absolutely necessary? I will use a Duemanilove.I will order it in a few weeks.

Kabir
Dec 24, 2009. 5:42 PMmhkabir says:
 Is it also necessary to have 'plant-style' fluorescents or will normal ones do??
Feb 11, 2010. 2:21 PMSimpson_jr says:
Normal fluorescents will work fine.
One advice for choosing lamps, cool white fluorescents tend to stimulate the growth of a plant while warm white light usually is better while flowering.

Apr 26, 2011. 9:43 AMSuper_Nerd says:
so If I were to build this I should change the lamps as the plant grows?
Apr 27, 2011. 3:20 PMSimpson_jr says:
You can best use both types while growing and while flowering.
I personally use 75% CW/25% WW while growing and 25% CW/75% WW while flowering, but you may want to read what your type of plant likes best.

Dec 24, 2009. 5:39 PMmhkabir says:
 Thanks Luke!!

And for the sake of convenience, I will use a breadboard instead of a protoshield. The two are fundamentally same isn't it?
Feb 11, 2010. 2:21 PMSimpson_jr says:
Yep
Apr 24, 2011. 7:04 PMChowmix12 says:
Brilliant I'ble! My father and I built some wooden planters in the backyard and I was thinking about adding some soil moisture sensors so that the pump would only run when there is high resistance across the two probes in the planters. I didn't want to make it smart (With Arduino) So I was wondering if i could make it with a transistor that activated a relay when there is high resistance across the two probes. Maybe a pullup resistor on the other end.
Mar 4, 2011. 11:53 AMTXTCLA55 says:
PROBLEM:

//establish start time
start_time = DateTime.now();
seconds_elapsed_total = 0;

Wont comply as "DateTime" was not declared in this scope.

Even though i added the file to arduino complier.
1-40 of 91next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
66
Followers
18
Author:liseman
bicycles, gardening, and other important stuff