Monday, June 6, 2016

DIY Self Sustaining Solar Powered Backyard Hydroponic Garden

I've decided to change the way I write my blogs.  After reading some of them back to myself, I couldn't help but try to make them a little more fun to read, and if that doesn't work; atleast i'm not bored writing it.

Do It Your Goddamn Self Hydroponic Garden

Lester was an average man of slim yet tall stature.  His long curly hair lent strongly to the image of a pot smoker.  When the word hydroponics would leave his lips in conversation, the first thing people would imagine is him growing pot to support his habit.  But Lester just wanted to grow some fucking vegetables, fruits, and maybe some nice herbs he can put in his shitty tomato sauce only he seems to like.  

Lester needed something he could have out of the way, be convenient, and not make the yard a dump only the alcohol enthusiasts at the liquor store down the street would be proud of.  He also needed to avoid long and wordy run on sentences that annoy the living shit out of him.  

So one uneventful day at work he decided to get off his lazy ass and stop by Home Depot and the local hydroponic store for supplies to get started.  

He gently loaded three 4" diameter PVC pipes into his smallish SUV.  Being 10' long he had to figure out how not to let one loose on the highway and impale any unsuspecting passer by's.  He also bought six 4" end caps and hangars.  His list written in chicken scratch looked a little like this, except unreadable by 60% of the population:

  3 - 4" Diameter PVC Pipes 10 foot length

Gradually accelerating the car off of the next exit, he sped towards the local hydroponics store.  When entering this gleaming metropolis of growing shit, he was greeted by the cashier.  After telling of his loose plans for growing stuff he walked out with a couple bags, one of them was a bunch of free samples! 


    1 - Bag of free samples (required!)

Lester decided a good place to mount the 4" diameter pipes of growing, would be between two fence posts.  Like so....


Each pipe was tilted at an angle to allow the solution to travel fairly quickly to allow the roots to absorb nutrient and passively oxygenate the water through agitation.  But in the mind of our main character, he just thought it would irk the shit out of people who can't help but notice they're not perfectly straight across.  

With his rusty hole saw, he drilled the end caps and put in the barbed hose hookups like a champ.  
Depressingly, it turned out Lester didn't pay much attention to the inside lip that runs around the endcap, making it a bitch to get a good seal.  Silicone caulk to the rescue!  His name should've been Jerry Riggs.  



Now it was time to waste an hour searching for a 3.5" hole saw to cut out the basket holes.  After wasting an hour or two, he then went down to the local hardware store and bought one.  


He actually drew a line with his trusty marker so it wouldn't come out looking like a 2 year old made it.  

Instead it came out looking like maybe age 7+.  Perfectly acceptable.  

Wanting to impress his wife and not get divorced because the backyard is starting to look like his workshop; Lester decided to buy a new deckbox.  This new deckbox (on sale of course) would replace the existing one.  Holding such wonderful things such as cushions of the patio set, and random odds and ends that don't belong in it.  The one it replaced would then be retasked to perform a much more important job.  A job no normal deck box has the privilege perform.  

Hold all the ugly shit.  

See that pump, that's going in the deck box!

After having a plan to hide the sins of this project, he went ahead and cut the holes in a 20 gallon tote.  

Lester labored intensely over this tote.  He even made labels that don't stick because the backing on them sucks ass.  He made a drain hole, a PH up/down hole, pump wire and water out hole.  The black plate is for mounting the two peristaltic dosing pumps to pump in PH up and down solution to keep things in balance for the sensitive little baby plants.  The plate got scrapped because it was a douche idea with a much better one around the corner.  

The pump used was:
The PH up/down solution was:
Atlas Scientific PH up/down

And 10' of silicone tubing

The electronics are as follows:

1 - Arduino MEGA 2560
1 - 4.3" TFT LCD Touchscreen
1 - Real Time Clock with CR2032 battery
1 - 4 relay opto isolated switch board
1 - Rain Sensor
1 - 12 V Air Bubbler (for large container)
1 - PH Probe for Arduino (theres an industrial version too that will last longer)
1 - DHT11 Temperature / Humidity Sensor
2 - Waterproof Temperature Probe (for the water bin)
2 - Liquid Level float switch
1 - MDF board, 3/4" Thick
1 - 12 Volt water pump (I suggest getting a water filter too)

1 - Thunderbolt Magnum Solar 45Watt setup that usually goes on sale at HarborFrieght for $125-135.
1 - 12 volt 33 Ah battery

I am currently working on the layout diagrams and schematics.  I will post as soon as I have finished. Please check back regularly for updates! :)





Mounted the legs with 1" 80/20 Extruded Aluminum I had laying around.


Notice the Air line fits perfectly into the T slot in the aluminum.   I also routed the water temperature sensor through the same method.



The other temperature sensor is zip tied to the motor.  I decided I wanted to lower the chance of burning my house down and waiting years for the insurance money.  
I put some thermal grease on it to be sure it was reading somewhat close to the actual temperature.  

