# Numeric water level indicator- liquid level sensor circuit diagram with 7 segment display – Engineering project

Water level indicator circuit or liquid level sensor displays the current level of water in any water tank reservoir. Here we use a simple real time encoding circuit with 7 segment display. It can also be used as a water level meter or water level detector. Combining this project with our previous post ‘Automatic water tank level controller’ will give a complete automated control system for home and industries. This water level sensor consist of 8 to 3 encoder (74148- 8 line to 3 line priority encoder) with some water sensor arrangement. The encoded level is displayed on a 7 segment digital display. This circuit uses one ‘Hex display’, it does’t require driver IC to encode. It makes the implementation simple. You can use ‘7 segment display’ with appropriate driver IC 7447.

## Components required

1. Power supply
2. Resistors (10kΩ x8, 100Ω x3)
3. IC 74148
4. IC 7404 NOT gate x3
5. Hex display

## Working of the circuit

• Water level in the tank or any reservoir is sensed using simple pull up resistor arrangement.
• Here we define 7 levels in the reservoir. The sensed values are connected to an encoder circuit. The encoder circuit consist of a 74148 IC, which is a 8 line to 3 line encoder.
• A connection from ground is dipped in water reservoier. When water level rises, the ground comes in contact with the particular pin of encoder input.
• Without the ground contact, the encoder input is Vcc through the pull up resistors.
• See the simulation window shown below. Here switch ON  indicates water touching the point A.
• While water touches the point A, D1 of encoder IC=0, so the input patern becomes 1111110 which is encoded to 110 binary value.
• The inverted output become 001 using not gate. Thus for each and every level the encoder produces corresponding binary digits.
• Next section is the ‘HEX Display’ which is a special type of 7 segment display. It is easier to use than the regular seven-segment display because it is already decoded. Each hexadecimal digit is displayed when its 4 bit binary equivalent is received as input, as shown in the truth table below.
• If it is difficulty to get a ‘HEX Display’ you can use ordinary 7 segment display with decoder driver IC 7447. Hence the encoded values are displayed. This circuit will be really helpful for your project.

## Circuit using 7447 driver IC

(Click on the image for enlarged view)
You can neglect the 4th input (D) of 7447 because we are using this circuit to code up to 7 level, that is  upto binary 111. Hence there is no need of the 4th input of 7447.
(Circuit using 7447 is posted as per the request from one of our readers Mr. Nagarajan M)

## Simulation of this project

Click on the image for enlarged view of animation

## 74 thoughts on “Numeric water level indicator- liquid level sensor circuit diagram with 7 segment display – Engineering project”

1. Anonymous says:

I have tried this project in breadboard but its not working, if the inputs of IC 74148 is connected directly to negative supply it works, but if it is connected to negative supply through wires immersed in water it doesn't.

any suggestion sir?

• Hi,
Please use a 1A transformer for power supply.
Your problem is due to insufficient current supply from power source

• Agung Surya says:

I think I have the same problem. I make a water level indicator and controller on a breadboard using 74LS148 and other ICs to control the relay. The circuit supply is a breadboard power supply modul with output current <700 mA. when I try to connect the "sensor" wires through the water, it doesn't work but when I connect it directly to the ground grid, it works properly. Even when I use transistors (and darlington arrangements) still it doesn't work. I think I should tray to use a power supply with larger current capacity. Hopefully it will work properly. Thank you

2. Anonymous says:

can i use AA batteries to give power supply?
if yes then what about the required voltage and current?(how many batteries?)

• Hi, Please use your name while commenting for better response from us. You can use 3 AA batteries for power supply.

• PV Reddy says:

i need to add a buzzer to this circuit to control the overflow of the water. So i need your help regarding the circuit(what are the changes to be done).

3. Anonymous says:

hello sir,
i need to know about the power supply. Can i give 3×1.5 volts AA batteries for this circuit?

• Hi,
IC 74148 requires 5V minimum, According to your doubt 3×1.5=4.5V. 4.5 is not enough to drive the IC.

4. Sir, How can we combine your AUTOMATIC WATER TANK LEVEL CONTROLLER with this……
as This circuit is positive driven and the latter is negative driven……..

Kindly revert ASAP

• In AUTOMATIC WATER TANK LEVEL CONTROLLER:
1). Replace BC 548 with BC 557.
2). Connect the 2nd pin through a BC557 inverter.

• Ilyas says:

what can be used instead of IC 74148

• Yaseen says:

use 74147

5. Sir, Can you please gave me the complete circuit for combining your AUTOMATIC WATER TANK LEVEL CONTROLLER with this NUMERIC WATER LEVEL INDICATOR……

6. Bhargavan Kazhungil Calicut says:

After several years again I have returned and given interest in electronics projects. Thanks to the suppliers of such simple projects.

7. amal says:

sir,how can D0 be 0 as shown in truth table???..it is connected to vcc,right??

• Yaseen says:

Hi Amal
No, it is connected to ground.

• amal says:

how come??..it will be connected to ground only if water rises upto level7,right?i dont get it..can u pls explain some more??

