Soil Moisture Indicator For Gardening Application

Check out our latest products

Added to wishlistRemoved from wishlist 0
Add to compare
(2-Way Audio & PIR Detection) Dual Antennas Outdoor Wireless Security Camera System 5.5MP Wi-Fi Video Surveillance
Added to wishlistRemoved from wishlist 0
Add to compare
$399.99
Added to wishlistRemoved from wishlist 0
Add to compare
2 | FPV Goggles for All Camera Drones | Unibody Lens | HD FPV Goggles | Compatible Versatile Skyview FPV Drone Goggles | Clear Immersive View | All GPS Camera Drone
Added to wishlistRemoved from wishlist 0
Add to compare
$179.00

Comment errors or corrections found for this circuit, and get the chance to win big!

The Soil Moisture Measurement is a vital application in Gardening and Agriculture to check the status of soil whether dry humid or wet. Accurate moisture content knowledge helps to check whether a plant or crop needs water or not. Many moisture measurement systems are available in the market. Some are costly and few have only audio or visual indication facilities. To eliminate this drawback, I have developed this soil moisture indicator for gardening applications with LCD display facility. This system is cost-effective and easy to use with the least human effort. 

Components

Arduino Nano

The Arduino Nano is a micro size, complete, and breadboard-compatiable board based on the ATmega328. The Arduino Nano can be powered via the Mini-B USB connection.The power source is automatically selected to the highest voltage source. The ATmega328 has 32 KB. Each of the 14 digital pins on the Nano can be used as an input or output, using pinMode(), digitalWrite(), and digitalRead() functions. They operate at 5 volts. Each pin can provide or receive a maximum of 40 mA and has an internal pull-up resistor.

I2C LCD

A typical I2C LCD display consists of an HD44780-based character LCD display and an I2C LCD adapter. These LCDs are ideal for displaying only characters. A 16×2 character LCD, for example, can display 32 ASCII characters across two rows. At the heart of the adapter is an 8-bit I/O expander chip – PCF8574. This chip converts the I2C data from an Arduino into the parallel data required for an LCD display. 

– Advertisement –

Soil Moisture Sensor

A soil moisture sensor is used to measure the level of moisture of soil.It has two probes which can be inserted in the soil to measure the moisture level in the soil. These two probes flow the current to the soil and calculate the resistance of the soil and change the value to the moisture value. Whenever there is more water, soil conducts more current, so the resistance will be lower and moisture level will be more. On the other side, dry soil conducts less current due to less water, so the resistance is more and moisture will be less.

Part List

  • Arduino Nano
  • Bread Board
  • Jumper Wires
  • Nano Cable
  • LCD I2C
  • Soil Moisture Sensor
  • Jar
  • Soil

Construction and Working

To build this soil indicator system, we have used LCD I2C along with electronic components Arduino Nano, Soil Moisture Sensor, Bread Board, Arduino Nano Cable, Jar filled with soil. The Soil Moisture Sensor is connected with the A0 analog pin of Arduino Nano. LCD I2C is used to display soil moisture status whether dry, humid or wet. LCD I2C pins SDA connected to A4 pin of Arduino Nano, SCL to A5 pin of Arduino Nano, Vcc to 5V pin of Arduino Nano, GND to GND pin of Arduino Nano. When the moisture level is between 600 and 1000, LCD will display “soil is dry”. When the moisture level is between 400 and 600, LCD will display “Soil is humid” and when the moisture level is below 400, LCD will display “Soil is wet”. If the moisture value is above 1000, LCD displays “Sensor is not in the soil”.

– Advertisement –

Circuit Diagram

Fig. 1: Soil Moisture Indicator Circuit Diagram

Testing

Make connections as per the circuit diagram. Connect Nano Cable with Computer. Connect Vcc of the sensor to 5V and ground to ground pin of Arduino. Put the Sensor inside dry soil, and the LCD will display “Soil is Dry. Put the Sensor inside wet soil, and the LCD will display “Soil is wet”. Put the Sensor inside normal soil, LCD will display “Soil is humid”. 

Source Code

#include

LiquidCrystal_I2C lcd(0x27,16,2);  

const int sensor_pin = A0;  

void setup() {

  lcd.init();

  lcd.clear();         

  lcd.backlight();      

  lcd.setCursor(0,0);  

  lcd.print(“Soil Moisture”);

  lcd.setCursor(0,1);   

  lcd.print(“System”);

  Serial.begin(9600); 

  delay(2000);

  lcd.clear(); 

}

void loop() {

  int sensor_analog;

  sensor_analog = analogRead(sensor_pin);

  if (sensor_analog >=1000)

    { lcd.setCursor(2,0);   

     lcd.print(“Sensor is”);

     lcd.setCursor(0,1);   

     lcd.print(“not in the soil”);

     delay(1000);

     lcd.clear();}

  if (sensor_analog < 1000 && sensor_analog >= 600)

     {lcd.setCursor(2,0);   

     lcd.print(“Soil is”);

     lcd.setCursor(2,1);   

     lcd.print(“dry”);

       delay(1000);

     lcd.clear();}

   if (sensor_analog < 600 && sensor_analog >= 400)

   {   lcd.setCursor(2,0);   

     lcd.print(“Soil is”);

     lcd.setCursor(2,1);   

     lcd.print(“humid”);

      delay(1000);

     lcd.clear();}

   if (sensor_analog < 400)

   {

     lcd.setCursor(2,0);   

     lcd.print(“Soil is”);

     lcd.setCursor(2,1);   

     lcd.print(“wet”);

       delay(1000);

     lcd.clear();

   }

}

Author’s Prototype



Added to wishlistRemoved from wishlist 0
Add to compare
’47 MLB Mens Men’s Brand Clean Up Cap One-Size
Added to wishlistRemoved from wishlist 0
Add to compare
$29.95
Added to wishlistRemoved from wishlist 0
Add to compare
(2-Way Audio & PIR Detection) Dual Antennas Outdoor Wireless Security Camera System 5.5MP Wi-Fi Video Surveillance
Added to wishlistRemoved from wishlist 0
Add to compare
$399.99
Added to wishlistRemoved from wishlist 0
Add to compare
[3 Pack] Sport Bands Compatible with Fitbit Charge 5 Bands Women Men, Adjustable Soft Silicone Charge 5 Wristband Strap for Fitbit Charge 5, Large
Added to wishlistRemoved from wishlist 0
Add to compare
$9.99
Added to wishlistRemoved from wishlist 0
Add to compare
[3 Pack] Sport Bands Compatible with Fitbit Charge 5 Bands Women Men, Adjustable Soft Silicone Charge 5 Wristband Strap for Fitbit Charge 5, Small
Added to wishlistRemoved from wishlist 0
Add to compare
$9.99

We will be happy to hear your thoughts

Leave a reply

Best Deals for all new
Logo
Compare items
  • Total (0)
Compare
0
Shopping cart