Arduino Projects

Arduino Smart Plant Watering System

Hey there in this post we will see how to make Arduino Smart Plant Watering System for your mini projects.

I would say this is not just limited to mini projects but to learn the importance of automation in agriculture.

Agriculture is an important field with new methods of technology being adapted day by day.

In some areas there is shortage of water and this area needs an automatic system that can water the plants.

Keeping this in mind we will see how to use arduino in farming and make smart plant watering system.

You may also like our earlier post on Room heater

Materials required to build this project

  • Arduino Uno
  • Soil Moisture Sensor
  • Relay Module
  • Water Pump
  • 18650 Battery
  • Battery Charging Module

Circuit diagram for arduino Smart Plant Watering System

Arduino Smart Plant Watering System circuit diagram

Arduino Uno connections

GND (Ground) is Connected to the GND rail of the breadboard.

Now this GND from power rail goes to pins of the relay module and the soil moisture sensor.

5v pin is Connect to the VCC pin of the soil moisture sensor, Digital Pin D7 is Connect to the IN pin of the relay module.

Analog Pin A0 to the output pin of the soil moisture sensor.

Soil Moisture Sensor

Vcc is Connect to the 5V pin on the Arduino and ground to GND pin on the Arduino.

Analog Output (AO) is Connect to the Analog Pin A0 on the Arduino.

Relay Module connections

VCC to the 5V pin on the Arduino, GND is connect to the GND pin on the Arduino.

IN to Digital Pin D7 on the Arduino and COM to the positive terminal of the battery, NO (Normally Open) to the positive terminal of the water pump.

Water Pump connections

Positive Terminal is Connect to the NO (Normally Open) terminal of the relay module.

Negative Terminal to the negative terminal of the battery.

18650 Battery Positive Terminal connects to the COM terminal of the relay module and Negative Terminal to the negative terminal of the water pump.

Connected to the GND rail of the breadboard.

Battery Charging Module

This module is to charge the 18650 battery.

It can be connect to a USB power source and the battery terminals for charging purposes it also acts as a switch.

It is control by the Arduino to turn the water pump on or off.

Automatic plant watering system using arduino code

You can find the program for Automatic watering system for plants using Arduino below.

Just paste this code in the IDE and upload.

After this is complete we can disconnect the power cable and reconnect to check the circuit.

void setup() {
  pinMode(3,OUTPUT); //output pin for relay board, this will sent signal to the relay
  
  pinMode(6,INPUT); //input pin coming from soil sensor
}

void loop() { 
  digitalRead(6);  // reading the coming signal from the soil sensor
  if(6 == HIGH) // if water level is full then cut the relay 
  {
  digitalWrite(3,LOW); // low is to cut the relay
  }
  else
  {
  digitalWrite(3,HIGH); //high to continue proving signal and water supply
  }
  delay(400); 
}

How Arduino Smart Plant Watering System works?

Soil moisture sensor is dip inside the soil and then the system is power to on.

If the moisture in the soil is up to the sensitivity level of sensor than there will be no water coming from the pump.

If the moisture is insufficient than the sensor sends signal to the motor to pump the water to soil.

When sufficient amount of water is pump to the soil the supply stops automatically thereby stops the water.

This is helpful when you are away from your house and nobody could take care of your plants.

Or some of them forget to water the plants.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button