The air stones will just hang out at the bottom.  


I drilled some holes for the low water and overflow sensors.  I made sure they were barely large enough to fit them through.  To be sure the silicone gasket and get it's sealing on.  

 The Ph Up and Down bottles caps are press fit into the MDF with a smaller hole for the peristaltic tubing to go through.  I used a threaded shaft with a plate on the bottom to hold them in place.  Theres a nut under the Ph probe board visible in the picture above.  Notice the check valves.  They're going to be moved to the very end.  I want to be sure only what I pump out will be released into the nutrient solution.


I cut 1" square holes for the legs to go through on the lid.  This also allows for clean routing of the air and temperature lines.  The H20 sensor will be used for leak detection.  As far as rain sensing goes for an outdoor setup I'll just poll an online resource once I add Wifi :)




UPDATE: 7/13/2016

Now that there's more traffic to the blog after the friendly Hackaday post; it's really lit a fire under my ass to post more information and refine the design.  As always I appreciate any feedback.

Currently, I'm fixing some software and wiring issues.  My relay control signals aren't making it the 4 shitty inches or so to the relay driver board.  It's like there's a strong 50 ohm pull up on these lines.  I suspect a solder short or ground plane short in the level shifter board I used for the TFT display... I plan on fixing that soon.

In the meanwhile here a pic of the babies I'm getting ready for the main system.

I drilled a crap ton of holes in a 32 gallon tote and filled it with 1/4 strength hydroponic solution. They seem to really like it.  I have a solar bubbler keeping it oxygenated.

More Recent Photos




All settings are adjustable and can be saved to EEPROM so that they are restored on reboot.

SYSTEM TIMING:

Current Settings are as follows for the Water AND Air bubbler

10 Minutes on (allows complete saturation of all pipes with 8 minutes of flow after saturation)
30 Minutes off (allows 4 minutes to drain, and 26 minutes of idle time)

Some people do equal times on and off, however with a solar system I wanted to decrease the duty cycle so that it wouldn't just die in the middle of the night.

SYSTEM FAULTS:
The system is interrupted and a warning is issued to the screen under the following conditions:

-Tank Empty switch active
-Motor temp exceeds 140 deg F
-Water temp exceeds 120 deg F
-PH meter fault (min or max reading)
-PH adjustment unresponsive (4 PH up or down cycles without >0.4 Ph value change)

The air bubbler function will continue despite any fault conditions.  Nobody likes stagnant water.

TDS Sensor (potential)

As a "side" side project I'm hoping to figure out how to interface to this TDS-3 unit to get the dissolved solid reading.  I have two more peristaltic pumps I'll throw on to keep the nutrient concentration level.  No guarantees on this one though.

Time to pull out the oscilloscope.  Maybe there's a serial stream coming out, or even a voltage value that scales to the reading.  The bottom fat pin is the temp sensor.

PRELIMINARY SYSTEM DIAGRAM






Any Bitcoin donations would be greatly appreciated, and help fund any current & future projects.  



