Simple DIY Project Using HC-SR04 Ultrasonic Sensor
A simple DIY project using HC-SR04 ultrasonic sensor to measure the water level of a water tank.
Components and supplies
1
Male/Male Jumper Wires
1
Ultrasonic Sensor - HC-SR04 (Generic)
1
Arduino Mega 2560
Project description
Code
Arduino Code
arduino
Arduino Code
arduino
Downloadable files
Bread Board Diagram
Bread Board Diagram

Illustration of LED illumination
If the water level is 1. Below the quarter of height of the tank– illuminates first LED. 2. Half of height of the tank – illuminates first and second LEDs. 3. Below the three quarter of height of the tank – illuminates first, second and third LEDs. 4. Maximum height of the tank – illuminates every LEDs.
Illustration of LED illumination

Bread Board Diagram
Bread Board Diagram

Comments
Only logged in users can leave comments