• Jaseem vp says:

Hi Amal,
This circuit dealing with Active Low Logic

• waqas says:

sir can you explain how this circuit is work on active low logic

8. Anil says:

Hi sir,
Will you please give full circuit diagram with each pin. I am a beginner in this area.

• Jaseem vp says:

Hi Anil,
Due to the large volume of comments we are receiving we can’t help you for this pin configuration, sorry.
Please search for data sheet of IC 74148, where you can find all details

9. Jackson Imoh says:

Greetings to you all,
I’m a student who’s been working on this project. My project supervisor wants a vivid “Design/Circuit Calculations” on this project i.e “why did I use this resistor, transistor ratings and not another; how did I come about the specific ratings; why this particular ICs…”
Pls, I seriously need them in 2 days time!
My Email is: jacko4life@yahoo.com

• Jaseem vp says:

Hi Jackson Imoh,
Really sorry for the delayed reply. I know it is too late to followup you, but considering to my situation I was too busy with last 2 weeks and did,t get time to reply the comments. Now only I saw your comment..

Even though let me explain the design aspects. First of all this is absolutely a Digital Circuit! We are manipulating the switching of components. The 1st section is Pull-up resistive switching part, which senses the water presence. For this resistive network there is no design rules! you may use 1K, 10K or even more, the reason is that the Resistance offered by the water must be less then the Pull-up resistor in order to switch accurately.
This is the only analog section in the circuit, rest everything is purely based on digital switching that we explained in the post.

Once again I beg your pardon for the late response. I know the situation and timing of an Engineering student, Please don’t feel bad to us. Keep visiting CircuitsGallery.com.

10. murthy says:

using ic 7447 the circuit is not working when grd is immersed in water,
but circuit is responding when directly connected to -ve termial
can you provide me solution for this.

11. anirban says:

Sir can I use a 9V battery source instead of a 5V one?
Actually directly 5V source is not available so I have to use a regulator.

• Yaseen says:

Hi Anirban
TTL ICs (74xx) will damage if the voltage greater than 5V.

• anirban says:

Actually what is happening that the circuit is not working.
I figured out the problem that since here the ground is actually the negative terminals of the battery, a wire connected from the negative terminals has to be immersed in water. Otherwise it is not working.
I am trying to make the circuit with as much less components as possible. I have read the ratings of my 74148 and 7447 , max voltage is given 6V. So will it still damage the chips?

• nick says:

Hi Anirban,

Any progress with the circuit?
Did you managed to do it more simple?
Can you give us more details?

Thanks

12. avidman says:

Could you tell me how to combine your automatic water tank lever controller with this project?
What exactly I have to change in the circuit that it will be working properly?
I have many problems with combinig this two projects and I would be very grateful if you help me.

13. anirban says:

Sir,
I made this project but it is not working with wire immersed in water. With salt water it does.
For the 5V supply I have used a lm7805 voltage regulator. Any suggestions?

14. anirban says:

And sir there are a list of hex displays available in the market.
Can you please suggest what is the specific number of this particular hex display?

15. Ujwal says:

How can I use a 5V power supply for the circuit? What is the max rated voltage for the ICs used?

• Jaseem vp says:

Hi Ujwal,
MAx voltage of ICs are 5V.

16. Prem says:

Sir
I have 10 pin hex display how can i use it in this project

17. Pavna says:

Hi,
I tried with this circuit,i have used ic 74148 and ic 7447 and also an 7 segment hex display ,the reading are quite confusing,
its showing out put different the out put are of 0 intial reading it showing null value and so on ,but it showing different readings ,gs eo is conneted to…and LT BI/RBO RBI they are connnected to where…please explain these..

• nick says:

Seems that the guy left us…..I have the same questions, Eagle is saying that I didn’t connect that gates….so probably will work as well.
I started after more than 12 years of inactivity to make PCB’s again so I have to catch up a lot….

• nick says:

I have the same issue with confusing readings…..
Does someone know why?

Thanks.

18. nick says:

Hi,

It would be helpful to avoid loosing time thinking the routing…. 🙂

Thanks.

19. nick says:

And by the way, the hex displays are not so popular, the normal 7 segments display are..

20. nick says:

Hi again,

Sorry for so many postings but seems that something is wrong with the above scheme….
Meaning, I have made the circuit but there are some issues with it:
– it doesn’t show the “0” value
– it shows different “numbers” if I can call them numbers

Any help from you would be appreciated. I tried as well with a lower resistance for D0 with no success.
I also tried with no resistance to connect D0 directly to ground, same issues.

I made a small movie to show what I mean,

Thanks again for any help.

21. vivek shukla says:

plz tell me about power supply of water level indicator 74148N and ic7404 witha all detail of power supply… how can i formed a power supply for this circuit and give me also detai ovf power supply

• nick says:

Hi Vivek,

I used a 12V power source for led strips combined with a voltage regulator bought from ebay (in fact both of them are from ebay).

With a reasonable price you can buy both of them.

