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

How to Use Non contact water level sensor: Examples, Pinouts, and Specs

Image of Non contact water level sensorDesign with Non contact water level sensor in Cirkit Designer

Introduction

A non-contact water level sensor is an electronic device that uses ultrasonic technology to measure the distance to the water surface. This sensor provides accurate water level readings without requiring any physical contact with the liquid, making it ideal for applications where traditional contact-based sensors may be impractical or unsanitary. Common applications include water conservation systems, fluid tanks in industrial processes, and household appliances like coffee makers or washing machines.

Explore Projects Built with Non contact water level sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of ESP32-Controlled Water Level Monitoring System with LCD Display and Alert Indicators: A project utilizing Non contact water level sensor in a practical application
ESP32-Controlled Water Level Monitoring System with LCD Display and Alert Indicators

This circuit is designed to monitor water levels using two non-contact water level sensors, with the ability to display the status on an LCD I2C display and alert through a buzzer and two green LEDs. The ESP32 microcontroller serves as the central processing unit, reading sensor signals and controlling the display and alert system. The circuit is likely intended for applications where water level monitoring is critical, such as in tanks or reservoirs, with visual and audible indicators for high or low water conditions.

Open Project in Cirkit Designer
Image of Arduino-Controlled Ultrasonic Water Level Monitoring and Pump Management System: A project utilizing Non contact water level sensor in a practical application
Arduino-Controlled Ultrasonic Water Level Monitoring and Pump Management System

This circuit is designed to monitor water levels using an HC-SR04 Ultrasonic Sensor and display the information on a 20x4 LCD with I2C interface, controlled by an Arduino UNO. When the water level falls below a predefined threshold, the Arduino activates a relay module, which in turn powers a mini diaphragm water pump to refill the tank. The system aims to maintain water levels within set boundaries, automating the process of water level management.

Open Project in Cirkit Designer
Image of Arduino-Controlled Ultrasonic Water Level Indicator with LCD Display and Relay Switching: A project utilizing Non contact water level sensor in a practical application
Arduino-Controlled Ultrasonic Water Level Indicator with LCD Display and Relay Switching

This circuit is designed to monitor water levels using an HC-SR04 Ultrasonic Sensor and display the information on an LCD I2C Display. An Arduino UNO controls the sensor to measure distance, calculates the water level as a percentage, and toggles a relay to control a pump based on the water level and manual input from a pushbutton. The system allows for manual override of the pump operation and stores the set water level threshold in EEPROM for persistent control across power cycles.

Open Project in Cirkit Designer

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Number Name Description
1 VCC Power supply (5V DC)
2 GND Ground
3 TRIG Trigger input (TTL level)
4 ECHO Echo output (TTL level)
5 OUT Analog or digital output (model dependent)

Usage Instructions

How to Use the Component in a Circuit

  1. Power Supply: Connect the VCC pin to a 5V power supply and the GND pin to the ground.
  2. Signal Pins: Connect the TRIG pin to a digital output on your microcontroller and the ECHO pin to a digital input.
  3. Output: Depending on the model, the OUT pin may provide an analog voltage proportional to the distance or a digital signal.

Important Considerations and Best Practices

Example Code for Arduino UNO

// Define the Arduino pins connected to the sensor's TRIG and ECHO pins
const int trigPin = 9;
const int echoPin = 10;

void setup() {
  // Initialize serial communication
  Serial.begin(9600);
  // Define the TRIG pin as an output and the ECHO pin as an input
  pinMode(trigPin, OUTPUT);
  pinMode(echoPin, INPUT);
}

void loop() {
  // Clear the TRIG pin by setting it LOW
  digitalWrite(trigPin, LOW);
  delayMicroseconds(5);
  // Trigger the sensor by setting the TRIG pin HIGH for 10 microseconds
  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin, LOW);
  
  // Read the time duration of the returned ECHO signal
  long duration = pulseIn(echoPin, HIGH);
  
  // Calculate the distance based on the speed of sound (34300 cm/s)
  // and the time duration of the ECHO signal. Since the sound wave travels
  // to the water surface and back, we divide the duration by 2.
  float distance = duration * 0.0343 / 2;
  
  // Print the distance to the Serial Monitor
  Serial.print("Distance: ");
  Serial.print(distance);
  Serial.println(" cm");
  
  // Delay between measurements
  delay(1000);
}

Troubleshooting and FAQs

Common Issues

Solutions and Tips for Troubleshooting

FAQs

Q: Can the sensor be used with liquids other than water? A: Yes, but the sensor's accuracy may vary depending on the liquid's surface properties.

Q: Is the sensor waterproof? A: The sensor's body is typically water-resistant, but the component should not be submerged unless specified by the manufacturer.

Q: How can I extend the sensor's range? A: The range is determined by the sensor's design and cannot be extended beyond its maximum specified limit.