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.

Jun 15, 2019

3434 views

4 respects

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

Image

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

Image

Bread Board Diagram

Bread Board Diagram

Image

Comments

Only logged in users can leave comments

KaveeshaB

0 Followers

0 Projects

0