Shop OBEX P1 Docs P2 Docs Learn Events
Looking for help on my new idea (micro-greenhouse) — Parallax Forums

Looking for help on my new idea (micro-greenhouse)

DougbrowneDougbrowne Posts: 21
edited 2010-03-12 06:02 in Propeller 1
So I came up with a cool idea to make a "micro-tropical-greenhouse" in my room (Since I live in NY *not tropical*) and decided to use a propeller chip to control the climate inside of it. So far I have the following thought up
-Use a florescent growing light to provide the plant with the energy required for photosynthesis
-Use an incandescent light bulb for heating the air within the enclosure
-Use an old vicks humidifier I found laying around to control the humidity within the enclosure.
-Use an HS1101 to retrieve relative humidity information.
-Use DS1620 digital thermometer to retrieve temperature data.
-Use sensiron to collect relavtive humidity and temperature data.
-Use DS1302 RTC IC to keep time to turn on/off the growing light.

When the relative humidity is below optimal for the plant to grow then the humidifier will be turned on and stay on until humidity is back to optimal reading. When the temp is below optimal for the plant to grow the incandescent light will be turned on and stay on until the correct temp is reached. The growing light will be turned on/off at specific times of day in order to simulate the day/night cycle.

I'm pretty new to electronics in general and have never really worked with relays before. Would these relays be good (https://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/relay/List/0/SortField/4/ProductID/657/Default.aspx) to allow the prop to control the 120VAC items (humidifier, the two light bulbs)?

Any suggestions? Criticism? Commentary?

Thanks!

Post Edited (Dougbrowne) : 3/11/2010 2:16:11 PM GMT

