Circuit Documentation
Summary of the Circuit
This circuit is designed to control a Mini Water Pump using an Arduino UNO microcontroller and a 5V relay. The relay is used to switch the high-current circuit of the pump on and off, while the Arduino UNO provides the control logic. A rocker switch is included to manually control the power supply to the relay.
Component List
Rocker Switch
- Pins: output, input
- Description: A manual switch that can toggle the power supply to the relay.
Mini Water Pump
- Pins: VCC, GND
- Description: A pump that operates on a 5V supply, used for pumping water.
5V Relay
- Pins: Normally Open (NO), Common terminal (COM), Normally Closed (NC), In, GND, VCC
- Description: An electromechanical switch that allows the Arduino to control high-power devices like the Mini Water Pump.
Arduino UNO
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13
- Description: A microcontroller board based on the ATmega328P, used for controlling the logic of the circuit.
Wiring Details
Rocker Switch
- Output: Connected to the VCC of the 5V relay.
- Input: Connected to the Normally Open (NO) terminal of the 5V relay.
Mini Water Pump
- VCC: Connected to the Common terminal (COM) of the 5V relay.
- GND: Connected to the GND of the Arduino UNO.
5V Relay
- VCC: Connected to the 5V of the Arduino UNO and the output of the rocker switch.
- GND: Connected to the GND of the Arduino UNO.
- Normally Open (NO): Connected to the input of the rocker switch.
- Common terminal (COM): Connected to the VCC of the Mini Water Pump.
- In: Connected to the D8 pin of the Arduino UNO.
Arduino UNO
- 5V: Provides power to the VCC of the 5V relay.
- GND: Common ground for the relay and the Mini Water Pump.
- D8: Controls the relay's In pin to switch the pump on and off.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Notes (documentation.txt)
No additional code documentation was provided.
