Circuit Documentation
Summary
This circuit involves an ESP32 microcontroller, a 5V relay, a 9V battery, a 5V mini water pump, and a Micro servo 9G. The ESP32 controls the relay and the servo, while the relay switches the water pump on and off. The 9V battery powers the relay and the water pump.
Component List
ESP32
- Description: A powerful 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
5V Relay
- Description: An electromechanical switch used to control high power devices.
- Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
9V Battery
- Description: A power source providing 9V DC.
- Pins: -, +
5V Mini Water Pump
- Description: A small water pump operating at 5V.
- Pins: positive pin, negative pin
Micro Servo 9G
- Description: A small servo motor used for precise control of angular position.
- Pins: GND, +5V, PWM
Wiring Details
ESP32
- GND: Connected to GND of Micro servo 9G and 5V relay.
- 3V3: Connected to +5V of Micro servo 9G and VCC of 5V relay.
- D14: Connected to PWM of Micro servo 9G.
- D5: Connected to In of 5V relay.
5V Relay
- Normally Open: Connected to + of 9V Battery.
- Common terminal: Connected to positive pin of 5V mini water pump.
- GND: Connected to GND of ESP32 and Micro servo 9G.
- VCC: Connected to 3V3 of ESP32.
- In: Connected to D5 of ESP32.
9V Battery
- +: Connected to Normally Open of 5V relay.
- -: Connected to negative pin of 5V mini water pump.
5V Mini Water Pump
- positive pin: Connected to Common terminal of 5V relay.
- negative pin: Connected to - of 9V Battery.
Micro Servo 9G
- GND: Connected to GND of ESP32 and 5V relay.
- +5V: Connected to 3V3 of ESP32.
- PWM: Connected to D14 of ESP32.
Documented Code
ESP32 Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the ESP32 microcontroller.
