A Standalone circuit for measuring the amount of water in overhead tanks and conveying it to the user using LEDs and an LCD

Public Chat
Similar projects worth following
This circuit uses the conventional 8051 microcontroller and an ultrasonic sensor with some LEDs and an LCD to measure and convey the amount of water left in overhead water storage tanks. Ah and yes, a breadboard and jumper wires were also used.
The code is to be downloaded, the dimensions of the tank are to be changed in the code before usage of the circuit and then it is to be burnt onto the microcontroller before usage.
Finally, the connections have to be made as per the diagram uploaded.

The Ultrasonic Sensor is used to detect the surface of water, which sends digital signals to the 8051 microcontroller. The 8051 takes in those signals, measures out the distance between the sensor and the surface of water using the code. Then the same code is used to light up the LEDs colourwise and also display live water amount percentage information depending on the percentage of water left.

JPEG Image - 4.34 MB - 09/28/2021 at 04:56


  • 1 × ATMEL 89C51 8051 Based microcontroller manufactured by ATMEL
  • 1 × Waterproof Ultrasonic Sensor
  • 20 × Jumper Wires Male-female, female-male, male-male and female-female
  • 7 × LEDs Electronic Components / Misc. Electronic Components
  • 1 × 16x2 LCD

  • 1
    Step 1

    Download the code.

  • 2
    Step 2

    Tweak the 'walicator.c' file by replacing the tank dimensions with that of yours.

  • 3
    Step 3

    Burn the code onto your 8051 microcontroller.

View all 6 instructions

Enjoy this project?



Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates