This is my first Arduino project aimed at helping me with my other hobby which is growing oyster and shiitake mushrooms indoors.
In a nutshell, the controller takes in two temperature readings, 1 Humidity reading and 1 Co2 reading and triggers a set of four relays connected to mains power.
Intended to be connected to the mains are two heating pads, a sonic humidifier and an air pump (although the choice isn't limited to these of course).

Step 1: Items

Here is the list of items I used for the project.

-LCD Keypad shield.
- 7-12 volt power supply.
- USB cable (socket that connects to USB on Arduino).
-Box To house the whole thing.
- 4x solid state 5v- 240v relays.
- Mains Power board with four sockets. 
- Wires.
- Jiffy box to house inline socket/screws to connect Sensors.

-Thermistors 10k   x2
       -Resistor 10k  x2
-HS1100 humidity reader
       - 555 timer (cmos type)
       - resistors: 576k, 49.9k, 1k and 909k
       - Veraboard/breadboard
      - Jiffy Box
      - Digital divide by ten Chip
-MG811 C02 sensor (I got a breakout board with op-amp amplifier built in. You can make it yourself, it is a high precision op amp set up as non-inverting with gain around 10).
       - Jiffy Box

- 2 x heating pads
- Sonic Humidifier
       - Aquarium Tubing
       - Air Pump (aquarium)
       - Plastic lunchbox (airtight) 
       - HEPA Filter for Vacuum cleaner.
       - Plastic tub 
- Aquarium Air pump
      - Aquarium Tubing
     - Plastic Lunchbox (airtight)
     - HEPA Filter for Vacuum cleaner

- Hot Glue gun
- Soldering Iron
- Screwdrivers
- Multimeter
- Drill
- Home brew larger.

Yo man i was thinking of using this For a terrarium control, and im completly new to arduino. But was thinking can i just leave out the c02 meter ? Or will it crash the code?
<p>hello ,</p><p>may i know how to make breakout board for mg811. can u send the circuit diagram</p>
<p>What is a digital divide by ten chip. Having issues finding this and would like to complete this project. Awesome job by the way. But please tell me what chip to order</p>
Hey Mate,<br><br>I've done a revision on this, I use RHT03 for temperature and humidity sensing:<br>https://www.sparkfun.com/products/10167<br>It's digital so a lot more accurate, and less fuss.<br>Also rather than using a C02 sensor I'm just scheduling airflow (i.e. fan on for one minute ever 10 minutes....but it depends on your fans airflow).<br>If you want the code for this, let me know and I can supply.<br><br>Cheers<br>Anthony
<p>Hi, </p><p>I am replicating this project for a wide format production print room humidification system. Would you please provide the updated code for the RHT03? Thank you. </p>
<p>Hi Anthony, would you mind providing us with your code? it would be of great help, and if you can your schematics. Regards. </p>
<p>good stuff..!</p>
<p>How did you deal with the 'bounce' on the SSR's due to low power consumption? I'm finding I get intermittent activation when the relay is supposed to be off. Very irritating!</p>
Nice project. I'm working on similar using a DHT-22 for Temperature and Humidity. Sweet setup with the CO2 sensor N all. I may put some ferns in the grow room just for now. Thanks for posting.
Hello Anthony sir, <br>Very nice project. Keep up. Can you please help me too? <br>Based on this instructable can you please modify the code to use with sensirion sensor - sht75 to control relays for humidifier and heater instead of dht-22 sensor? Thank you.
I don't know if you meant to or not but a lot of what you did is stuff that <a href="http://www.hesl.ca" rel="nofollow">environmental consultants</a> tend to recommend that people do when growing their own mushrooms like this.
Great project! I'm trying to rebuild it but have this programming problem. I'm using the arduino uno which uses the liquid crystal library. For some reason I cant get the code to work at all and my knowledge in programming is sub par. Any tips or advice would help a ton. this is a project I'm very interested in. <br>thanks :)
Hi Anthony,<br><br> I'm new to electronic. I got my self cd4017 for the divider, can you please tell me where you the output from 555 goes to? Or how do I know which one divides. This one is tricky to follow. <br>By the way this is my very first electronic that's not a kit from Jaycar. I'm almost there with it but this one has got me stuck. <br><br>So I followed your instruction. <br><br>Cheers<br><br>Thanks
Hi Jbark,<br><br>Sorry, I didn't put much detail in about that. But basically it's something like this:<br>http://artengine.ca/~pflemming/flemmweb_current/schem/CMOS/4017_circuits.pdf<br>555 Timer --&gt; pin 14 of cd4017. Then output of cd4017 pin 11 to arduino. Ground pin 8, 13 and 5.<br><br>Thanks<br>Anthony
Sorry... Ground are pins 8, 13 and <strong>15</strong>. Thanks
Thanks Mate
Co2 too low??? You said &quot;This system of air filtration is also used for the air supply when the co2 gets too low&quot;. Dont you want the co2 to be as low as possible?
Yes, it's meant to read &quot;CO2 gets too high&quot;. The program switches the relay on when the CO2 level goes over a certain threshold. I just wrote the wrong thing and my editor didn't pick it up before it went to print.
i saw someone make a similar device a long time ago , but no co2 sensor though and they connected it to the lpt1 port of a pc to control it , but it was used for mushrooms , i wish i could find the site where i saw it he had a basic software he wrote for it and everything and he was even selling kits or providing exact part lists with item # and where to get them ,i was interested in makingg one of these for a greenhouse ,but with a pc control or interface and a data logger, anyone know where i could fing plans for something like that?i thought i sa it on the shroomery but i forget and a search there turned up nothing
Hi Anthony, I want to know the amount you paid for CO2 with singal conditioning as shown in the diagram.<br>As you told about that website, i have checked the product, its cost is around $35, but i want to know exact amount i should pay for delivery to India.<br>Hence i am asking you to tell me the amount you paid for the same. <br>Thank you.
I think the shipping was roughly around the same price of the item (35$).<br>It is a bit pricey. You can always skip this equipment and just set up the relay to turn on to drive a pump to exchange air for a specific amount of time every hour or so. (or use a timer :) )<br>I have had good results with this.<br> <br>Also, the Co2 sensor is the most sensitive being logarithmic and is difficult to calibrate.<br><br>This is up to you though.<br><br>Cheers<br>Anthony<br><br>
Hi Anthony,<br><br>What sort of output data did you end up getting with the Parralax sensors? Great work btw!
Can you please tell me from where did you got this CO2 Sensor in India?
Hi Ratheeshbr,<br><br>It was the MG811 co2 sensor, I got the sensor in kit with omp amps from parallax on the web. Google for parallax co2 sensor gets you there.<br><br>Thanks<br>Anthony
I would like to learn how to grow oyster and shiitake mushrooms. Where should I start? Thanks!
If you've got $30 you're willing to invest, this is the BIBLE of Mushrooms:<br> <a href="http://www.amazon.com/Growing-Gourmet-Medicinal-Mushrooms-Stamets/dp/1580081754/ref=sr_1_1?ie=UTF8&s=books&qid=1277418343&sr=8-1" rel="nofollow">http://www.amazon.com/Growing-Gourmet-Medicinal-Mushrooms-Stamets/dp/1580081754/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1277418343&amp;sr=8-1</a>
DVDs and books are good starting points for learning about growing mushrooms, but will not teach you how to grow them well. Most of the material is somewhat outdated.<br><br>New methods conceived by mycologists and growers can be found at shroomery.org<br><br>Search the forums for all the knowledge you will ever need, plus it is free.
just steal it from ED2K ed2k://|file|%5BPsilocybin%5DGrowing%20Gourmet%20and%20Medicinal%20Mushrooms-Paul%20Stamets-2000-1580081754.CV.pdf|36908319|D7C4B3A02C96D1823E012B22315E98CE|/
Youtube is your friend. Also, check the torrent sites for &quot;Growing Mushrooms&quot; DVD.
Very cool use of the arduio. It's a great start for your first time coding in &quot;C&quot;. GuruSantiago Checkout my arduino projects here: http://www.youtube.com/user/ElectronicsIsFun And follow me on twitter @ElectronicsFun
I was thinking the same thing. I am building a similar project, and base my relay sircuits from this guide http://www.glacialwanderer.com/hobbyrobotics/?p=9
I'm very excited to see somebody working on a very similar project as me! :-D I do have one question, where did you buy the MG811 that came with the op amp board? I too made the mistake of buying just the sensor and couldn't get it to work. (I'm NOT an electronics person, but I'm trying to learn!) Thanks!
I got the MG811 with op amp from parallax a company I found through the internet. Good luck with your project! :)
Very nice project. I am creating a home HVAC data logger. As a side note the documentation on the mg811 sensor is very poor. I have the sensor working, I am concerned about the temperature. Do you keep the mg811 heater on constantly, or preheat it before polling? If so is the sensor hot to the touch?
For my project I keep the heater on all the time, although the MG811+op-amp board had a pin that you could use to switch the heater on/off. I guess it may affect the shelf life of the sensor if it is on less frequently. The sensor is more warm than hot, although when I did put in the wrong voltage it did get too hot to touch (it didn't destroy the MG811 though!). To answer your question I did find that the sensor took a while before the reading became constant and didn't keep dropping, it was about 5 min.
That's, i'm doing it!
how is it all working out for you ? I would love to see a kit from you with all the parts to order
Don't you need diodes to protect the arduino?
How so, do you mean on the power supply to the Arduino?
Amazingly thorough writeup. You have done a great job of marrying two wonderful hobbies. I've been considering putting together the mycology environment project that Make magazine had several years ago...but humidity and temperature were my concerns. These systems fit the bill perfectly. Thanks for taking the time to share.
No Probs, thanks for your comments.
This is amazing! I would definitely make this. I never thought I'd actually find someone growing their own oyster mushrooms- I used to live in Japan, for about 3 years, and they have the BEST mushroom in the world there- エリンギ, Eringi, or King Oyster Mushroom in English. They taste 100x better than portabellas or even good shiitake- but I can't find them on the east coast US anywhere! And they taste like buttered steak... I've looked forever, but can't find anywhere on the net for king oyster mushroom spores- does anyone sell them? They are so good I must grow them myself, since noone in my area of the world seems to sell them. Can anyone help?
Namban said: &quot;They are so good I must grow them myself, since noone in my area of the world seems to sell them. Can anyone help?&quot; DIY-Guy relied: You want to grow &quot;King Oyster Mushroom&quot;? Try using a Google search like this- &quot;King Oyster Mushroom&quot; growing kit Then look at the results- http://www.mycosource.com/king_oyster%20instructions.htm Other sites also are out there. (Disclaimer: I don't work for these guys nor do I have any affiliation at this time.) Thanks for the food description- &quot;they taste like buttered steak...&quot; it sounds really good to eat!
Thanks for the info. I'd done plenty of Google searches over the years, and nothing came up- these must be recent, as I would have found them before. And yes, they taste exactly like a good steak smeared with butter. They are incredible- if you ever get a chance to try them, take it!
Let us not forget the king of mushrooms the Maitake, proported to have health benifits in a different league to regular mushrooms. could this breed be cross bred with conventional mushrooms? Cheap regular mushrooms with awesome health properties? we can dream!
Termisters have a problem of self heating (causes a false + temp), you should use a transister to drive the current through the voltage divider. This will add a duty cycle to the termister, give it some time to equalize measure then shut it off for the remainder of your loop. only if you want to be really pendantic that is, for your application it should be fine just a FYI
Great!! I worked on the same idea for some time, without CO2 measurement. This project is exactly what I need, I grow mushrooms myself and always wanted to automate the environmental control. I tried some different options, but never got a real solution.
those oysters need a lot of work .....
Hello fellow Australian, nice to see some of us on this site. :)
At the risk of sounding too nationalistic: Ausi Ausi Ausi! Oi OI Oi! hehe

About This Instructable


252 favorites


Bio: I pass the time by involving myself in small projects and watching youtube political discussions. I am a jack of all trades and master of ... More »
More by anthony_p1234: Mushroom Environment Control - Arduino Powered
Add instructable to: