Circuit Documentation
Summary of the Circuit
This circuit is designed to control a Mini Diaphragm Water Pump using an ESP32 microcontroller and a 1 Channel 5V Relay Module. The ESP32 is used to trigger the relay, which in turn controls the power to the water pump. The pump is powered by a 12v power supply. Additionally, the circuit includes a Flora SI1145 UV Sensor for measuring UV levels, which interfaces with the ESP32 via I2C communication.
Component List
ESP32 - 38 pins
- Description: A microcontroller with Wi-Fi and Bluetooth capabilities and a variety of GPIO pins.
- Pins: 3V3, EN, SP, SN, G34, G35, G32, G33, G25, G26, G27, G14, G12, GND, G13, SD2, SD3, CMD, 5V, G23, G22, TXD, RXD, G21, G19, G18, G5, G17, G16, G4, G0, G2, G15, SD1, SD0, CLK
Mini Diaphragm Water Pump
- Description: A pump used for moving water.
- Pins: Positive (+), Negative (-)
1 Channel 5V Relay Module
- Description: A relay module that allows for low-voltage circuits to control high-power devices.
- Pins: VCC+, VCC- (GND), IN, N.O., COM, N.C.
12v Power Supply
- Description: Provides 12 volts of power to the circuit.
- Pins: +, -
Flora SI1145 UV Sensor
- Description: A sensor for measuring UV light intensity.
- Pins: GND, SCL, SDA, 3.3V
Wiring Details
ESP32 - 38 pins
- 5V connected to Relay Module VCC+
- G22 connected to Relay Module IN
- GND connected to Relay Module VCC- (GND)
Mini Diaphragm Water Pump
- Positive (+) connected to 12v Power Supply -
- Negative (-) connected to Relay Module COM
1 Channel 5V Relay Module
- VCC+ connected to ESP32 5V
- IN connected to ESP32 G22
- VCC- (GND) connected to ESP32 GND
- N.O. connected to 12v Power Supply +
- COM connected to Water Pump Negative (-)
12v Power Supply
-
- connected to Relay Module N.O.
-
- connected to Water Pump Positive (+)
Flora SI1145 UV Sensor
- GND connected to ESP32 GND (not specified in net list, common practice)
- SCL connected to ESP32 SCL (not specified in net list, common practice)
- SDA connected to ESP32 SDA (not specified in net list, common practice)
- 3.3V connected to ESP32 3V3 (not specified in net list, common practice)
Documented Code
No code has been provided for the microcontroller. The ESP32 would typically be programmed to control the relay based on sensor inputs or external commands, and to read data from the UV sensor. The code would be responsible for initializing the GPIO pins, setting up I2C communication, and implementing the control logic for the relay and data acquisition from the UV sensor.
