Home | Community | Message Board


This site includes paid links. Please support our sponsors.


Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Shop: PhytoExtractum Maeng Da Thai Kratom Leaf Powder   Bridgetown Botanicals Bridgetown Botanicals   Mushroom-Hut Substrate Mix   North Spore North Spore Mushroom Grow Kits & Cultivation Supplies   Original Sensible Seeds Bulk Cannabis Seeds

Jump to first unread post Pages: 1 | 2 | Next >  [ show all ]
Some of these posts are very old and might contain outdated information. You may wish to search for newer posts instead.
Invisiblegray
Folding@home Statistics
Registered: 03/07/15
Posts: 127
Raspberry Pi Controlled Mini Greenhouse * 3
    #21835569 - 06/21/15 05:56 AM (8 years, 7 months ago)

I've been dissatisfied with my automated greenhouse build.  I've been using an off-the-shelf humidity/temperature controller, one of these:



But I've found it really sucks for my needs.  It's far too slow to respond to changes in humidity.  It's probably great for a big grow space, but in my little 4 shelf greenhouse the humidity can change really quickly when the fans start to exchange air and everything just either dries up or floods.

So, I decided to build a custom Raspberry Pi controller.

The Plan
Use a simple temperature/humidity sensor connected to the Raspberry Pi and have the Pi turn an ultrasonic humidifier on and off at the appropriate times to keep the humidity within a given range.

The goal being to have humidity maintained around the correct range and graphs of temperature/humidity over 1 hour, 24 hours and 7 days so I could keep an eye on what was happening.

The Main Parts
  • A Raspberry Pi (£30)
  • An AM2302 temperature/humidity sensor (£2)
  • A solid state 240 VAC relay (£8)
  • A plastic project box (£4)


The Method
Wired everything up, with the AM2302 on a GPIO input pin on the Pi and the relay switched by a GPIO output pin.

Wrote some custom software to do the monitoring and control the output and generate the graphs.

The Results
It's been working great.  Humidity is maintained at the desired level and the sensor is easily fast enough to detect rapid changes in environment.

Here's a couple of graphs, it's set to aim for 95-100% humidity:



The black bars at the bottom of the graph above show when the humidifier turns on.  The sudden dips in humidity are when the greehhouse fans kick in.



Here's the box I built with the relay:



Here's what's inside:



Sharing
If you have a Raspberry Pi with Raspbian installed and an AM2302 sensor  and a relay connected up, you can install all the required software easily.  Software uses the Adafruit AM2302 library and rrdtool for graphs.

From the Pi command line:

Code:

git clone https://github.com/grking/humidity.git
cd humidity
sudo ./setup



Then simply run the controller with:

Code:

sudo ./control.py <input pin number> <output pin number>



Software project page is here.


Edited by gray (06/21/15 02:48 PM)


Extras: Filter Print Post Top
Invisiblenatedawgnow
Rocky mountain hood rat
 User Gallery


Registered: 02/09/15
Posts: 8,939
Loc: ation
Trusted Cultivator
Re: Raspberry Pi Controlled Mini Greenhouse [Re: gray]
    #21837073 - 06/21/15 01:45 PM (8 years, 7 months ago)

Dude if i showed this thread to my roommate, he would be pissed. He keeps saying he wants to do this exact thing with his Pi and he'd be upset you did it first.


--------------------


Extras: Filter Print Post Top
OfflinePsilicon
Really Nice Guy


Registered: 08/26/12
Posts: 7,057
Last seen: 3 years, 1 month
Re: Raspberry Pi Controlled Mini Greenhouse [Re: natedawgnow]
    #21837111 - 06/21/15 01:54 PM (8 years, 7 months ago)

:popcorn:  I have a lot of respect for people who can make automated chambers work for them.  I'll be watching this.  :smile:


--------------------
Agar - what, why and how?  Everything a beginner needs to know.
Oat Prep Tek
Bored?  Please take one of my experiments off my hands.


Extras: Filter Print Post Top
InvisibleSrirachi
Mold Hand
 User Gallery


