Circuit Documentation
Summary of the Circuit
The circuit is designed to control multiple Mini Diaphragm Water Pumps and a Plastic Solenoid Valve using an ESP32 Expansion Board. The ESP32 microcontroller interfaces with a 4-channel relay module to switch the pumps and the valve on and off. The power supply provides 12V DC to the ESP32, the relay module, and the pumps. The 220V AC input to the power supply is connected to a separate 220V power component, which could represent the main AC power source.
Component List
POWER SUPPLY 12V 5AMP
- Description: A power supply that converts 220V AC to 12V DC.
- Pins: 220V Positive Pole (AC), 220V Negative Pole (AC), GND, GND (DC), 12V-24V Output (DC)
Relay 4 Channel 5v
- Description: A 4-channel relay module that allows the ESP32 to control high-power devices.
- Pins: GND, IN1, IN2, IN3, IN4, VCC, COM1, COM2, COM3, COM4, NO1, NO2, NO3, NO4, NC1, NC2, NC3, NC4
power 220v
- Description: Represents the main AC power source.
- Pins: hot wire, neutral wire
ESP32 - Expansion Board
- Description: A microcontroller board based on the ESP32 chip, used for controlling the relays.
- Pins: +, -, EN, VP, VN, D34, D32, D33, D25, D26, D27, D14, D12, D13, D23, D22, TX0, RX0, D21, D19, D18, D5, D17, D16, D4, D2, D15, VCC, G, 5V, 3.3V, V
Mini Diaphragm Water Pump
- Description: A pump used for moving water.
- Pins: Positive (+), Negative (-)
Plastic Solenoid Valve
- Description: An electrically-controlled valve used for controlling the flow of water.
- Pins: pin1, pin2
Wiring Details
POWER SUPPLY 12V 5AMP
- 12V-24V Output (DC) connected to ESP32 Expansion Board (-) and (G)
- GND (DC) connected to Mini Diaphragm Water Pumps (Positive +) and Plastic Solenoid Valve (pin2)
- 220V Positive Pole (AC) connected to power 220v (hot wire)
- 220V Negative Pole (AC) connected to power 220v (neutral wire)
Relay 4 Channel 5v
- GND connected to ESP32 Expansion Board (G)
- IN1 connected to ESP32 Expansion Board (D23)
- IN2 connected to ESP32 Expansion Board (D22)
- IN3 connected to ESP32 Expansion Board (D21)
- IN4 connected to ESP32 Expansion Board (D19)
- VCC connected to ESP32 Expansion Board (VCC)
- COM1, COM2, COM3, COM4 connected to ESP32 Expansion Board (G)
- NO1 connected to Mini Diaphragm Water Pump (Negative -)
- NO2 connected to Mini Diaphragm Water Pump (Negative -)
- NO3 connected to Mini Diaphragm Water Pump (Negative -)
- NO4 connected to Plastic Solenoid Valve (pin1)
Mini Diaphragm Water Pump
- Positive (+) connected to POWER SUPPLY 12V 5AMP (GND (DC))
- Negative (-) connected to Relay 4 Channel 5v (NO1, NO2, NO3)
Plastic Solenoid Valve
- pin1 connected to Relay 4 Channel 5v (NO4)
- pin2 connected to POWER SUPPLY 12V 5AMP (GND (DC))
Documented Code
There is no code provided for the ESP32 microcontroller. The code would typically be responsible for controlling the GPIO pins connected to the relay module, thus controlling the operation of the water pumps and the solenoid valve. Without the code, the functionality of the circuit cannot be fully described.
