This project is available at: Arduino ProjectHub
Before starting, ensure you have the necessary tools:
- Grove - 4-Channel SPDT Relay Module
- LDR (Light Dependent Resistor), 5 MΩ
- 220 ohm Resistor
- DHT11 Temperature & Humidity Sensor (3 pins)
- Solderless Breadboard (Full Size)
- 16x2 Alphanumeric LCD
- SparkFun Soil Moisture Sensor (with Screw Terminals)
- Arduino UNO
- Jumper Wires (generic)
- 10k ohm Resistor
- 10k ohm Trimmer Potentiometer
- Arduino IDE
The Arduino Greenhouse Automation System is a project aimed at automating key environmental factors in a greenhouse, such as temperature, humidity, light, and soil moisture. By integrating various sensors (DHT11, soil moisture sensor, and LDR), and controlling different systems like watering, heating, cooling, and lighting using relays, this system can help maintain optimal conditions for plant growth.
This project uses an Arduino UNO microcontroller to process the data from the sensors and activate relays based on predefined conditions, such as:
- Watering the plants when the soil moisture level is low.
- Activating the heating system when the temperature is too low.
- Turning on the cooling system when the temperature is too high.
- Controlling the lighting based on light intensity detected by the LDR.
The system also provides real-time feedback on temperature, humidity, and moisture levels through an LCD screen.
Below is a description of how the various components are connected to the Arduino UNO:
-
DHT11 Sensor:
- Pin 1 (VCC) to 5V on Arduino.
- Pin 2 (Data) to digital pin 13.
- Pin 3 (GND) to GND on Arduino.
-
Soil Moisture Sensor:
- VCC to 5V on Arduino.
- GND to GND on Arduino.
- Analog Output (A0) to analog pin A0 on Arduino.
-
LDR (Light Dependent Resistor):
- One pin of the LDR connected to 5V.
- The other pin of the LDR connected to analog pin A1 on Arduino.
-
Relay Module:
- Relay 1 (Water Pump Control): Pin 7.
- Relay 2 (Heating System Control): Pin 8.
- Relay 3 (Cooling System Control): Pin 9.
- Relay 4 (Lighting System Control): Pin 10.
-
LCD Display (16x2):
- RS to pin 12.
- EN to pin 11.
- D4 to pin 5.
- D5 to pin 4.
- D6 to pin 3.
- D7 to pin 2.
- VSS to GND.
- VCC to 5V.
- VO to the wiper of the 10k potentiometer.
- RW to GND.
The Arduino code for this project can be found in the arduino.ino file.
- Remote Monitoring: Add Wi-Fi or Bluetooth functionality for remote monitoring and control of the greenhouse.
- More Sensors: Integrate additional sensors, such as CO2 or pH sensors, for more advanced control.
- Automated Alerts: Implement SMS or email alerts to notify users of critical changes in the environment.
- Data Logging: Store sensor data to analyze patterns over time and optimize the greenhouse environment further.
Feel free to modify or extend this project according to your needs for a more complete greenhouse automation solution!