Introduction: SMART MINI GREENHOUSE

Picture of SMART MINI GREENHOUSE

Hi friends! Today we are going to make a smart greenhouse.

What will this do?

  • It will irrigate your plants automatically.
  • It will spread light in periods.
  • It will sense the air quality.
  • It will sense the water level of plant.

Let's start!

Step 1: What Will We Use?

Picture of What Will We Use?

  1. Arduino
  2. Breadnboard
  3. Gas Sensor(MQ-135)
  4. Water Level Sensor
  5. Relay
  6. 5110 Screen
  7. 2 Meters cable (2-3 Channels)
  8. Adapter
  9. Water Box
  10. 3 Fan
  11. l298n motor driver
  12. Mini water pump
  13. Lamp
  14. Lamp socket
  15. Some hardwoods

Step 2: Hardwoods'

Picture of Hardwoods'
  • 60cm x 40cm = 4 Pieces
  • 40cm x 40cm = 3 Pieces

I used hot glue for pasting work. Be careful while making the box. You should make like in photos. We should reserve space for arduino, waterbox ex.

Step 3: Water Box and Light Socket

Picture of Water Box and Light Socket

  • Make hole on water box for water pipe and pumps' cable.
  • Take a place for light socket in plant receptacle.

Step 4: Fan

Picture of Fan

  • Paste the fans each other,
  • Make hole on box for fan.
  • Weld the cables each other

Step 5: Add Hinge

Picture of Add Hinge

Buy 2 or 3 hinges and add them for using door.

Step 6: Placement

Picture of Placement

!! Be Careful for using 220V !!


Step 7: Fritzing

Picture of Fritzing

We will use 220V for 2 thing; 1-Light, 2-Power For Arduino (You can change this)

Step 8: Attention

Picture of Attention

  1. Be careful for using water and 220V.
  2. Don't confuse GND and 5V.

Step 9: CODES

Picture of CODES

If you like my project please follow me and vote my projects.

>>> Download Link <<<

Step 10: YouTube Video

You should watch video.

Please Subscribe Me On Youtube For More Useful Projects..

If you have a problem or a think, you can add a comment.

Comments

diy_bloke (author)2017-07-31

I have made quite a few plant irrigation projects and growbox/greenhouse projects myself, but I am always interested to see how other people do it.
I hope you do not mind a few remarks?

I think for the average reader it might be unclear what you do with the moisture sensor and in fact it is a bit unclearto me too. Do you hang it in the water reservoir to indicate if that is still full or not? Or do you stick it in the soil of your plants to see if the soil is moist enough.

The latter doesnt really give much added info as your irrigation is automatic (on a time trigger as I understand).

You seem to use a Sparkfun moisture sensor, that I am afraid will not really look good anymore in a short time.
You feed the sensor constantly with a current. Through electrolysis it will corrode and dissolve fairly fast.
Also, it is not really necessary to feed such a sensor with 3 leads (Voltage, Ground, Signal). You could do with 2 leads: Signal and Ground and switch the internal pull up resistor on.

Can I suggest that anyone building this just uses 2 nails for a probe?

Could consider only switching on the power to the probe for a very short moment to take a reading and have it off the rest of the time. That will seriously lenthen the time that sensor will last

I am a bit confused by your code, as you declare the sensorvalues in the loop, so they get declared time and time again.
I would suggest to declare them outside that loop.

The MQ-135 is a nice sensor that measures a lot of gasses and with that it becomes rather 'useless' I am sorry to say. The most important info to know about the airquality in your greenhouse is the CO2 level. You can use the MQ-135 to show CO2 levels with a bit more programming

It seems you switch your light on and off every 30 min for 30 min, although that can be used to maintain the heat in your greenhouse, most plants will not like that cycle. For temperature control it is unpredictable because much depends on the size of yr greenhouse and the wattage of your lamp.

As you still have pens a plenty left, I would suggest to add some sort of temperature sensor, if only an ntc, but a DHT would be great too as that also tells you the humidity.

You use an L298 H bridge for the Pump and the Fan. That seems to be a complicated solution for a small problem.
You now need 4 pins to control 2 actuators, which is unnecessary, unless you want the pump and the fan to turn backwards from time to time.

With regard to the fan it is even complete overkill because you switch it on in your setup and it then stays on forever.

Obviously you already have built your greenhouse but for anyone else building the project can I just suggest a relay or a transistor for the pump and the same for the fan, though the latter could also be fed directly from the PSU, given the fact it is constantly on.

You use very long delays in your project. I get that, it is easy to do and it will work, but it is not really nice.
Basically it puts your micro at a halt for 1 hour, with an interruption halfway to switch the light off.

Should any of the sensors register something important in the mean time (say a leak), your processor will not know about it for possibly the next hour. Can I suggest to use Millis() instead of delays.

I realize my comment has become longer than I wanted and I come with a lot ofrecommendations, please do not take that negatively. It is a good project, but could easily be further improved


ensarlevent (author)diy_bloke2017-08-03

Thanks for your comment dear friend,

This project is a starting series for me. I have DHT and i will add this. Also I am searching about ESP8266. My ESP is not working now.:)

Secondly I searched about 1 hour periods and i found that, periods are not a problem for plants. So I don't think it is a bad idea.

About MQ-135, I ordered this sensor especially, for air quality and CO2. I couldn't use CO2 type.

For fan and pump; pump is hard for other types of feeding motor. When you said 'H Bridge', i remember that; we can use 2 pins for same thing with Gnd pole. You know l298n can work for 2 channels. We aren't use pump for reverse direction so we can connect Gnd to 'LOW' pin.

Also fan is not spending a lot of energy. Its' mean is; it is not a bad thing for Arduino or all energy.

Thank you very much for your comment. I will improve this. I will make it smarter..:)

diy_bloke (author)ensarlevent2017-08-03

Have fun. :-)
"Airquality"as such might not be so important in a green house, but if that is what you were looking for, the 135 is a good sensor.
Should you want to extract CO2 from your measurements... various sites describe that

http://davidegironi.blogspot.nl/2014/01/cheap-co2-...

ensarlevent (author)diy_bloke2017-08-04

Wow! Thanks for link. I understand CO2 and air quality. I will check codes.:)

FinnR6 (author)2017-08-01

This looks cool I am going to make it

ensarlevent (author)FinnR62017-08-03

Thanks..:)

About This Instructable

1,826views

35favorites

License:

Bio: BIG THINKS, BIG THINGS! FOLLOW US ON YOUTUBE: https://www.youtube.com/channel/UCODcdPwhBerlNMSHB_ATEow
More by ensarlevent:SMART MINI GREENHOUSEBayern München Spinning WhellTURN ON LIGHTS WITH RFID CARD
Add instructable to: