Table of Contents

Play Video

SMART GARDENING SYSTEM 

Smart Gardening System with the help of Soil Moisture Sensor, LED Matrix, Arduino uno. By this project students get the little bit knowledge about the electronic and the one the major problem are also solved which is gardening the plant.

A Smart Gardening system Project integrates technology and automation to monitor, manage, and optimize the growth of plants. It utilizes various sensors, and communication technologies to create an efficient and sustainable gardening environment  

Components –  

  1. Arduino Uno X1: This is the brain of your Smart Gardening System. It will control all the other components. 
  1. Soil Moisture Sensor X1: This is used to monitor the soil moisture. 
  1. LED Matrix X1: used to indicate the moisture of the soil 

Connection – 

Soil Moisture Sensor (FC-28): 

  • VCC: Connect to Arduino 5V pin 
  • GND: Connect to Arduino GND pin 
  • AO: Connect to Arduino analog pin A0 

LED Matrix 

  • LED1: Connect to Arduino D13 
  • LED2: Connect to Arduino D12 
  • LED3: Connect to Arduino D11 
  • LED4: Connect to Arduino D10 
  • LED5: Connect to Arduino D9 
  • LED6: Connect to Arduino D7 
  • LED7: Connect to an Arduino D6 
  • LED8: Connect to an Arduino D5 
  • LED9: Connect to an Arduino D4 
// Define sensor and actuator pins
 const int soilMoisturePin = A0; // Soil moisture sensor analog pin const  
const int ledPin1 = 13;
const int ledPin2 = 12;
const int ledPin3 = 11;
const int ledPin4 = 10;
const int ledPin5 = 9;
const int ledPin6 = 7;
const int ledPin7 = 6;
const int ledPin8 = 5;
const int ledPin9 = 4; // LED indicator pin 
// Adjust this value based on sensor calibration 
void setup(){
 Serial.begin(9600); 
 pinMode(ledPin1, OUTPUT);
 pinMode(ledPin2, OUTPUT);
 pinMode(ledPin3, OUTPUT);
 pinMode(ledPin4, OUTPUT);
 pinMode(ledPin5, OUTPUT);
 pinMode(ledPin6, OUTPUT);
 pinMode(ledPin7, OUTPUT);
 pinMode(ledPin8, OUTPUT);
 pinMode(ledPin9, OUTPUT);
}
 void loop() 
{
 int soilMoisture = analogRead(soilMoisturePin);
 Serial.print("Soil Moisture: ");
 Serial.print(soilMoisture);  
// Check soil moisture level
 if (soilMoisture < 600)
 { 
digitalWrite(ledPin1, HIGH);// Turn on LED indicator
digitalWrite(ledPin2, HIGH);
digitalWrite(ledPin3, HIGH);
digitalWrite(ledPin5, HIGH);
digitalWrite(ledPin6, HIGH); 
digitalWrite(ledPin7, HIGH); 
digitalWrite(ledPin4, LOW);
digitalWrite(ledPin8, LOW);
digitalWrite(ledPin9, LOW);  
 } 
else
 { 
digitalWrite(ledPin1, HIGH);// Turn on LED indicator
digitalWrite(ledPin2, HIGH);
digitalWrite(ledPin4, HIGH);
digitalWrite(ledPin8, HIGH);
digitalWrite(ledPin9, HIGH);
digitalWrite(ledPin3, LOW);
digitalWrite(ledPin5, LOW);
digitalWrite(ledPin6, LOW); 
digitalWrite(ledPin7, LOW);  
}
} 
Scroll to Top