Registered: 10/18/05
Posts: 11,411
Loc: Fare Thee Well.
Re: Raspberry Pi Controlled Mini Greenhouse [Re: gray]
    #21837127 - 06/21/15 01:57 PM (8 years, 7 months ago)

Very nice work man! Thanks for sharing the code. :thumbup:


Extras: Filter Print Post Top
Invisiblelusus
Stranger

Registered: 04/06/10
Posts: 229
Loc: EUROPA
Re: Raspberry Pi Controlled Mini Greenhouse [Re: Srirachi]
    #21837313 - 06/21/15 02:30 PM (8 years, 7 months ago)

Why couldn't you have posted this yesterday?
I ordered one of those humidistats only yesterday! Is not the exact same model so it might actually perform but its a generic made in china type of thing. Fingers crossed...
Very neat job with the PI :smile:


--------------------


Extras: Filter Print Post Top
Invisiblewildernessjunkie
Reshitivest
I'm a teapot

Registered: 06/13/10
Posts: 8,118
Loc: HTTP 404 Not Found
Trusted Cultivator
Re: Raspberry Pi Controlled Mini Greenhouse [Re: lusus]
    #21837431 - 06/21/15 02:52 PM (8 years, 7 months ago)

:congrats: I love this kinda shit. I really want to see this work out.


Edited by wildernessjunkie (06/21/15 04:45 PM)


Extras: Filter Print Post Top
OfflineAero
Orea


Registered: 11/01/13
Posts: 2,253
Last seen: 1 year, 2 months
Re: Raspberry Pi Controlled Mini Greenhouse [Re: wildernessjunkie]
    #21837706 - 06/21/15 04:00 PM (8 years, 7 months ago)

:magicfingers:


--------------------
SPREAD THE SPORES



Extras: Filter Print Post Top
Offlinethoraxx
Wizard
Male User Gallery

Registered: 12/27/13
Posts: 580
Loc: Bavaria
Last seen: 4 years, 10 months
Re: Raspberry Pi Controlled Mini Greenhouse [Re: Aero]
    #21837795 - 06/21/15 04:22 PM (8 years, 7 months ago)

I wanted to do something like that for some time now, but instead of digital hygrometer connect the humidifier to a timer

I have a very similar looking ultrasonic, its got a fan built in and the idea was to connect the fan to an external power source controlled by a raspi
then alternate between ultrasonic misting and FAE with just the fan running and dial in the optimal timetable with a decent analog hygrometer

I still have a few weeks to go until my next grow, still busy isolating on agar, if i get this working until then ill make a thread


Extras: Filter Print Post Top
Invisiblenatedawgnow
Rocky mountain hood rat
 User Gallery


Registered: 02/09/15
Posts: 8,939
Loc: ation
Trusted Cultivator
Re: Raspberry Pi Controlled Mini Greenhouse [Re: gray]
    #21837812 - 06/21/15 04:25 PM (8 years, 7 months ago)

Definitely keep us updated! Awesome job, man!


--------------------


Extras: Filter Print Post Top
OfflineRyeJar
StrangerDanger


Registered: 04/16/15
Posts: 523
Last seen: 9 months, 30 days
Re: Raspberry Pi Controlled Mini Greenhouse [Re: natedawgnow]
    #21838093 - 06/21/15 05:34 PM (8 years, 7 months ago)

Yay!  This exact thing has been on my mind for some time now.  Thanks so much.  +5


Extras: Filter Print Post Top
Offlineshroomfiend1936
Stranger
 User Gallery
Registered: 02/05/15
Posts: 17
Last seen: 4 years, 11 months
Re: Raspberry Pi Controlled Mini Greenhouse [Re: RyeJar]
    #21840228 - 06/22/15 12:50 AM (8 years, 7 months ago)

Brilliant write-up.

I had (still have) the same humidity controller but gave up on it. Like you, my GH was constantly too dry or flooding. Nightmare. I bought a Sestos B2E short interval timer from Amazon and then, using a reliable analogue hygrometer, I noted the RH over a period of 12 hours. Finally dialled it in at 3'20" every 15'. RH is now rock solid at 96-99%, dropping a tiny bit every two hours when the air gets exchanged by a big fan.

