Skip to main content

Build a greenhouse with Arduino





What is a greenhouse? 

How do you think technology can improve greenhouses?



Do you think that a greenhouse can be controlled by a computer to optimise the conditions for plant growth?

In a greenhouse, plants requiring regulated climatic conditions are grown.

Temperature, humidity and light are some important measurements to take when cultivating a specific crop?

Our challenge:

Lets build a greenhouse and the control system to set and keep the optimal climate conditions in terms of temperature and humidity and cultivate some tropical crops.

Optimal climate conditions
  • temperature: between 25-30ºC
  • humidity : 50-60%

If the temperature and humidity sensors register a value out of these ranges, the Arduino board should trigger an alarm (the led will light) to let us know that some actions are needed (we might need to activate the heating or watering system)

After restoring the temperature and humidity values, the led should be turned off.

Build the greenhouse:
Material list:
  • Some cardboard or a carton box for the base
  • Some thin and transparent plastic bag to cover it
  • Some wood / carton sticks to build the structure
  • A container for the soil with the seeds


Build the control system with Arduino
Connection layout:
Material list:
  •  Arduino board
  •  Jumperwires
  •  Temperature and humidity sensor
  •  Led
  •  Resistors 
  •  Battery
  •  Arduino IDE
  •  USB cable
  •  Breadboard

Steps:
  1. This temperature and humidity sensor has four lines: +5V, Data line, not used and GND. Connect the Data line of the Sensor to pin 2 of Arduino. This way Arduino will receive the temperature and humidity measurements through pin 2.
  2. LED: Connect the long leg of the LED (the positive leg, called the anode) to 5V. Connect the short leg of the LED (the negative leg, called the cathode) to the other end of the resistor.



Program Arduino IDE


Code:
The DHT.h library is included in the program so Arduino could read the measurements from the sensor.
If the Temperature is higher than 28ºC and humidity is less than 50%
Arduino will trigger the alarm by setting a high value (5V) in pin 8
This will make the LED light. 

You can see the registered values in the Serial Monitor of Arduino IDE.

If you change these values (for example, by watering the plants in the greenhouse) pin 8 will be low and the LED will be off.


OUR PROJECT:






Policy:



Comments

Popular posts from this blog

Project 1: Interactive led

How does it work? Whenever a press the button the led is switched on.  After 2 seconds the led is switched off. Things you need: a Breadboard a led a button 2 resistors (220Ohms) jumper wires. Connect it up Now, first make sure that your Arduino is powered off (unplug the USB cable or the external battery). Then connect everything up like this: The led Make sure that your LED is connected the right way with the longer leg connected to Digital pin 8. The long leg is the Anode of the LED and always must go to the +5V supply (in this cased coming out of Digital pin 8). And the short leg is the Cathode and is connected to a resistor (to limit the current that goes through the led and then to Gnd (Ground). The button Normally the button is not pressed and therefore the circuit is open and 0V(LOW) will be supplied to pin3. When the button is pressed, the circuit is closed and 5V(HIGH) will be supplied to pin3. Arduino board will read the PIN3 and

Some basics of ARDUINO