Circuit Documentation
Summary
The circuit in question is designed to control a 5V mini water pump using an ESP8266 NodeMCU microcontroller. The system is powered by a 9V battery and includes a 5V relay to switch the pump on and off. A rocker switch is used to provide manual control over the operation of the pump. The relay is controlled by the ESP8266 NodeMCU, which can be programmed to automate the pump's operation based on specific conditions or inputs.
Component List
5V Relay
- Description: A relay is an electrically operated switch that allows you to control a high-power circuit with a low-power signal.
- Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
ESP8266 NodeMCU
- Description: A microcontroller board with built-in Wi-Fi, suitable for IoT projects and complex automation tasks.
- 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
9V Battery
- Description: A standard 9V battery used to provide power to the circuit.
- Pins: -, +
5V Mini Water Pump
- Description: A small pump that operates at 5V, used for moving water.
- Pins: positive pin, negative pin
Rocker Switch
- Description: A simple on/off switch to control the flow of electricity in a circuit.
- Pins: output, input
Wiring Details
5V Relay
- Common terminal connected to the positive pin of the 5V mini water pump.
- Normally Closed, VCC connected to the positive (+) terminal of the 9V Battery.
- In connected to the D2 pin of the ESP8266 NodeMCU.
- GND connected to the GND pin of the ESP8266 NodeMCU.
ESP8266 NodeMCU
- VIN connected to the positive (+) terminal of the 9V Battery.
- GND connected to the negative (-) terminal of the 9V Battery and the negative pin of the 5V mini water pump.
- D2 connected to the In pin of the 5V relay.
- D4 connected to the input pin of the rocker switch.
9V Battery
- Positive (+) terminal connected to the VCC of the 5V relay and VIN of the ESP8266 NodeMCU.
- Negative (-) terminal connected to the GND of the ESP8266 NodeMCU and the negative pin of the 5V mini water pump.
5V Mini Water Pump
- Positive pin connected to the Common terminal of the 5V relay.
- Negative pin connected to the output pin of the rocker switch.
Rocker Switch
- Input pin connected to the D4 pin of the ESP8266 NodeMCU.
- Output pin connected to the negative pin of the 5V mini water pump.
Documented Code
Microcontroller: ESP8266 NodeMCU
File: sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
File: documentation.txt
(No additional documentation provided for the code)
This concludes the documentation for the given circuit. The code provided is a template and should be further developed to implement the desired functionality of the circuit.