Beside this, you can use some connectors which will allow you to connect only when you want the above circuit.

BTW, the above circuit is not entirely correct. The pin No.6 from 7447 must be connected to ground.

Even so you will still have to improve something because is now counting from 7 to 0 when immersed in water

22. nick says:

I have managed to make it work with a 7404 circuit.

BTW, I can give eagle file for the circuits, I have made 2 circuits (with PCB), one with network resistor and one with single resistors. The only problem is that the circuit is functioning only with salted water.

I do have a 2 Ah source but is not working without salted water, is showing only 0.

A link with the movie for proof.

• taraneem says:

Can you please give me the connection to the 7 segment display

• nick says:

The connection is shown in the pictures posted by Jaseem.

BTW, with 1M resistors at the input of 74148 IC will work with normal water, not salty water…

• pawan says:

PLEASE MAIL ME THE CIRCUIT DIAGRAM AND EAGLE FILES!”

23. Manuel Rosios says:

is there is a project like this that supports high purity water? Like water for injection..

24. Mir says:

hey im makin dis project for my dld course but aftr i bought the components im not sure whether i have a hex display which can be used directly without ic driver or i hav a 7 segment display..kindly help me how to distinguish between them it has 10 pins and i dont knw pin configuration of it..hope to recieve ur guidance m
soon..

Dear Khaleel,

Good to see your hard work and helping students like me, can get lots of educational benefits from your ideas, May Allah Bless you for all of these efforts.

I have a humble request it could be taken as generic thoughts, however; I need to know the ampere rating of all the components required to build the above circuit, and I am sure all the fellows will love to see if in all of your posting of REQUIRED COMPONENTS will reflect the watt/ ampere ratings to be used in the given circuit diagrams.

Thank you for your understandings and help.

Best regards,
Abidi

26. Gattu Ramesh says:

our society is having a overhead water tank with 3 phase motor to fill manually. I want a circuit to fill automatically for 3 phase motor …can u help with a circuit?

27. syed says:

sir where should wi give eo and gs in ic 74148

28. SM says:

can we use 74147- 10 line to 4 line priority encoder?

29. grinny says:

Sir I cant found DCD HEX display in my town and I have to submit my project I try LED display with decoder but its not working. what to do ? plz help me..

30. davidteh.0802 says:

Hello sir,may I ask how can I add the LED diode for this case?like level 1 will be a diode light up,and level 7 have 7 diode light up,thank you sir!u reply is very helpful to us 🙂

31. Abhijit Kudtarkar says:

Can anyone tell how to simulate this circuit in multisim
I cannot find water tank in multisim.If not possible with multisim pls suggest another simulation software

• warda sultan says:

I have the same issue. If you have found the solution so please tell me.

32. david says:

Actually the water tank just an example,you can ignore it,just connect the wire

33. Rishabh says:

34. Mario says:

One question for some disputers who say only salt water. One importatn thig is to have groud wire put in the water. also on nics video is working only with salt water. did he try to groud the water? cause the original circuit have grounded water tank and that is sure importatnt i think is should be from metal and grounded or some groud wire put in to the tank.

35. John says:

am trying to do the circuit using 7447 ic but when i test the circuit am not getting no response the seven segment stays the same no matter what level is at can you please help me to determine the problem. thank you

36. Josemon says:

Pleas help Adaptive noise control circuit.
Pleas send mail

37. Tlutrick says:

Hey guys, I just found this discussion. I’ve got an aeroponics greenhouse using 24vac to control sprinkler valves to regulate water/nutrient distribution. Since this is Louisiana, I have (3) 280 gallon tanks buried to help keep the water cool enough to reduce root rot. Even though 95% of the water recirculates, I still need to keep an eye on the level and was looking to use this circuit. (Though with the flood we experienced last week, I can’t even get to it to test, so I’m doing arm chair engineering right now). Due to electrolysis concerns with dc, is there a way to leverage the 24vac supply and modify this circuit? If not, I can always build it dc. Thanks for any help

38. RAHUL NEGI says:

Hi sir, Rahul Negi, I am making this project , I use ic SN74LS148N ,7447 ic and seven segement display ( common cathode ),
But when I give power supply seven segement display all segement are already glow and ground wire connect all seven wire , they are not work , what I do, plzz kindly help me sir

please am ask what type of IC 74148N I want. what should i say.

40. Kvenugopal says:

Water level controller pcb designed and developed

41. Arthanari says:

Hi sir,

Can some one clarify how much cost it will be if i make as a circuit….?

42. Giri says:

What cable should be used for wiring from ground to top floor tank

43. dharmendra says:

im new person to do project, so to mount on pcb i dont know how to mount on pcb board, so help me in more brief description i be able to complete my project, ic mounting is a difficult task

44. dharmendra says:

sir send me a circuit layout for pcb for component mounting and pcb etching

45. Dharmendra vishwakarma says:

Hi sir I have made numeric water level indicator using ur guidelines but it’s not working I gave 5volt by a adapter of mobile charger using a PCB and by using etching soln drawn circuit diagram but led i s not indicating any number