Arduino UNO-Based Battery-Powered Water Pump Controller with 5V Relay
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, a 9V battery, a 5V relay, a water pump, and a 3.7V battery. The Arduino UNO controls the relay, which in turn controls the water pump. The 9V battery powers the Arduino UNO, while the 3.7V battery powers the water pump through the relay.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
9V Battery
- Description: A standard 9V battery used to power the Arduino UNO.
- Pins: -, +
5V Relay
- Description: A relay module that operates at 5V, used to control the water pump.
- Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
Water Pump
- Description: A small water pump.
- Pins: positive, negative
3.7V Battery
- Description: A standard 3.7V battery used to power the water pump.
- Pins: +, -
Wiring Details
Arduino UNO
- 5V connected to VCC of the 5V relay.
- GND connected to GND of the 5V relay.
- GND connected to - of the 9V battery.
- Vin connected to + of the 9V battery.
- D2 connected to In of the 5V relay.
9V Battery
- - connected to GND of the Arduino UNO.
- + connected to Vin of the Arduino UNO.
5V Relay
- VCC connected to 5V of the Arduino UNO.
- GND connected to GND of the Arduino UNO.
- In connected to D2 of the Arduino UNO.
- Normally Open connected to positive of the water pump.
- Common terminal connected to + of the 3.7V battery.
Water Pump
- positive connected to Normally Open of the 5V relay.
- negative connected to - of the 3.7V battery.
3.7V Battery
- + connected to Common terminal of the 5V relay.
- - connected to negative of the water pump.
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 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 Arduino UNO.