I'm a much happier chap now. Those IC sensors don't seem to like being kept in 95-99% RH.

PS: My ultrasonic is very similar to yours. I keep it inside the GH but I've been wondering about piping it in. Do you find it works well? And did you write up your tek for connecting the hose? I'll search your post history.


Extras: Filter Print Post Top
Offlineshroomfiend1936
Stranger
 User Gallery
Registered: 02/05/15
Posts: 17
Last seen: 4 years, 11 months
Re: Raspberry Pi Controlled Mini Greenhouse [Re: thoraxx]
    #21840451 - 06/22/15 02:24 AM (8 years, 7 months ago)

That's pretty much exactly what I've done, except I bought a short-cycle timer from Amazon. See my post further down. I'm so much happier now I'm not stressing over the RH and checking the fekkin GH every ten minutes...

The thing is, you see the digital hygrometer/switch and think "Ooh, science". The problem is the sensors aren't reliable in the tough conditions of a GH.

Short cycle timers FTW!


Extras: Filter Print Post Top
Invisiblegray
Folding@home Statistics
Registered: 03/07/15
Posts: 127
Re: Raspberry Pi Controlled Mini Greenhouse [Re: shroomfiend1936]
    #21841248 - 06/22/15 10:49 AM (8 years, 7 months ago)

Thanks guys for the many kind comments.

I have short cycle timers too, but for various reasons I couldn't get on with them.  I do currently use timers for the fans. 

I'll certainly keep an eye on sensor stability.  Seems fine so far, but there's no test like running it for months, so we'll see.

Quote:

shroomfiend1936 said:
My ultrasonic is very similar to yours. I keep it inside the GH but I've been wondering about piping it in. Do you find it works well? And did you write up your tek for connecting the hose? I'll search your post history.




I did reference it here.  The black pipe you see in the photo is really all there is.  Just a short bend from the humidifier directly into the greenhouse, right at the top.  It's been working great, although I do need a small container inside the GH to catch the drips from the end of the inlet pipe.


Extras: Filter Print Post Top
OfflineYaMoonSun
The Double Standard


Registered: 10/23/14
Posts: 3,967
Loc: NY
Last seen: 5 months, 11 days
Re: Raspberry Pi Controlled Mini Greenhouse [Re: gray]
    #21841271 - 06/22/15 10:57 AM (8 years, 7 months ago)

:kaneclap:
I love Raspberry Pi; Cool beans, man :cheers:


Extras: Filter Print Post Top
Invisiblegray
Folding@home Statistics
Registered: 03/07/15
Posts: 127
Re: Raspberry Pi Controlled Mini Greenhouse [Re: YaMoonSun]
    #21842074 - 06/22/15 03:31 PM (8 years, 7 months ago)

For those interested in general sensor stability of the AM2302, there's a pretty comprehensive study conducted over the course of 1 year right here.

Specific details of solid state relay are over here.

I should probably mention the software prevents the relay from switching more rapidly than once every 60 seconds.  I had concerns that an edge case could trigger high frequency switching and kill my humidifier.



Edited by gray (06/22/15 03:41 PM)


Extras: Filter Print Post Top
Offlineshroomfiend1936
Stranger
 User Gallery
Registered: 02/05/15
Posts: 17
Last seen: 4 years, 11 months
Re: Raspberry Pi Controlled Mini Greenhouse [Re: gray]
    #21844123 - 06/22/15 11:44 PM (8 years, 7 months ago)

Wow, ta v. much for that.


Extras: Filter Print Post Top
OfflineMycoRunner
Stranger


Registered: 09/23/09
Posts: 135
Last seen: 9 months, 11 days
Re: Raspberry Pi Controlled Mini Greenhouse [Re: shroomfiend1936]
    #21845213 - 06/23/15 09:11 AM (8 years, 7 months ago)

I've been thinking about using my Pi for automation too, but until now I was too intimidated to try it. Can the raspberry pi switch the relay by itself from the GPIO? And what is the circuit on the relay's input? Nice work!


--------------------
:nyan:


Extras: Filter Print Post Top
Invisible36fuckin5
Alchemycologist


