Circuit Documentation
Summary of the Circuit
This circuit is designed to control a water pump using an ESP8266 NodeMCU microcontroller and a relay module. The ESP8266 NodeMCU is responsible for triggering the relay, which in turn controls the power to the water pump. The circuit is powered by a battery, and the ground connections are shared among the components.
Component List
ESP8266 NodeMCU
- Description: A Wi-Fi capable microcontroller module based on the ESP8266 chip.
- Pins: D0, D1, D2, D3, D4, 3V3, GND, D5, D6, D7, D8, RX, TX, A0, RSV, SD3, SD2, SD1, CMD, SD0, CLK, EN, RST, VIN
Water Pump
- Description: An electromechanical device designed to move water through it.
- Pins: positive, negative
Battery
- Description: A power source for the circuit.
- Pins: + (positive), - (negative)
Relay Module
- Description: An electrically operated switch that allows the microcontroller to control higher power loads.
- Pins: NC (Normally Closed), COM (Common), INPUT, GND (Ground), VCC (Voltage Common Collector)
Wiring Details
ESP8266 NodeMCU
- D1: Connected to the VCC of the RELAY MODULE to provide control signal.
- GND: Common ground shared with WATER PUMP, RELAY MODULE, and BATTERY.
- 3V3: Connected to the GND of the RELAY MODULE to provide power.
Water Pump
- positive: Connected to the COM of the RELAY MODULE to receive power when the relay is triggered.
- negative: Connected to the common ground.
Battery
- + (positive): Connected to the NC of the RELAY MODULE to provide power to the WATER PUMP when the relay is triggered.
- - (negative): Connected to the common ground.
Relay Module
- VCC: Connected to the D1 of the ESP8266 NodeMCU to receive control signal.
- INPUT: Connected to the common ground.
- GND: Connected to the 3V3 of the ESP8266 NodeMCU to receive power.
- NC: Connected to the + of the BATTERY to provide power to the WATER PUMP when the relay is triggered.
- COM: Connected to the positive of the WATER PUMP to control its power state.
Documented Code
There is no code provided for the microcontroller in this circuit. The ESP8266 NodeMCU would typically be programmed to control the relay module based on some condition, such as a timer or sensor input. However, without the code, we cannot document the specific behavior of the microcontroller in this circuit.
