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

Wi-Fi Enabled Soil Moisture Monitoring and Water Pump Control System

Image of Wi-Fi Enabled Soil Moisture Monitoring and Water Pump Control System

Circuit Documentation

Summary

This circuit integrates various components to perform a set of functions, which could be related to sensing, actuation, and display. The core of the circuit is an ESP8266 NodeMCU microcontroller, which interfaces with a relay, an LCD display, a pushbutton, a water pump, a soil moisture sensor module (YL-83 with YL-69 probe), and a temperature and humidity sensor (DHT11). The ESP8266 NodeMCU controls the relay to power the water pump and reads data from the sensors to display on the LCD or take action based on the sensor inputs. The pushbutton provides user input to the system.

Component List

ESP8266 NodeMCU

  • Microcontroller with WiFi capability
  • Pins: D0, D1, D2, D3, D4, 3V3, GND, D5, D6, D7, D8, RX, TX, A0, RSV, SD3, SD2, SD1, CMD, SD0, CLK, EN, RST, VIN

5V Relay

  • Electromechanical switch used for controlling high power devices
  • Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC

LCD Display 16x4 I2C

  • Alphanumeric liquid crystal display with I2C interface
  • Pins: SCL, SDA, VCC, GND

Pushbutton

  • A simple switch mechanism for controlling some aspect of a machine or a process
  • Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)

5V Mini Water Pump

  • A small pump for moving water, typically used in small-scale irrigation or water features
  • Pins: Positive pin, Negative pin

YL-83 Module LM393 (Soil Moisture Sensor)

  • A module that uses the YL-69 probe to detect the moisture level in the soil
  • Pins: A0, D0, GND, VCC, -, +

YL-69 Sonda (Soil Moisture Probe)

  • A probe that measures the soil moisture level
  • Pins: +, -

KY-015 DHT11 (Temperature and Humidity Sensor)

  • A basic, ultra low-cost digital temperature and humidity sensor
  • Pins: 5V, S, GND

Wiring Details

ESP8266 NodeMCU

  • D1 -> LCD Display SCL
  • D2 -> LCD Display SDA
  • D3 -> Relay In
  • D4 -> DHT11 S
  • D7 -> Pushbutton Pin 3 (out)
  • A0 -> YL-83 Module A0
  • 3V3 -> LCD Display VCC, Relay VCC, YL-83 Module VCC, DHT11 5V
  • GND -> LCD Display GND, Relay GND, YL-83 Module GND, DHT11 GND, Pushbutton Pin 1 (in)

5V Relay

  • Normally Open -> Water Pump Positive pin
  • Common terminal -> Water Pump Negative pin

LCD Display 16x4 I2C

  • SCL -> ESP8266 NodeMCU D1
  • SDA -> ESP8266 NodeMCU D2
  • VCC -> ESP8266 NodeMCU 3V3
  • GND -> ESP8266 NodeMCU GND

Pushbutton

  • Pin 3 (out) -> ESP8266 NodeMCU D7
  • Pin 1 (in) -> ESP8266 NodeMCU GND

5V Mini Water Pump

  • Positive pin -> Relay Normally Open
  • Negative pin -> Relay Common terminal

YL-83 Module LM393

  • A0 -> ESP8266 NodeMCU A0
  • VCC -> ESP8266 NodeMCU 3V3
  • GND -> ESP8266 NodeMCU GND
    • -> YL-69 Sonda -
    • -> YL-69 Sonda +

YL-69 Sonda

    • -> YL-83 Module -
    • -> YL-83 Module +

KY-015 DHT11

  • S -> ESP8266 NodeMCU D4
  • 5V -> ESP8266 NodeMCU 3V3
  • GND -> ESP8266 NodeMCU GND

Documented Code

No code was provided for the microcontroller. The code would typically initialize the I2C interface for communication with the LCD display, set up digital inputs and outputs for the pushbutton and relay, and read data from the analog and digital sensors (DHT11 and soil moisture sensor). It would also include logic for controlling the water pump based on sensor inputs and possibly user input from the pushbutton.