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

Arduino UNO Controlled Water Level Detection with Servo Adjustment

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled Water Level Detection with Servo Adjustment

Circuit Documentation

Summary of the Circuit

This circuit consists of an Arduino UNO microcontroller, a Micro servo 9G, and a Water Level Sensor. The Arduino UNO serves as the central processing unit, controlling the servo based on the input from the water level sensor. The servo is powered by the 5V output from the Arduino and receives pulse-width modulation (PWM) signals to control its position. The water level sensor provides an analog signal to the Arduino, indicating the current water level.

Component List

Arduino UNO

Micro servo 9G

Water Level Sensor

Wiring Details

Arduino UNO

Micro servo 9G

Water Level Sensor

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:

}

This code is a template for the Arduino UNO and does not contain any specific functionality. It consists of two primary functions: setup(), which runs once when the microcontroller is reset or powered on, and loop(), which runs continuously as long as the microcontroller is powered.

To implement the control of the Micro servo 9G based on the Water Level Sensor input, the user would need to add code within these functions. For example, initializing the servo on a specific pin in setup() and reading the water level sensor in loop() to determine the position of the servo.