Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

ESP32-Based Smart Irrigation System with Soil and Weather Sensors

View and Edit Project In Cirkit DesignerImage of ESP32-Based Smart Irrigation System with Soil and Weather Sensors

Circuit Documentation

Summary

This document provides a detailed overview of a circuit designed for environmental monitoring and control. The circuit includes sensors for soil moisture, rain, light, and temperature/humidity, as well as a relay-controlled water pump. The central controller is an ESP32 microcontroller, which interfaces with various sensors and a display module.

Component List

  1. Soil Moisture Sensor

    • Pins: VCC, GND, SIG
    • Description: Measures the moisture level in the soil.
    • Purpose: Provides soil moisture data to the ESP32.
  2. RAIN SENSOR

    • Pins: AO, DO, GRD, VCC
    • Description: Detects the presence of rain.
    • Purpose: Provides rain detection data to the ESP32.
  3. ESP32 (30 pin)

    • Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, Vin, D23, D22, TX0, RX0, D21, D19, D18, D5, TX2, RX2, D4, D2, D15, 3V3
    • Description: A powerful microcontroller with Wi-Fi and Bluetooth capabilities.
    • Purpose: Central controller for the circuit.
  4. DHT11

    • Pins: DATA, GND, VCC
    • Description: Measures temperature and humidity.
    • Purpose: Provides temperature and humidity data to the ESP32.
  5. 16x2 I2C LCD

    • Pins: GND, VCC, SDA, SCL
    • Description: A 16x2 character LCD with I2C interface.
    • Purpose: Displays sensor data and system status.
  6. Relay module 5v-30v

    • Pins: common contact, normally open, normally closed, trigger, V-, V+
    • Description: Controls high voltage devices like a water pump.
    • Purpose: Controls the water pump based on sensor data.
  7. Light Sensor

    • Pins: GND, UCC, NC, SIG
    • Description: Measures ambient light levels.
    • Purpose: Provides light level data to the ESP32.
  8. Water Pump

    • Pins: +, -
    • Description: A pump for watering plants.
    • Purpose: Waters plants based on soil moisture levels.
  9. 12v power supply

    • Pins: +, -
    • Description: Provides 12V power to the circuit.
    • Purpose: Powers the water pump and other components.
  10. NPK Soil Sensor (mini)

    • Pins: VCC, GND, A, B
    • Description: Measures soil nutrient levels.
    • Purpose: Provides soil nutrient data to the ESP32.
  11. RS485

    • Pins: VCC, RO, RE, GND, B, A, DE, DI
    • Description: A communication module for RS485 protocol.
    • Purpose: Facilitates communication between the NPK Soil Sensor and the ESP32.

Wiring Details

Soil Moisture Sensor

RAIN SENSOR

ESP32 (30 pin)

DHT11

16x2 I2C LCD

Relay module 5v-30v

Light Sensor

Water Pump

12v power supply

NPK Soil Sensor (mini)

RS485

Code

No code provided.