ESP8266-Based Smart Irrigation System with Wi-Fi Control and Sensor Integration
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit designed using various components including an ESP8266 NodeMCU, sensors, a relay, a water pump, and a display. The circuit is intended to monitor environmental conditions and control a water pump based on sensor inputs. The ESP8266 NodeMCU serves as the central microcontroller, interfacing with all other components.
Component List
ESP8266 NodeMCU
- Description: A low-cost Wi-Fi microcontroller with GPIO, ADC, and other interfaces.
- 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
DHT11 Humidity and Temperature Sensor
- Description: A sensor for measuring temperature and humidity.
- Pins: VDD, DATA, NULL, GND
HC-SR04 Ultrasonic Distance Sensor
- Description: A sensor for measuring distance using ultrasonic waves.
- Pins: VCC, TRIG, ECHO, GND
Water Pump
- Description: A pump for moving water.
- Pins: Positive, Negative
Piezo Buzzer
- Description: A buzzer for generating sound.
- Pins: Pin 1, Pin 2
USB Power
- Description: A power source via USB.
- Pins: +, -
16x2 I2C LCD
- Description: A 16x2 character LCD with I2C interface.
- Pins: GND, VCC, SDA, SCL
12V Battery
- Description: A 12V power source.
- Pins: +, -
1-Channel Relay (5V 10A)
- Description: A relay for switching high-power devices.
- Pins: NC, Signal, C, Power, NO, Ground
SparkFun Soil Moisture Sensor
- Description: A sensor for measuring soil moisture.
- Pins: VCC, GND, SIG
GND
- Description: Ground connection.
- Pins: GND
Vcc
- Description: Power supply connection.
- Pins: Vcc
Wiring Details
ESP8266 NodeMCU
- D1: Connected to SCL pin of 16x2 I2C LCD
- D2: Connected to SDA pin of 16x2 I2C LCD
- D3: Connected to TRIG pin of HC-SR04 Ultrasonic Distance Sensor
- D4: Connected to ECHO pin of HC-SR04 Ultrasonic Distance Sensor
- D5: Connected to Pin 1 of Piezo Buzzer
- D7: Connected to DATA pin of DHT11 Humidity and Temperature Sensor
- D8: Connected to Signal pin of 1-Channel Relay
- A0: Connected to SIG pin of SparkFun Soil Moisture Sensor
DHT11 Humidity and Temperature Sensor
- VDD: Connected to Vcc
- DATA: Connected to D7 pin of ESP8266 NodeMCU
- GND: Connected to GND
HC-SR04 Ultrasonic Distance Sensor
- VCC: Connected to Vcc
- TRIG: Connected to D3 pin of ESP8266 NodeMCU
- ECHO: Connected to D4 pin of ESP8266 NodeMCU
- GND: Connected to GND
Water Pump
- Positive: Connected to NO pin of 1-Channel Relay
- Negative: Connected to Negative pin of 12V Battery
Piezo Buzzer
- Pin 1: Connected to D5 pin of ESP8266 NodeMCU
- Pin 2: Connected to GND
16x2 I2C LCD
- GND: Connected to GND
- VCC: Connected to Vcc
- SDA: Connected to D2 pin of ESP8266 NodeMCU
- SCL: Connected to D1 pin of ESP8266 NodeMCU
1-Channel Relay (5V 10A)
- Signal: Connected to D8 pin of ESP8266 NodeMCU
- C: Connected to Positive pin of 12V Battery
- Power: Connected to Vcc
- NO: Connected to Positive pin of Water Pump
- Ground: Connected to GND
SparkFun Soil Moisture Sensor
- VCC: Connected to Vcc
- GND: Connected to GND
- SIG: Connected to A0 pin of ESP8266 NodeMCU
GND
- GND: Connected to various components as specified above
Vcc
- Vcc: Connected to various components as specified above
Code
No code provided for this circuit.