Comments

  • P!-RoP!-Ro Posts: 1,189
    edited 2010-03-11 00:05
    That relay is somewhat pricey. I don't know if you have a radio shack near you but they sell some good 5 amp dual output relays for only a dollar. And, if you combine the outputs, it can run 10 amps easily. I'm using one of those right now in the circuit breaker for my computer.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PG
  • JonnyMacJonnyMac Posts: 9,208
    edited 2010-03-11 00:12
    Are setting up to grow pot in your room?

    Since the Propeller already has an I2C port for the EEPROM you might as well take advantage of it and use the I2C variants of the thermometer (DS1621) and clock chips (DS1307).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon McPhalen
    Hollywood, CA
  • KenBashKenBash Posts: 68
    edited 2010-03-11 00:40
    Hi Doug,

    Usually the problem with a micro-greenhouse like this isn't providing heat, but being sure that you can get RID of the heat generated by the lights.

    No matter how efficient your bulbs, you are probably going to have to vent heat out so be sure to provide vents at the top and some sort of a fan. To get enough light
    to actually GROW the plants, you need quite a few florescent bulbs or one of the high intensity Discharge lights. ( lots of heat ) Be sure to check out how many
    foot-candles the plants you intend to grow actually need. ( also the spectrum can be important ) Most people never provide enough for healthy growth.

    The HS1101 is going to run you almost $15.00 and requires 10 volts

    The DS1620 six bucks, you're still ahead of the Sensirion, at $35 but you still have to convert the capacitance signal of the HS1101 and talk to the DS1620
    If this is a one time thing, the Sensiron might be a much faster, convenient overall solution.


    The other thing I would recommend is some dumb fail/safes ( mechanical thermostats ) to backstop the electronics. These environments can be combined with an aquarium
    which will provide all the extra humidity you need as well as some handy heat-mass for temperature stability.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    " Anything worth doing... is worth overdoing. "

    ··············································· ( R.A.H. )
    ····································
  • DougbrowneDougbrowne Posts: 21
    edited 2010-03-11 01:06
    KenBash said...
    Hi Doug,

    The HS1101 is going to run you almost $15.00 and requires 10 volts

    The DS1620 six bucks, you're still ahead of the Sensirion, at $35 but you still have to convert the capacitance signal of the HS1101 and talk to the DS1620
    If this is a one time thing, the Sensiron might be a much faster, convenient overall solution.

    In the parallax store, the HS1101 is only a mere $4.99 and runs on 5-10VDC. But still, it would be a bit of an annoyance to have to put a 5v regulator on the board along with the 3.3v one. But at the same time, I'd rather keep the cost as low as possible and don't like spending more then $10 on a component that is going to be permanently affixed through soldering (If I'm not soldering it, at least I can use it for a number of different projects for testing and toying with). As for getting the HS1101 the 5v that it wants, could I just run a line from the 5v reg out into the connection of the sensor (same place where prop pin is connected) with a resistor to compensate from the 3.3 already coming out from the prop? Or?
    JonnyMac said...
    Are setting up to grow pot in your room?

    lol.gif Nope, was thinking something more along the lines of a dwarf citrus tree or a small banana plant.
    KenBash said...
    Usually the problem with a micro-greenhouse like this isn't providing heat, but being sure that you can get RID of the heat generated by the lights.
    Not sure exactly what you mean. As long as I turn off the source of heat when the temperature is just right, it won't get any hotter - only colder if anything and if it does, the heating light will simply turn back on.

    Post Edited (Dougbrowne) : 3/11/2010 1:14:18 AM GMT
  • ElectricAyeElectricAye Posts: 4,561
    edited 2010-03-11 01:12
    You'll probably have to consider how the different cause and effects are interdependent. For example, what happens when your tank is already too warm but the humidity has gone too low? Do you turn on the humidifier, which might then warm things up even more? What happens when it's nighty-night time for your plants, but it's too cold and so while you're turning off the full spectrum lights here comes the incandescent to keep things warm?

    See, running a planet, now matter how small, gets kinda complex. You'll just have to think over how your software will make those kind of decisions.
  • DougbrowneDougbrowne Posts: 21
    edited 2010-03-11 01:16
    ElectricAye said...
    You'll probably have to consider how the different cause and effects are interdependent. For example, what happens when your tank is already too warm but the humidity has gone too low? Do you turn on the humidifier, which might then warm things up even more? What happens when it's nighty-night time for your plants, but it's too cold and so while you're turning off the full spectrum lights here comes the incandescent to keep things warm?

    See, running a planet, now matter how small, gets kinda complex. You'll just have to think over how your software will make those kind of decisions.

    Yes, that is very true... I was thinking about placing the incandescent in a way that only the heat will dissipate into the green house and not much of the light. So this way if it's too cold at night, I could just have the incandescent on and the full spectrum off. As for when the humidity is too low but it's already too warm.. then.. Hmm. Haven't really thought much about that - I suppose i will implement a fan to dissipate the heat as Ken suggested.

    Hmm thinking about just going with the sensiron now, instead of the HS1101 + the digital thermometer.

    Also, what material should I use for the enclosure? Glass? Plexiglass? A simple plastic film?

    Post Edited (Dougbrowne) : 3/11/2010 2:02:53 AM GMT
  • ElectricAyeElectricAye Posts: 4,561
    edited 2010-03-11 02:18
    Of course much depends on how "micro" this greenhouse will be. You might want to think about what sort of gradients will build up, especially if you don't use a fan. You could end up with plants being hot in the leaf and cold in the root. Some people have used reflective mylar, etc. for these kinds of things but make sure your thermally and electrically hot elements don't get too close to it.
  • localrogerlocalroger Posts: 3,452
    edited 2010-03-11 02:51
    Well even if you're not growing teh evil debbil weed when you vent the heat from your mini citrus tree farm make sure you don't vent it straight outdoors because when the friendly police ossifers patrol by with the FLIR they aren't supposed to be using to scan your house they will think to themselves that they have found themselves an evil debbil weed grower and they might be tempted to do something totally illegal but not very risky to themselves such as inventing an informant that doesn't really exist to get a search warrant they really shouldn't have and next thing you know, guys in black suits and masks are bashing down your door and pointing shotguns in your face.

    So what you do is you vent the heat under your house if it's got a conventional foundation or into the attic otherwise, so the hot air has room to dissipate and mix before becoming visible to the FLIR. Or so I've been advised. Really, I've also been advised that as cool as indoor gardening can be, even if you just want to grow green peppers it's a bad idea this time of millennium because of the law enforcement craziness.
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2010-03-11 03:07
    Sounds like a neat project Doug. I enjoy growing carnivorous plants which comes from a variety of climates and have consider a similar project such as yours. However I haven't taken the project on yet.

    A couple thoughts I had while reading your post:
    • Checkout the Programming and Customizing the Propeller book. There is a chapter related to studying HVAC systems for houses. They built a small model and had some ideas on how to heat/cool the model and to build vents that were servo controlled. I imagine your green house could use some similar concepts and ideas from their model home.
    • Go with the Sensiron because it is a great sensor, accurate and gives both temp and humidity.
    • Certainly review what the lighting requirements are for your plants. I know various plants require various lights. For a while I was following a company that claimed to have good LED growing lights. Be careful though because there are also cheap knock-offs. The company I was following, I can't remember the name, but was in FL and had a university or two use their growing LED lamps in research projects.
    • For a more advance project, you could rig up your controller with ethernet and have the controller get the latest weather conditions from some tropical place and then mimic those conditions in your green house. For instance, if you lived in Michigan USA you could have your green house setup to mimic the weather conditions from a city in southern Florida.
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Timothy D. Swieter, E.I.
    www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
    www.tdswieter.com
  • ElectricAyeElectricAye Posts: 4,561
    edited 2010-03-11 03:26
    localroger said...
    ....

    So what you do is you vent the heat under your house if it's got a conventional foundation or into the attic otherwise, so the hot air has room to dissipate and mix before becoming visible to the FLIR. Or so I've been advised. Really, I've also been advised that as cool as indoor gardening can be, even if you just want to grow green peppers it's a bad idea this time of millennium because of the law enforcement craziness.

    Wherever you vent to, just consider what will happen to the humidity when it gets there: you don't want condensation occurring somewhere in your building and growing mold along with your iguana. And low cal Roger is right: you don't want to give the Man an excuse for playing cowboy. Sometimes, after they've stepped on your neck in the mud and made a mess of your house, they "find" things stuck to the bottom of their jackboots to justify their hyperactivity. I can't imagine the stress they must be under when they kick down a door, scream through their gas mask "Mggwwuh hmmgghhg hgmm!" and sweep a living room with their over-caffeinated fingers on their testosterone-pumped shot guns. Accidents happen. Do be prudent. freaked.gif
  • DougbrowneDougbrowne Posts: 21
    edited 2010-03-11 14:05
    Timothy D. Swieter said...
    Sounds like a neat project Doug. I enjoy growing carnivorous plants which comes from a variety of climates and have consider a similar project such as yours. However I haven't taken the project on yet.

    A couple thoughts I had while reading your post:
    • Checkout the Programming and Customizing the Propeller book. There is a chapter related to studying HVAC systems for houses. They built a small model and had some ideas on how to heat/cool the model and to build vents that were servo controlled. I imagine your green house could use some similar concepts and ideas from their model home.
    • Go with the Sensiron because it is a great sensor, accurate and gives both temp and humidity.
    • Certainly review what the lighting requirements are for your plants. I know various plants require various lights. For a while I was following a company that claimed to have good LED growing lights. Be careful though because there are also cheap knock-offs. The company I was following, I can't remember the name, but was in FL and had a university or two use their growing LED lamps in research projects.
    • For a more advance project, you could rig up your controller with ethernet and have the controller get the latest weather conditions from some tropical place and then mimic those conditions in your green house. For instance, if you lived in Michigan USA you could have your green house setup to mimic the weather conditions from a city in southern Florida.

    Thanks for those ideas/suggestions, they are really appriciated! I really like the idea of simulating a certain area's climate, the only thing I'm worried about is getting an rj45 magjack onto a per board to interface with an enc(forgot the namme of the chip). I could always just solder leads to the pins and then onto the perfboard, but that's not very pretty. anybody have ideas on how to do this?

    The servos are also a good idea to control a vent or two.
  • Chip CoxChip Cox Posts: 73
    edited 2010-03-11 15:49
    Wow, who thought gardening would get such a response <grin>.· I'm working on a similar project right now.· Although in my case temp isn't an issue.· I've started a small hydroponic garden in our bath tub ( we never use it ( only the separate shower )).· I'm more interested in timers.· I'm using the DS1302 to keep time and a RC4 board from efxtek to handle 4 120v relays.· But Parallax has a new relay board that should work well too.· I like the idea of the 120v being on a different board from my propeller ( paranoid ).· Then I'm using a ping sensor to determine water depth to keep the water at the correct depth.· It sets off an alarm if the water gets to low.· In a future incarnation of this, I'll have it control a valve to fill the top the tank back off if needed.· I'm also going to interface with a wifly to provide a web page to monitor and set configuration ( timer ) settings ( I have th wifly, but haven't had a chance to play with it yet ).· The relay timers are really the fun part around this.· I have to run my air pump 24x7.· The lights need to be on for 8 to 12 hours a day.· The water pump needs to be on for about 5 minutes out of every hour 24x7 and a fan needs to be running around 30 minutes every 3 or 4 hours but only between 8:00 am and 10:00 PM.· It's been a fun project and the people out here are great in helping with it.· Good luck with your trees.·

    I've attached a picture of the bath tub and of the·project ( no enclosure yet ) just so you know it's not weed, it's butter beans.
    2048 x 1536 - 611K
    2048 x 1536 - 736K
  • Cole LoganCole Logan Posts: 196
    edited 2010-03-11 16:51
    This is a really cool project. And gives me all sort of ideas for when I start raising bearded Dragons again.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    1986 Chevy EL Camino·· No prop yet

    1984 Suzukie GS1100GK No prop yet
  • KMyersKMyers Posts: 433
    edited 2010-03-11 18:42
    Great project!! Reminds me of my childhood with Dad and we made a growing station with grow bulbs and incadescent lights. Later on in my hippie days a tererium. No pot growing guys even though that was my era! Biggest issue with both was the humidity and reducing it. This was all before micros so it was a manuel system. We also used aluminum trays which we could heat from underneath with bulbs.

    We did this in Ohio all winter and had vegies and a pineapple and numerous tropical plants, bonsai trees. Good luck and keep us posted!



    Ken
  • JonnyMacJonnyMac Posts: 9,208
    edited 2010-03-11 19:21
    @Doug

    Sorry about the pot joke -- I live in Los Angeles and "medical marijuana" is everywhere.

    For your first prototype you might want to use the Propeller Platform that GadgetGangster.com sells (okay, I designed it for my N&V column, but have no financial stake in G/G sales). It will give you a Propeller board with a beefy 5v supply. Nick has a prototyping board as well -- you could drop your clock, sensor, and other IO on this -- the whole works would git into a package smaller than a PB&J sandwich.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon McPhalen
    Hollywood, CA
  • DougbrowneDougbrowne Posts: 21
    edited 2010-03-11 20:30
    JonnyMac said...
    @Doug

    Sorry about the pot joke -- I live in Los Angeles and "medical marijuana" is everywhere.

    For your first prototype you might want to use the Propeller Platform that GadgetGangster.com sells (okay, I designed it for my N&V column, but have no financial stake in G/G sales). It will give you a Propeller board with a beefy 5v supply. Nick has a prototyping board as well -- you could drop your clock, sensor, and other IO on this -- the whole works would git into a package smaller than a PB&J sandwich.

    Haha no problem at all with the joke - I have a sense of humor, not to worry xD

    About the propeller platform - Thanks for the suggestion but I'd save more money just doing it from scratch on a perfboard because i already have a lot of the parts needed laying around (DIP Propeller, Caps, EEPROM, vregs, etc) with the exception of a few (I don't think I have an extra xtal or 3.3v reg (I do have 5v) )

    And to everybody who has replied, thanks for your feedback and cool project Chip.

    Back on topic:
    I've decided to go with the sensiron for humid/temp and also would like to implement an Ethernet interface so I can grab some data off the internet with it. Also thinking about putting in a small serial LCD to display status/debug info. Hmm, this is starting to become more expensive than I thought it wow lol.gif
  • DougbrowneDougbrowne Posts: 21
    edited 2010-03-11 23:05
    Sorry to double post but I have a question and if I just edited my post about my thread would "disappear" soon enough

    But anyway, I was just wondering. If I were to use these relays to control the 120VAC devices http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/relay/List/0/SortField/4/ProductID/657/Default.aspx could I just hook them directly up to the I/O pins on the propeller with a resistor (56Ohm?) in series to bring down the prop i/o pin's 3.3V to the specified 1.2V for the relay? So I would simply be able to set a pin output high and the relay would turn the device on?

    Post Edited (Dougbrowne) : 3/11/2010 11:25:49 PM GMT
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2010-03-11 23:32
    Chip - cool project and very applicable to what Doug is trying to do.

    Doug - For a project I recommend planning it out in steps. Sure, there are options to add such as a serial display or Ethernet, but plan for those and add those in once you get the core project moving. ALso you cna plan ahead and then as funds allow add those elements. Regarding the solid state relay, I don't think you need any resistor included in the circuit. I could be wrong though. I would study the data sheet for the part a little further and also take a look at the Digital I/O Kit that Parallax sells that uses this relay. Here is the schematic for that kit: www.parallax.com/Portals/0/Downloads/docs/prod/boards/DigIOBrdSchem.pdf

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Timothy D. Swieter, E.I.
    www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
    www.tdswieter.com
  • DougbrowneDougbrowne Posts: 21
    edited 2010-03-12 00:07
    Timothy D. Swieter said...

    Regarding the solid state relay, I don't think you need any resistor included in the circuit. I could be wrong though. I would study the data sheet for the part a little further and also take a look at the Digital I/O Kit that Parallax sells that uses this relay. Here is the schematic for that kit: www.parallax.com/Portals/0/Downloads/docs/prod/boards/DigIOBrdSchem.pdf

    The reason why I thought a resistor would be required was because on parallax's website (on the page for the SS Relay) it says "Control Voltage: 1.2V @ 20mA (50mA MAX)". Then when looking at the datasheet where that spec is listed it said 1.2V normal, 1.4V Max. So since the props I/Os run on 3.3V (right?) I would need to bump it would to around 1.2 to not hurt the relay. I could be wrong, I don't have much experience with this stuff lol.gif. Can anybody clarify as to weather I would need to use a resistor to operate the relay with the prop's I/O pins?

    Post Edited (Dougbrowne) : 3/12/2010 12:20:07 AM GMT
  • localrogerlocalroger Posts: 3,452
    edited 2010-03-12 01:24
    Doug -- for that device you do indeed need a current limiting resistor. This is unusual because most industrial SSR's (such as OPTO-22 modules) have internal current limiters, but this device is also unusually cheap. By making you supply your own resistor they actually give you more flexibility as to how you can use it, and reduce the price.
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2010-03-12 05:42
    Doug - good investigation. I would say, yes, it appears you need the resistor. My rushing to respond had bitten me again. I should have done the studying that you did.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Timothy D. Swieter, E.I.
    www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
    www.tdswieter.com
  • Jesse DruehlJesse Druehl Posts: 25
    edited 2010-03-12 06:02
    Awesome project, reminds me of "those days". We used to call this a "Phototron"TM. The company that made them devised a thermodynamic way of solving the problem.

    Take a look at electronics surplus houses. I have found some neat solid state relays before, sometimes the specs can be fudged, some even give a proportional AC output depending on the low voltage DC input. Many ideas here.

    With command from a Prop, I'm sure this can grow anything, even tomatoes.

    - Jesse

    Post Edited (Jesse Druehl) : 3/12/2010 6:12:34 AM GMT
Sign In or Register to comment.