I love these projects. They are always destined to fail from experience but are great fun anyway. I've tried a few times to do similar things. I'll catalog my disasters quickly:
1. Seedlings need blowing around a bit when they pop out or they get all spindly. Cue wiring up two 80mm PC case fans to a chain of a single astable then two monostable 555's to generate an oscillating wind field that goes on for 5 seconds each direction after a delay of 10 minutes. Dried the compost out, blew most of it it away and then killed the plants dead. No tomatoes for me! 2. Watering robot version 1. Similar to above but with a 74hc390 dividing down the clock so it only ran once every day. Used an unprotected MOSFET to control a small water pump from ebay. Back EMF blew the MOSFET up and jammed it as a short. Emptied the entire water reservoir into the pot, down the wall and into the carpet. 3. Watering robot version 2. Same as above with problems fixed. Apart from I ran out of bipolar 555's so I used CMOS ones which are a little more tetchy about noise. Cue last 555 getting jammed in an on state and the same thing happening. This time, the tupperware box with the electronics ended up getting wet and the wall wart exploded. Edit: meant to say to the OP - nice work. This is the spirit of all things interesting :)
Why not use a relay? Less to worry about for a side project like that. If you don't need sub-millisecond switching then you gain complete isolation, constant voltage output, and AC or DC switching
Relay has a considerably lower drive impedance than a MOSFET for switching so you end up having to drive the relay with something anyway because the 555 will probably die. Might as well skip the middle man and use a MOSFET which has a crazy high source impedance.
(you need to stick a transistor between the 555 and the relay anyway so you might as well just use a MOSFET)
Nope. 555 has drive capability of over 100mA. More than enough to drive a small relay directly. Just make sure you have a spike suppression diode in circuit.
Seedlings need _light_ when they pop out or they get all spindly. The sun does something like 1 kW/m3, so if you're using artificial light, you will need plenty of (preferably LED/CFL) lighting.
Source: the generations of spindly tomato plants who went before the thick-stalked purple-green-leaved ones.
Indeed. This was on the kitchen window sill with sunlight 50% of the day. We got there in the end unaided by technology but it was so much fun trying with it.
While that's true, the OP's solution is one way to help promote thicker stems if your lighting is sub-par. E.g. more light is best, but failing that for some reason (budget, space, whatever), stimulating the stems is a reasonable backup.
Fun story: we're doing a project at work to do with agriculture.
We bought some pot plants to keep alive and some cheap soil sensors; they're just two electrodes and you pass a current through the soil, measure the resistance and get a proxy for soil moisture. We left the sensor continuously logging on Friday, came back on Monday to find the plant very unhappy and the probe contacts almost completely corroded. Within a day or two it was a stump, never recovered. Turns out you're not supposed to leave these things powered on 24/7 and capacitative sensors are a much better solution. TIL you can electrocute plants.
This is a really cool idea actually. However you're likely talking sub nanosecond rise times which makes things a little difficult in the signal processing space. For example my scope (knackered old 1971 Tek 475) can barely manage 1.8ns on a properly terminated transmission line which this will likely not be.
But I’m a programmer, not a gardener. If I had a plant, I’d have to water it and check the plant’s health a few times per week. I decided it would be much easier if I just spent several hundred hours building a robot to do that for me. If the plant lives to be 80 years old, I come out slightly ahead.
The mark of the start of any good hobby project is a sense of humor about the time it really takes to accomplish something simple with technology on the first go-round.
So the reason your moisture sensor project failed is because those types of moisture sensors are really designed for "stick it in, test it, and pull it out" testing. If left powered on in a moist environment, the conductive material on the sensor will quickly corrode (quickly as in the span of a few hours, as is seen on the graph).
However, Vegetronix makes an ultrasonic soil moisture sensor that does not have electrodes, and thus does not corrode. It is far more complex and expensive ($40) but it's designed as a moisture sensor for sprinkler systems and as such is engineered to be left in the ground. Edit: Link to Vegetronix sensor: http://www.vegetronix.com/Products/VH400/ . I have used it and it works well, but as it turns out, even this is not sufficient to really automate a garden. You need fertilizer. Hydroponics make dealing with that complication much easier -- until you realize that the fertilizers are caustic / acidic enough that you have to flush the lines with water as well... In other words, there's a pretty good reason you can't buy a kit off the shelf that will grow plants :)
The sensors corrode due to oxidation caused by the DC current. It's a pretty simple design change to alternate the current flow through the sensor and prevent that oxidation by toggling the pins.
Exactly this. I created a soil moisture setup with cheap sensors that worked consistently for several months. The key was to send the current flow one direction for a few seconds, then reverse high/low on the pins for the exact same time. This prevented excessive oxidation.
Maybe you're oxidizing the soil around the sensor? In any case, oxidization (especially with gold-plated sensors) is a concern. I was unable to get these simple resistive sensors to work consistently long-term.
> In other words, there's a pretty good reason you can't buy a kit off the shelf that will grow plants :)
Actually - I've had great luck with an AeroGarden. A friend got me their Harvest Touch model in the fall, and I successfully grew herbs all winter. Then this spring I started tomato seedlings in it, and had far-and-away the most successful tomato seedling starts in my decade of trying. My model is the Harvest Touch - which tells you when to add water and fertilizer on a screen. But there are more advanced models that connect via WiFi: http://www.aerogarden.com/aerogardens/wi-fi-aerogardens/mira... I don't see much value in the "smart" features, but as far as easy-indoor hydroponics, they really can't be beat.
I really like the addition of the web camera - it's a nice bonus on top of the more traditional temperature/humidity/light/moisture readings that most people incorporate into these DIY systems. Much better than what I made the first time I built one of these things.[0]
The one thing that made my scratch my head was your approach to measuring moisture. There are several very reliable methods for measuring soil moisture directly (changes in resistance, capacitance, time domain reflectometry, etc) that will give you exactly what you are looking for here. "Therefore, we felt it was fair to assume that watering based on moisture level is impossible and that GreenPiThumb is doing the best it possibly can, given certain inexorable limits of the physical world." This just isn't true. The sensor you picked up from Sparkfun should give you decent measurements for a while before degrading gradually depending on your soil chemistry. [0] I ran a consumer soil moisture IOT company for a few years that was sold to Scotts Miracle Gro in 2016.
Oh you may be exactly the person I need to talk to! I'm looking for a soil humidity sensor that is able to permanently sit in my garden and accurately measure soil humidity and soil temperature. Do you have any advice?
Currently I'm using this one: https://www.adafruit.com/product/1298 But after 3-4 waterings, it reads 95-100% consistently, regardless of the temperature. I've tried 2 of their sensors and have had the same problem.
Comments (181) 53 threads
1. Seedlings need blowing around a bit when they pop out or they get all spindly. Cue wiring up two 80mm PC case fans to a chain of a single astable then two monostable 555's to generate an oscillating wind field that goes on for 5 seconds each direction after a delay of 10 minutes. Dried the compost out, blew most of it it away and then killed the plants dead. No tomatoes for me!
2. Watering robot version 1. Similar to above but with a 74hc390 dividing down the clock so it only ran once every day. Used an unprotected MOSFET to control a small water pump from ebay. Back EMF blew the MOSFET up and jammed it as a short. Emptied the entire water reservoir into the pot, down the wall and into the carpet.
3. Watering robot version 2. Same as above with problems fixed. Apart from I ran out of bipolar 555's so I used CMOS ones which are a little more tetchy about noise. Cue last 555 getting jammed in an on state and the same thing happening. This time, the tupperware box with the electronics ended up getting wet and the wall wart exploded.
Edit: meant to say to the OP - nice work. This is the spirit of all things interesting :)
What a lovely way to learn about the world ... by taking copious notes about all of the (surprising) things that don't work.
I'm slightly tempted to do a 4th attempt now inspired by the original poster :)
Continue this thread — 1 reply
(you need to stick a transistor between the 555 and the relay anyway so you might as well just use a MOSFET)
Continue this thread — 3 replies
Ones that worked eventually: http://imgur.com/a/EDdwR - note cable ties :)
We bought some pot plants to keep alive and some cheap soil sensors; they're just two electrodes and you pass a current through the soil, measure the resistance and get a proxy for soil moisture. We left the sensor continuously logging on Friday, came back on Monday to find the plant very unhappy and the probe contacts almost completely corroded. Within a day or two it was a stump, never recovered.
Turns out you're not supposed to leave these things powered on 24/7 and capacitative sensors are a much better solution. TIL you can electrocute plants.
https://en.wikipedia.org/wiki/Time-domain_reflectometer#TDR_...
https://en.wikipedia.org/wiki/Measuring_moisture_content_usi...
Continue this thread — 5 replies
Looks like a cool project.
The mark of the start of any good hobby project is a sense of humor about the time it really takes to accomplish something simple with technology on the first go-round.
Continue this thread — 1 reply
However, Vegetronix makes an ultrasonic soil moisture sensor that does not have electrodes, and thus does not corrode. It is far more complex and expensive ($40) but it's designed as a moisture sensor for sprinkler systems and as such is engineered to be left in the ground.
Edit: Link to Vegetronix sensor: http://www.vegetronix.com/Products/VH400/ . I have used it and it works well, but as it turns out, even this is not sufficient to really automate a garden. You need fertilizer. Hydroponics make dealing with that complication much easier -- until you realize that the fertilizers are caustic / acidic enough that you have to flush the lines with water as well...
In other words, there's a pretty good reason you can't buy a kit off the shelf that will grow plants :)
Actually - I've had great luck with an AeroGarden. A friend got me their Harvest Touch model in the fall, and I successfully grew herbs all winter.
Then this spring I started tomato seedlings in it, and had far-and-away the most successful tomato seedling starts in my decade of trying.
My model is the Harvest Touch - which tells you when to add water and fertilizer on a screen. But there are more advanced models that connect via WiFi: http://www.aerogarden.com/aerogardens/wi-fi-aerogardens/mira...
I don't see much value in the "smart" features, but as far as easy-indoor hydroponics, they really can't be beat.
The one thing that made my scratch my head was your approach to measuring moisture. There are several very reliable methods for measuring soil moisture directly (changes in resistance, capacitance, time domain reflectometry, etc) that will give you exactly what you are looking for here.
"Therefore, we felt it was fair to assume that watering based on moisture level is impossible and that GreenPiThumb is doing the best it possibly can, given certain inexorable limits of the physical world."
This just isn't true. The sensor you picked up from Sparkfun should give you decent measurements for a while before degrading gradually depending on your soil chemistry.
[0] I ran a consumer soil moisture IOT company for a few years that was sold to Scotts Miracle Gro in 2016.
Can you point us in the right direction on this? The wiki doesn't make it clear how it would be used for measuring soil moisture.
I haven't looked at the industry in a couple of years, but I think that many of the high-end commercial sensors use some variation of this technique.
https://en.wikipedia.org/wiki/Measuring_moisture_content_usi...
Currently I'm using this one: https://www.adafruit.com/product/1298
But after 3-4 waterings, it reads 95-100% consistently, regardless of the temperature. I've tried 2 of their sensors and have had the same problem.
All comments shown.
Couldn't load more comments. Check your connection and try again.