26 votes

My indoor garden setup

A few people have expressed interest in my indoor, semi-automated growing setup so here's the lowdown.. In a corner of my workshop is a cupboard with a footprint of 1.6x1.2m, 2.2m high. This is insulated with a mixture of glasswool, foam board and expanding foam (depending on what I could install where), and lined with diamond pattern aluminumised mylar (the diamond pattern provides diffuse reflection to avoid hotspots).

Inside the cupboard I have 750W of full-spectrum LED lighting, a 500W oil-filled radiator, and a small fan to keep air moving around. There's a vent which pulls air from the outside and a extractor fan which also vents outside. Being able to pull cool air from the outside (even in summer) is extremely useful as the lights can put out quite a lot of heat.

My main growsystem is an Amazon low-pressure aeroponics system, and I've also got some airpots to do some soil-based growing in. Aero on the right, pots on the left. If you're not familiar with aeroponics, it's a system where the plants roots hang in open space and nutrient-rich water is sprayed or misted over them. High-pressure aero uses mist and low pressure uses sprayers. High pressure aero is currently one of the best known ways to maximise plant growth but low-pressure is pretty good too and you don't need anywhere near as much gear like pressure vessels and solenoid and so on. I just have an aquarium pump which drives the sprayers. In my experience aero is considerably more efficient than soil, non-soil media or other hydroponics - but on the other hand it's very twitchy. If your nutrient balance is off or your pH is wrong or worse, you pump fails - things can go wrong very quickly.

The airpots are totally new to me. People say they're good but I have no idea. I have a mixture of compost, perlite and coco coir to go into them so we'll see how that works out. I'm going to use organic nutrients only on them, I have some seaweed derived stuff which should be good throughout the entire grow process.

So that's the hardware, now on to the fun bit - the automation...

On top of the cabinet is a board hosting a Raspberry Pi model A - these days I'd use a Zero W but they didn't exist when I built this. In it's mostly-bare state the board looks like this. Quick explanation - the red board is mains-rated relays which let me switch the connections above it on and off using the Pi. This is where the lights, fan and heater are wired to. The small junction block left of the relays is connected to mains.

The block up and left of the Pi is 5V, which drives the Pi, the relay control electronics and provides power to the junction block on the right. There are various sensors wired in to that block and connected back to the Pi.

Wired up on my bench for testing it looks like this, and in situ it looks like this (this was on a previous iteration of the cupboard but it's basically the same now). The orange cables on the left are lights, fan and heater. The black cables top are the sensors.

Temperature is monitored using five DS18B20 sensors, which are cheap and reasonably accurate serial devices so you can run a whole bunch of them off a single pin on the pi. I monitor my water temperature, the temperature at the plant stem, at the wall, inside my workshop (but outside the cupboard) and outside temperature. The wall/stem temperature is the important one, that determines whether heating or cooling is engaged. I monitor the exterior and interior temperatures to know how effective my insulation is being. If water temperature gets too high I might add an agent which protects against microbial infections that like warmer water.

I do have a DHT22 humidity sensor but they're hella flaky and it's currently not working. I will replace it at some point but past experience suggests humidity is high whatever I do.

The Pi has a python script which runs every five minutes. It reads all the sensors, decides what (if anything) to do, then logs everything in a sqlite database. If it's 'night' (which is actually day outside, for temperature management reasons) it turns the lights off, if it's 'day' it turns them on. If it's cold it turns the heater on, if it's hot the fan. There's a bit of smartness where it actually aims for a midpoint of temperature because otherwise it's always aiming for highest temperature then immediately cooling again, then heating and so on - a stable temperature is better for the plants. At 'night' I tend to run the fan to drop the temperature: plants often like it cooler during darkness, get some fresh air in and attempt to lower the humidity a bit.

There is a web interface which lets me see what's going on - current temperature and status, plus some lovely lovely charts (who doesn't love a nice chart?). I can also turn the lights out from here in case I need to go in an do some maintenance for anything. 750W of LED light is painfully bright, it's much more comfortable (and safer!) to turn them off while topping up reservoirs or changing water or whatever.

It would be relatively trivial to add sensors for moisture or pH to add an auto-watering or auto-adjusting nutrient systems, but I haven't felt the need to do that yet.

Happy to do my best to answer any questions anyone has.

