NodeMCU ESP8266 Based Smart Irrigation System with PIR and Humidity Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
The circuit in question is designed to interface a NodeMCU V3 ESP8266 microcontroller with various sensors and output devices to create an interactive system. The system includes a PIR sensor for motion detection, a DHT11 sensor for measuring temperature and humidity, a YL-69 soil moisture sensor, and an I2C LCD screen for displaying data. A 1-Channel Relay is used to control a Mini Water Pump, and the entire circuit is powered by a 5V battery.
Component List
NodeMCU V3 ESP8266
- Microcontroller with WiFi capability.
- Pins: A0, GND, VU, S3, S2, S1, SC, S0, SK, 3V3, EN, RST, Vin, D0, D1, D2, D3, D4, D5, D6, D7, D8, RX, TX.
PIR Sensor
- Motion detection sensor.
- Pins: VDD, SIG, GND.
DHT11 Humidity and Temperature Sensor
- Sensor for measuring ambient temperature and humidity.
- Pins: VDD, DATA, NULL, GND.
1-Channel Relay (5V 10A)
- Electromechanical switch for controlling high power devices.
- Pins: NC, signal, C, power, NO, ground.
Mini Water Pump
- Pump for moving water.
- Pins: 5V, GND.
5V Battery
- Power source for the circuit.
- Pins: positive, negative.
I2C LCD 16x2 Screen
- Liquid crystal display for showing text and numbers.
- Pins: SCL, SDA, VCC (5V), GND, VDD, VO, RS, RW, E, D0, D1, D2, D3, D4, D5, D6, D7, BLA, BLK.
Humidity YL-69
- Soil moisture sensor.
- Pins: A0, D0, GND, VCC.
Wiring Details
NodeMCU V3 ESP8266
- GND connected to the ground of the battery, Mini Water Pump, PIR Sensor, DHT11 Sensor, I2C LCD Screen, 1-Channel Relay, and YL-69 Sensor.
- Vin connected to the positive terminal of the battery.
- 3V3 connected to VDD of the PIR Sensor, DHT11 Sensor, I2C LCD Screen, and YL-69 Sensor.
- D1 connected to SCL of the I2C LCD Screen.
- D2 connected to SDA of the I2C LCD Screen.
- D3 connected to A0 of the YL-69 Sensor.
- D4 connected to DATA of the DHT11 Sensor.
- D5 connected to the signal pin of the 1-Channel Relay.
- D6 connected to SIG of the PIR Sensor.
PIR Sensor
- VDD connected to 3V3 of NodeMCU.
- SIG connected to D6 of NodeMCU.
- GND connected to the ground network.
DHT11 Humidity and Temperature Sensor
- DATA connected to D4 of NodeMCU.
- VDD connected to 3V3 of NodeMCU.
- GND connected to the ground network.
1-Channel Relay (5V 10A)
- Signal connected to D5 of NodeMCU.
- Power connected to the positive terminal of the battery.
- Ground connected to the ground network.
- C (Common) and NO (Normally Open) connected to the Mini Water Pump.
Mini Water Pump
- 5V connected to NO and C of the 1-Channel Relay.
- GND connected to the ground network.
5V Battery
- Positive terminal connected to Vin of NodeMCU and power of the 1-Channel Relay.
- Negative terminal connected to the ground network.
I2C LCD 16x2 Screen
- SCL connected to D1 of NodeMCU.
- SDA connected to D2 of NodeMCU.
- VCC (5V) connected to 3V3 of NodeMCU.
- GND connected to the ground network.
Humidity YL-69
- A0 connected to D3 of NodeMCU.
- VCC connected to 3V3 of NodeMCU.
- GND connected to the ground network.
Documented Code
No code was provided for the microcontroller. The documentation of the code would typically include a description of the functionality, setup, and loop functions, as well as any libraries used and the purpose of each function within the code. Since no code is available, this section cannot be completed. If code becomes available, it should be documented here following the structure mentioned above.