Water Level Detector
You will need the following materials for making your own Water Level Detector
Arduino Uno
Ultrasonic Sensor (HC-SR04)
Jumper wires
4 Digit seven segment display
HC-SR04 Arduino Uno
GND GND
ECHO D9
TRIG D8
VCC 5V
4 Digit Display Arduino Uno
GND GND
VCC 5V
DIO D3
CLK D2
You can Download it form here: https://github.com/shubham1008042/Water-Level-Detector/blob/master/task_water/task_water.ino
In this project i have used arduino uno with ulrasonic sensor(to measure percentage of filled water) and 4 digit seven segment display. The connections of arduino uno with HC-SR04 and 4 digit display is shown in step 2.
The ultrasonic sensor uses sonar to determine the distance to an object. Here’s what happens:
- The transmitter (trig pin) sends a signal: a high-frequency sound.
- When the signal finds an object, it is reflected and…
- … the transmitter (echo pin) receives it. When ultrasonic sensor detect the level of water trig pin signal reflected back and echo pin of sensor recieves the signal. In my project, the hc-sr04 sensor detect the percentage of water filled in the tank, and show it on the 4 digit seven segment display. I have taken the height of tank as 12cm and also it is static(constant) and given gap of 2 cm that the flow of water doesn't touch to the sensor that i used(HC-SR04).
The percentage of water filled is shown by using formula:
((total height of tank-distance of water from sensor)/total
height of tank)*100