Registered: 08/11/03
Posts: 12,079
Loc: Diving into Mystical Territori...
Trusted Cultivator
Re: Raspberry Pi Controlled Mini Greenhouse [Re: MycoRunner]
    #21846073 - 06/23/15 01:31 PM (8 years, 7 months ago)

You don't want your RH that high all the time. Dropping to 70-80% once in a while is a good thing, as it lets evaporation happen, which starts pinning.


--------------------
Redd Foxx said:
If you're offended I don't give a shit and don't come see me no more.

Pat The Bunny said:
A punk rock song won't ever change the world, but I can tell you about a couple that changed me.

bodhisatta said:
i recommend common sense and figuring it out.

These are the TEKs I use. They're all as cheap and easy as possible, just like your mom.


Extras: Filter Print Post Top
Offlinethe_other
Registered: 06/08/15
Posts: 6
Last seen: 8 years, 4 months
Re: Raspberry Pi Controlled Mini Greenhouse [Re: 36fuckin5]
    #21846181 - 06/23/15 01:56 PM (8 years, 7 months ago)

Quote:

36fuckin5 said:
You don't want your RH that high all the time. Dropping to 70-80% once in a while is a good thing, as it lets evaporation happen, which starts pinning.




So would you only want this drop during the first week after starting fruiting and then a more consistently high RH? ...or it's beneficial to have these dips throughout the whole flush?


--------------------

Whatever we have words for, that we have already got beyond.
- Nietzsche -


Extras: Filter Print Post Top
Invisible36fuckin5
Alchemycologist


Registered: 08/11/03
Posts: 12,079
Loc: Diving into Mystical Territori...
Trusted Cultivator
Re: Raspberry Pi Controlled Mini Greenhouse [Re: the_other]
    #21846204 - 06/23/15 02:07 PM (8 years, 7 months ago)

Through the whole flush.


--------------------
Redd Foxx said:
If you're offended I don't give a shit and don't come see me no more.

Pat The Bunny said:
A punk rock song won't ever change the world, but I can tell you about a couple that changed me.

bodhisatta said:
i recommend common sense and figuring it out.

These are the TEKs I use. They're all as cheap and easy as possible, just like your mom.


Extras: Filter Print Post Top
Jump to top Pages: 1 | 2 | Next >  [ show all ]

Shop: PhytoExtractum Maeng Da Thai Kratom Leaf Powder   Bridgetown Botanicals Bridgetown Botanicals   Mushroom-Hut Substrate Mix   North Spore North Spore Mushroom Grow Kits & Cultivation Supplies   Original Sensible Seeds Bulk Cannabis Seeds


Similar ThreadsPosterViewsRepliesLast post
* mini greenhouse door shakta 1,717 8 08/11/03 01:37 PM
by shakta
* 4-tier mini-greenhouse help! bmwX5 3,037 12 07/23/17 04:20 PM
by LotKid
* 3 Tier Mini Greenhouse greatlakes 1,432 7 08/13/05 12:37 AM
by HippieChick
* Just a little praise for the mini greenhouse 003 1,371 2 02/04/04 03:02 PM
by THEBOSS
* Mini greenhouse on ebay tullycraft 1,153 5 01/26/02 12:05 PM
by Anonymous
* A question for all you Mini-greenhouse growers! 003 1,406 8 08/15/20 03:18 AM
by King0fthajuice
* ALL 4 TIER MINI GREENHOUSE USERS: How did you close off the bottom? lemunhed 2,109 10 06/30/05 07:38 AM
by lemunhed
* CONTROLING PH WITH ULTRASONIC HUMIDIFIERS samus1975 283 0 06/26/05 04:08 PM
by samus1975

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: Shroomism, george castanza, RogerRabbit, veggie, mushboy, fahtster, LogicaL Chaos, 13shrooms, Stipe-n Cap, Pastywhyte, bodhisatta, Tormato, Land Trout, A.k.a
5,715 topic views. 24 members, 233 guests and 43 web crawlers are browsing this forum.
[ Show Images Only | Sort by Score | Print Topic ]
Search this thread:

Copyright 1997-2024 Mind Media. Some rights reserved.

Generated in 0.023 seconds spending 0.006 seconds on 14 queries.