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

ESP8266 NodeMCU Controlled Smart Irrigation System with Soil Moisture Sensing and DHT22 Temperature/Humidity Monitoring

View and Edit Project In Cirkit DesignerImage of ESP8266 NodeMCU Controlled Smart Irrigation System with Soil Moisture Sensing and DHT22 Temperature/Humidity Monitoring

Circuit Documentation

Summary of the Circuit

This circuit is designed to monitor environmental parameters such as soil moisture and temperature/humidity, and control a water pump based on the sensor readings. It uses an ESP8266 NodeMCU microcontroller to read data from a DHT22 temperature and humidity sensor and a SparkFun Soil Moisture Sensor. The ESP8266 also controls a 12V single-channel relay that powers a water pump. The power for the circuit is provided by a 12V power supply, which is regulated to 5V by an LM340T5 7805 voltage regulator to power the ESP8266 and sensors. An IRFZ44N MOSFET is used to switch the water pump on and off, and a resistor is used to pull up the data line from the DHT22 sensor.

Component List

LM340T5 7805 (Voltage Regulator)

12V Power Supply

2.1mm Barrel Jack with Terminal Block

ESP8266 NodeMCU (Microcontroller)

DHT22 (Temperature and Humidity Sensor)

SparkFun Soil Moisture Sensor

12V Single Channel Relay

Water Pump

IRFZ44N (MOSFET)

Resistor

Wiring Details

LM340T5 7805 (Voltage Regulator)

12V Power Supply

2.1mm Barrel Jack with Terminal Block

ESP8266 NodeMCU (Microcontroller)

DHT22 (Temperature and Humidity Sensor)

SparkFun Soil Moisture Sensor

12V Single Channel Relay

Water Pump

IRFZ44N (MOSFET)

Resistor

Documented Code

Since no code was provided, this section is left blank. The code would typically include the initialization of the microcontroller's I/O pins, the setup of the sensor libraries, the main loop to read sensor data, and the logic to control the relay and water pump based on the sensor readings.