8 comments

  1. [2]
    aphoenix
    Link
    This is an amazing write up - thanks! Do you have any pictures of the whole thing? What does it look like with stuff growing in it? What sort of yield do you get? What are you growing?

    This is an amazing write up - thanks!

    Do you have any pictures of the whole thing? What does it look like with stuff growing in it? What sort of yield do you get? What are you growing?

    4 votes
    1. mat
      Link Parent
      I don't have pictures of it in use, because these were taken today and previously I haven't taken any photos. Yields are considerably higher than sun+soil outdoor growing (I'd estimate maybe 5x at...

      I don't have pictures of it in use, because these were taken today and previously I haven't taken any photos. Yields are considerably higher than sun+soil outdoor growing (I'd estimate maybe 5x at least) and the growing season is a good 9-10 months of the year, maybe year-round since I upgraded the insulation.

      I think you can probably guess what I mostly grow but let's call it chilli peppers and tomatoes because that's what everyone in the hydroponics shop says they grow.

      5 votes
  2. [4]
    patience_limited
    Link
    Can I hire you to run the ecology for my hypothetical generation starship? Now that it's built, I'm going to presume that you're in a state where what you plan to grow may not be medicinal yet,...

    Can I hire you to run the ecology for my hypothetical generation starship?

    Now that it's built, I'm going to presume that you're in a state where what you plan to grow may not be medicinal yet, and it's not safe to post pictures.

    Nonetheless, I'd appreciate knowing if you run into any difficulties (fungal contamination, etc.). I may have a use myself in the not-too-distant future, possibly even involving long winters, chili peppers, and tomatoes.

    4 votes
    1. [3]
      mat
      Link Parent
      This is version 4 of the indoor grow system, I've been doing it a few years now - started out as a 60x60cm box lined with tinfoil and a 100W light! When I used to do Deep Water Culture hydroponics...

      This is version 4 of the indoor grow system, I've been doing it a few years now - started out as a 60x60cm box lined with tinfoil and a 100W light!

      When I used to do Deep Water Culture hydroponics (aka, a bucket of water with an aquarium airstone that the roots dangle into) I never had a problem with our fungal/microbial friends, but in aero it was an issue until I started adding potassium citrate and hydrogen peroxide to the water. Turns out plants really love growing in acidic, weak bleach - but fungal infections do not. Outside the water I think the intense light (some in UV) from the lamps tends to discourage growth of nasties.

      Between grows everything gets disinfected and well scrubbed down with various cleaning products, just in case something was thinking of growing a colony somewhere.

      My biggest problem is humidity, in part because where I live is fairly humid, in part because of all the water around - but it's manageable. It wouldn't be too hard to add a small dehumidifier if needed, but it mostly isn't. I have to keep an eye out for mould when the vegetation gets particularly dense towards the end of each grow but it's generally not much of a problem as long as I keep the air moving around. Sometimes I open the door during 'night' and point my big floor fan in just to give things a bit of a boost on that front.

      Also, yes, I'd be very happy to run a space garden. fwiw, what I'd do there is aquaponics, which give you a whole raft of benefits - you get fish to eat (and you can have a big aquarium in your leisure area for morale/relaxation), plus you can feed any remaining human and food waste into the system too. It's not a completely closed loop but it's pretty good.

      2 votes
      1. [2]
        patience_limited
        Link Parent
        What brought it to mind was running across this story about closed cycle systems. I had a little grow bag project going this year, and given the hothouse environment here, trying to keep unhappy...

        What brought it to mind was running across this story about closed cycle systems.

        I had a little grow bag project going this year, and given the hothouse environment here, trying to keep unhappy fungi at bay was challenging.

        2 votes
        1. mat
          Link Parent
          Yup, that's the exact sort of thing. Aquaponics is super interesting from a permaculture perspective. It's not going to get you quite the highest yield/watt per plant, but the inputs are very low...

          Yup, that's the exact sort of thing. Aquaponics is super interesting from a permaculture perspective. It's not going to get you quite the highest yield/watt per plant, but the inputs are very low which makes it good for a starship.

          I don't know where you are but if it's hot and humid that can be difficult. It's a great environment for a lot of plants but unfortunately it's also a great environment for lots of unwanted things too. The more control you have over the environment the better, just removing soil from the equation can go quite a long way - growing in coco coir or similar might be worth a shot. You don't need to invest in any fancy gear, just a bag of coco, pots, and some nutrients.

  3. [2]
    Akir
    Link
    Why did you choose to use a radiator based heater? Those continue to emit heat after you turn them off. I would imagine it would be better to use a simple ceramic heater since it would give you...

    Why did you choose to use a radiator based heater? Those continue to emit heat after you turn them off. I would imagine it would be better to use a simple ceramic heater since it would give you better control. On the other hand, I doubt there are many plants that sensitive to temperature change.

    Have you experimented with shorter daylight cycles? I have heard that it affects the speed of growth, but I have no idea if that's true or not.

    2 votes
    1. mat
      Link Parent
      Main reason for that choice was it was both cheap and easily available! You're right that it will continue to emit heat when it's turned off but if heating is needed it usually means it's cold...

      Main reason for that choice was it was both cheap and easily available! You're right that it will continue to emit heat when it's turned off but if heating is needed it usually means it's cold outside so heating tends to be on/off/on/off anyway - having the buffer of the oil holding some heat doesn't seem to be a problem.

      When you say shorter cycles do you mean something like "6 on, 2 off"? I haven't but it might be interesting to try. The downside to cycles like that is that I often have a big spike of heat during outdoor maximum and having the lights on at the same time can push interior temps up fairly drastically (and it's hard to lower when the outside is hot as well). That said, around this time of year I don't get that issue so perhaps I'll give it a go.

      2 votes