32 comments:

  1. It would be interesting to know about your decisions on when, how much, etc. you are watering, UP'ing, DOWN'ing the PH, pumping pressure...
    ...or the source code ;-)

    ReplyDelete
    Replies
    1. I'll be posting all of the source code and connection diagrams once I find some more time to finish and clean them up. These comments really motivate me to put in more time at night getting things to a better state.

      Delete
    2. Awesome job dude!!, grettings from,mexico.

      Delete
  2. I'm not much of a gardener, but this looks like an approach well worth trying. Informative photos. I look forward to the next instalment.

    ReplyDelete
    Replies
    1. Thanks! Feedback of any kind really gets me motivated :)

      Delete
  3. Well done, sir. You are a gentleman and a scholar. Your blog is motivating me to build one of these. I currently have one indoors.

    ReplyDelete
  4. yo man, keep doing, very inspirative ! thx for sharing

    ReplyDelete
  5. Excellent stuff man! I've considered building something similar once i have a house - this is defiantly inspiring.

    ReplyDelete
  6. Do you check the TDS of your water? Are you just using tap water? What sort of additives besides PH up/down?

    ReplyDelete
    Replies
    1. At the moment I'm not checking TDS. However I just added pics of my plans to take care of that. I found a really good deal on a TDS-3 and am hoping to interface it to the microcontroller for automated nutrient control via two more peristaltic pumps. :) Im using tap water, with the ph up/down and 2 part nutrient solution.

      Delete
  7. you mentioned that the system is solar powered? What components are you using to charge the battery and how many batteries are you using?Do you also have a process for watering time and fertilizers

    ReplyDelete
    Replies
    1. The Harbor Freight solar panel special(Thunderbolt Magnum Solar) was on sale again so I went with that for $126. I have it connected to a single 12 volt 12Ah battery. But I have 2 golf cart batteries in the garage ready just in case this setup ends up pulling too much.

      Delete
    2. This comment has been removed by the author.

      Delete
    3. It's actually a 33Ah battery, my mistake

      Delete
  8. Nice work. Needs more swears.

    ReplyDelete
  9. very nice! now I'm motivated!

    ReplyDelete
  10. Hey awesome project, I really would like to make one! I'm a beginner with coding so if you could post the source code that would be awesome! Great blog!!

    ReplyDelete
  11. Your new approach to writing blogs is truly refreshing!
    People can't help but fall asleep reading informative but dull stuff. I should try to do something similar in my blog.

    ReplyDelete
  12. Fire under ass----

    would love to see the code you have written so far for this. this is awesome and really appreciate the work you did on it. soon as you post that code ill make my own.

    ReplyDelete
  13. Any chance this project is still alive?? I'd be really interested to hear a new update and check out the code you set up for this!!!

    ReplyDelete
    Replies
    1. Unfortunately Ive had almost zero time lately. Other life responsibilities and projects have taken over. Its sitting collecting dust right now. Ill see if I can find the initial code I wrote for it, but even that isnt promising since that computer has been dead a year now. :(

      Delete
  14. What is the estimated cost for the whole thing. Trying to budget 8 of them.

    ReplyDelete
  15. Hello Dear,

    The blog was absolutely fantastic! Lot of great information which can be helpful in some or the other way. Keep updating the blog,

    looking forward for more contents.


    solar powered lights - Get the best outdoor solar lights, solar led lights, solar powered outdoor lights,

    solar spot lights, solar flood lights, solar powered spotlight, solar garden spotlights at amazon.com from great selection at Sogrand Industry Inc Store.


    Visit the product page: - https://www.amazon.com/dp/B07C5C63C9

    Sogrand Industry,Inc,15 Years Solar Light Manufacturer Directly Sells on Amazon.

    Best Solar Lights Collection Storefront: https://www.amazon.com/shops/sogrand

    ReplyDelete
  16. Thank you so much for such a well-written article. It’s full of insightful information. Your point of view is the best among many without fail.For certain, It is one of the best blogs in my opinion. solar garden lights

    ReplyDelete
  17. Hello Dear,

    The blog was absolutely fantastic! Lot of great information which can be helpful in some or the other way. Keep updating the blog, looking forward for more contents.


    Solar power spotlights - Get the best deal on solar spotlight, solar spotlights outdoor, solar spot light, solar spot lights outdoor, solar flood lights, solar power spotlights, solar patio lights, solar landscape lights & solar garden spotlights at amazon.com from great selection at Sogrand Industry Inc Store.

    Visit the product page: - https://www.amazon.com/dp/B07C5C63C9

    Sogrand Industry,Inc,15 Years Solar Light Manufacturer Directly Sells on Amazon.

    Best Solar Lights Collection Storefront: - https://www.amazon.com/shops/sogrand

    ReplyDelete
  18. My spouse and I love your blog and find almost all of your post’s to be just what I’m looking for. can you offer guest writers to write content for you? I wouldn’t mind producing a post or elaborating on some the subjects you write concerning here. Again, awesome weblog!

    ReplyDelete
  19. I really love the theme/design of your website. Do you ever run into any browser compatibility problems? A small number of my blog audience have complained about my site not working correctly in Explorer but looks great in Safari. Do you have any ideas to help fix this problem?

    ReplyDelete
  20. Dan appears to be a bitter, angry man with a large chip on his shoulder and a great knack for cuisine. At 66 and arthritic, Maybelline is an achy old lady who simply wants to grow some righteous herb for analgesia. While she can't program her own VCR (which yes, she still uses), she does like your setup with the hanging duct straps. All her power components are plug-in electronics on a 50 foot 14 gague wire 3 prong power cord that scoots across her yard. The actual pipes are hung from a frame made of 1/2" steel electrical pipes that start at 5' above the lawn, since the freaking iguanas eat everything they can reach. They haven't figured out how to climb 1/2 inch pipe yet. Thanks for the interesting blog posts. Please move on to fertilization so I can keep my lil' smokies greened up.

    ReplyDelete
  21. Book vé máy bay đi Mỹ và du xuân ngắm hoa Anh đào trên đất Mỹ – tại sao không? Đây có lẽ là nỗi băn khoăn của nhiều người khi lựa chọn địa điểm du lịch trong mùa xuân tới.

    Mỹ không chỉ nổi tiếng với những cảnh quan thiên nhiên đẹp nhất thế giới mà còn được biết đến là xứ sở của những cây hoa Anh đào rợp trời khoe sắc. Dưới đây sẽ là một số lý do bạn nên lựa chọn du xuân tại Mỹ trong mùa hoa Anh đào.

    Vé máy bay đi Boston: https://vemaybaydimy.org.vn/ve-may-bay-di-boston.html .

    ReplyDelete
  22. Naturehydro is a professional vertical grow system & hydroponic equipment supplier.Aims help you setting up indoor & outdoor farming system.

    ReplyDelete