Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino-Based Soil Moisture Monitoring System with LCD Display and Buzzer Alert

Image of Arduino-Based Soil Moisture Monitoring System with LCD Display and Buzzer Alert

Circuit Documentation

Summary

This circuit is designed to monitor soil moisture levels and control a relay based on the moisture readings. It uses an Arduino UNO microcontroller to read data from a soil moisture sensor and display the readings on an LCD screen. Additionally, a relay is used to control a buzzer, which can be activated based on the moisture levels.

Component List

  1. Arduino UNO

    • Description: A microcontroller board based on the ATmega328P.
    • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
  2. 5V Relay

    • Description: A relay module that operates at 5V.
    • Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
  3. SparkFun Soil Moisture Sensor

    • Description: A sensor to measure the moisture content in the soil.
    • Pins: VCC, GND, SIG
  4. Soil Moisture Module

    • Description: A module to interface with the soil moisture sensor.
    • Pins: positive, negative, Analog, Digital, Ground, VCC
  5. LCD Screen 16x2 I2C

    • Description: A 16x2 character LCD display with I2C interface.
    • Pins: SCL, SDA, VCC, GND
  6. 5V Battery

    • Description: A 5V power source.
    • Pins: +, -
  7. Buzzer

    • Description: A simple buzzer for audio alerts.
    • Pins: PIN, GND

Wiring Details

Arduino UNO

  • A0: Connected to Soil Moisture Module (Analog)
  • A4: Connected to LCD Screen 16x2 I2C (SDA)
  • A5: Connected to LCD Screen 16x2 I2C (SCL)
  • D2: Connected to 5V Relay (In)

5V Relay

  • In: Connected to Arduino UNO (D2)
  • Normally Open: Connected to 5V Relay (VCC), Soil Moisture Module (VCC), LCD Screen 16x2 I2C (VCC), 5V Battery (+)
  • Common terminal: Connected to Buzzer (PIN)
  • GND: Connected to Soil Moisture Module (Ground), LCD Screen 16x2 I2C (GND), Buzzer (GND), 5V Battery (-)

SparkFun Soil Moisture Sensor

  • VCC: Connected to Soil Moisture Module (positive)
  • GND: Connected to Soil Moisture Module (negative)

Soil Moisture Module

  • Analog: Connected to Arduino UNO (A0)
  • positive: Connected to SparkFun Soil Moisture Sensor (VCC)
  • negative: Connected to SparkFun Soil Moisture Sensor (GND)
  • Ground: Connected to 5V Relay (GND)
  • VCC: Connected to 5V Relay (Normally Open)

LCD Screen 16x2 I2C

  • SDA: Connected to Arduino UNO (A4)
  • SCL: Connected to Arduino UNO (A5)
  • VCC: Connected to 5V Relay (Normally Open)
  • GND: Connected to 5V Relay (GND)

5V Battery

  • +: Connected to 5V Relay (Normally Open)
  • -: Connected to 5V Relay (GND)

Buzzer

  • PIN: Connected to 5V Relay (Common terminal)
  • GND: Connected to 5V Relay (GND)

Documented Code

Arduino UNO Code (sketch.ino)

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Additional Documentation (documentation.txt)


This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO microcontroller.