ESP8266 Controlled Soil Moisture Monitoring and Watering System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
The circuit in question appears to be a soil moisture monitoring system with automated water pump control. It uses multiple YL-69 soil moisture sensors to measure the moisture level of the soil, which are interfaced with a Soil Moisture Module. The data from these modules are then read by an ADS1115 analog-to-digital converter (ADC) for precise measurement. An ESP8266 NodeMCU microcontroller is used to process the sensor data and control the system. The system also includes a 4-channel relay module to control multiple 5V mini water pumps based on the moisture levels detected. The entire system is powered by a 12V battery, with voltage regulation provided for the 5V components.
Component List
YL-69 Soil Moisture Sensor
- Description: A sensor that measures the moisture content in the soil.
- Pins:
+,-
Soil Moisture Module
- Description: An interface module for the YL-69 sensor, providing both analog and digital outputs.
- Pins:
positive,negative,Analog,Digital,Ground,VCC
ADS1115
- Description: A precision ADC with I2C interface, used for reading analog sensor data.
- Pins:
VDD,GND,SCL,SDA,ADDR,ALRT,A0,A1,A2,A3
5V Mini Water Pump
- Description: A small pump used for watering plants, controlled by the relay module.
- Pins:
positive pin,negative pin
ESP8266 NodeMCU
- Description: A microcontroller with Wi-Fi capability, used for processing sensor data and controlling the relay module.
- 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
Relay 4 Channel 5V
- Description: A relay module with 4 channels, used to control the water pumps.
- Pins:
GND,IN1,IN2,IN3,IN4,VCC,COM1,COM2,COM3,COM4,NO1,NO2,NO3,NO4,NC1,NC2,NC3,NC4
Battery 12V
- Description: A 12V battery providing power to the system.
- Pins:
+,-
Wiring Details
YL-69 Soil Moisture Sensor
+: Connected to thepositivepin of the corresponding Soil Moisture Module.-: Connected to thenegativepin of the corresponding Soil Moisture Module.
Soil Moisture Module
positive: Connected to the+pin of the corresponding YL-69 Soil Moisture Sensor.negative: Connected to the-pin of the corresponding YL-69 Soil Moisture Sensor.Analog: Connected to theA0-A3pins of the ADS1115 for analog data reading.Digital: Not used in this circuit.Ground: Connected to theGNDpin of the ESP8266 NodeMCU and ADS1115.VCC: Connected to the3V3pin of the ESP8266 NodeMCU.
ADS1115
VDD: Connected to the3V3pin of the ESP8266 NodeMCU.GND: Connected to theGNDpin of the ESP8266 NodeMCU.SCL: Connected to theD2pin of the ESP8266 NodeMCU.SDA: Connected to theD1pin of the ESP8266 NodeMCU.ADDR,ALRT: Not used in this circuit.A0-A3: Connected to theAnalogpins of the Soil Moisture Modules.
5V Mini Water Pump
positive pin: Connected to theNO1-NO4pins of the Relay 4 Channel 5V.negative pin: Commonly connected to the-pin of the 12V Battery.
ESP8266 NodeMCU
3V3: Provides power to the ADS1115, Relay 4 Channel 5V, and Soil Moisture Modules.GND: Common ground for the ADS1115, Relay 4 Channel 5V, and Soil Moisture Modules.D1,D2: I2C communication with the ADS1115.D4-D7: Control signals for the Relay 4 Channel 5V.
Relay 4 Channel 5V
GND: Connected to theGNDpin of the ESP8266 NodeMCU.IN1-IN4: Controlled by theD6-D7andD4-D5pins of the ESP8266 NodeMCU.VCC: Powered by the3V3pin of the ESP8266 NodeMCU.COM1-COM4: Commonly connected to the+pin of the 12V Battery.NO1-NO4: Connected to thepositive pinof the corresponding 5V Mini Water Pumps.
Battery 12V
+: Provides power to theCOM1-COM4pins of the Relay 4 Channel 5V.-: Common ground for the 5V Mini Water Pumps.
Documented Code
No code was provided for the ESP8266 NodeMCU or any other programmable components in the circuit. The code would typically include the initialization of the I2C interface, reading of the analog values from the ADS1115, processing the moisture level data, and controlling the relay module based on the moisture thresholds to activate the water pumps.