Circuit Documentation
Summary
This circuit is designed to control multiple water pumps using relay modules, an ESP32 microcontroller, and various sensors including soil moisture sensors and a DHT11 humidity and temperature sensor. The ESP32 microcontroller reads data from the sensors and controls the relay modules to activate the water pumps based on the sensor readings.
Component List
Relay module 5v-30v
- Description: A relay module used to control high voltage devices like water pumps.
- Pins: common contact, normally open, normally closed, trigger, V-, V+
ESP32
- Description: A microcontroller with Wi-Fi and Bluetooth capabilities.
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, VIN, 3V3, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, BOOT
9V Battery
- Description: A power source for the circuit.
- Pins: -, +
Soil Moisture Sensor
- Description: A sensor used to measure the moisture level in the soil.
- Pins: gnd, vcc, aout
Water Pump
- Description: A pump used to water plants.
- Pins: positive, negative
DHT11 Humidity and Temperature Sensor
- Description: A sensor used to measure humidity and temperature.
- Pins: VDD, DATA, NULL, GND
Wiring Details
Relay module 5v-30v
- V+ is connected to the 3V3 pin of the ESP32.
- V- is connected to the GND pin of the ESP32.
- Trigger is connected to:
- D15 pin of the ESP32 for one relay module.
- D2 pin of the ESP32 for another relay module.
- D4 pin of the ESP32 for another relay module.
- RX2 pin of the ESP32 for another relay module.
- Common contact is connected to the positive pin of the water pumps.
- Normally open is connected to the + pin of the 9V Battery.
ESP32
- 3V3 is connected to the V+ pin of the relay modules and the VCC pin of the soil moisture sensors and DHT11 sensor.
- GND is connected to the V- pin of the relay modules and the GND pin of the soil moisture sensors and DHT11 sensor.
- D21 is connected to the DATA pin of the DHT11 sensor.
- D22 is connected to the NULL pin of the DHT11 sensor.
- D15 is connected to the trigger pin of one relay module.
- D2 is connected to the trigger pin of another relay module.
- D4 is connected to the trigger pin of another relay module.
- RX2 is connected to the trigger pin of another relay module.
- D5 is connected to the aout pin of one soil moisture sensor.
- D18 is connected to the aout pin of another soil moisture sensor.
- D19 is connected to the aout pin of another soil moisture sensor.
9V Battery
- + is connected to the normally open pin of the relay modules.
- - is connected to the negative pin of the water pumps.
Soil Moisture Sensor
- VCC is connected to the 3V3 pin of the ESP32.
- GND is connected to the GND pin of the ESP32.
- AOUT is connected to:
- D5 pin of the ESP32 for one sensor.
- D18 pin of the ESP32 for another sensor.
- D19 pin of the ESP32 for another sensor.
Water Pump
- Positive is connected to the common contact pin of the relay modules.
- Negative is connected to the - pin of the 9V Battery.
DHT11 Humidity and Temperature Sensor
- VDD is connected to the 3V3 pin of the ESP32.
- DATA is connected to the D21 pin of the ESP32.
- NULL is connected to the D22 pin of the ESP32.
- GND is connected to the GND pin of the ESP32.
Code
No code is provided for this circuit.