Site icon Circuit Ideas for You

How to Create a Water Level Sensor Circuit with Arduino

An enjoyable and instructive project that teaches you fundamental electronics, programming and sensor integration in making a water level sensor with an Arduino Uno.

This tutorial will show you how to build a working water level sensor using the widely used Arduino platform, whether your goal is to avoid overflow, monitor water levels in tanks, or establish automatic irrigation systems.

The Arduino Uno microcontroller, renowned for its adaptability and user friendliness, will be used in this project along with a water level sensor module, an IC 7809 voltage regulator, an LED and a resistor.

You may develop and upload code to the Arduino, connect these parts, and analyze sensor data to make decisions depending on water levels by following this guide.

Coding and Explanation:

const int waterSensorPin = 2; // Replace 2 with the actual pin number used for the water level sensor

void setup() {
  pinMode(waterSensorPin, INPUT);
  Serial.begin(9600);
}

void loop() {
  int sensorValue = digitalRead(waterSensorPin);

  if (sensorValue == HIGH) {
    Serial.println("Water detected");
  } else {
    Serial.println("No water detected");
  }

  delay(1000); // Delay for 1 second
}

Explanation:

Circuit Working:

Parts List:

ComponentQuantity
Arduino UNO board1
IC 78091
Water level sensor1
Resistor 220Ω 1/4 Watt1
Red LED 5mm 20mA1
Multimeter1
Probes Red and Black2

In the above circuit diagram when the voltage on the output pin increases along with the water level as a drop of water falls inside the glass.

The water detecting component of the sensor on the PCB is what causes this change in voltage output.

The module for measuring water level is made up of two probes.

One of these probes completes a circuit and permits electricity to flow when it is submerged in water.

The other probe serves as a reference point and stays dry.

IC 7809 the Arduino and the water level sensor are powered by a consistent 9V supply from this voltage regulator.

The three pins on the sensor module two of which are power pins need to be linked to the Arduinos ground and 5V pins.

This is necessary for the circuit to operate dependably.

LED and Resistor are to show whether or not there is water present, an LED and resistor are linked in series.

The LED will turn on when the water level sensor finds water.

To keep the LED from burning out, the resistor restricts the amount of current that passes through it.

How to Build:

To build a Water Level Sensor Circuit with Arduino following steps should be followed for connections:

Testing:

Conclusion:

Using the above components mentioned in circuit diagram you may construct a working circuit that reliably detects the presence or absence of water by following the instructions provided.

More sophisticated functionality, such issuing alarms or managing other devices based on the water level, might be added to this project.

References:

Simple water level indicator with input and output project

Exit mobile version