Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO-Based Ultrasonic Sensor Water Pump Controller with 12V Relay and Battery Power

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Ultrasonic Sensor Water Pump Controller with 12V Relay and Battery Power

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller, a 12V relay, an ultrasonic sensor, a 5V mini water pump, and a 2x 18650 battery pack. The Arduino UNO controls the relay and the ultrasonic sensor, which in turn controls the water pump. The relay is powered by the Arduino and the battery pack, and it switches the water pump on and off based on signals from the Arduino.

Component List

Arduino UNO

12V Relay

Ultrasonic Sensor

2x 18650 Battery Pack

5V Mini Water Pump

Wiring Details

Arduino UNO

12V Relay

Ultrasonic Sensor

2x 18650 Battery Pack

5V Mini Water Pump

Documented Code

Arduino UNO Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This code is a basic template for the Arduino UNO. The setup() function is where you initialize your components and the loop() function is where you place the code that needs to run continuously.

Additional Documentation

This section is reserved for any additional documentation or notes that may be required for understanding the circuit or the code.