The circuit presented here monitors the level of the water rising inside a tank and automatically switches OFF the pump motor as soon as the water level reaches the brim of the tank.
The proposed tank water overflow controller circuit is a semi automatic device because it can only sense an overfill and switch OFF the motor but cannot initiate the motor when water supply is introduced.
The user has to switch ON the motor pump manually when water supply becomes available or during pumping out of water from other sources like a bore well or a river.
Water Level Control Using Transistors
The circuit uses only transistors, is very simple and may be understood with the following description:
The CIRCUIT DIAGRAM shows a design involving only transistors and a few other passive components.
Transistors T3 and T4 along with the associated parts forms a simple latch circuit.
When the push button is pressed momentarily, T2 gets forward biased and provides the required biasing to T4 which also instantly conducts.
When T4 conducts, the relay activates and the motor pump is switched ON.
A feedback voltage from the collector of T4 reaching the base of T3 via R4 ensures that T3 remains latched and in a conducting mode even after the push button is released.
Once the water reaches the threshold level of the tank it comes in contact with a pair of terminals positioned at the desired height inside the tank.
The water connects the two terminals and a leakage voltage starts flowing through them which becomes enough for triggering the Darlington pair made up of T1 and T2.
T1/T2 conducts and immediately grounds the feedback signal at the base of T3.
T3 is inhibited from the biasing voltage and the latch breaks switching OFF the relay and the motor.
The circuit remains in this position until the water inside the tank goes below the sense terminals and the push button is initiated yet again.
PLEASE CHECK THIS CIRCUIT FIRST BY CONNECTING A LAMP IN PLACE OF THE MOTOR.
POWER THE CIRCUIT THROUGH A DC 12V SUPPLY.
START BY PRESSING THE SWITCH, THE LAMP SHOULD LIGHT UP.
NOW MANUALLY DIP THE TWOÂ SENSINGÂ WIRE TIPS IN WATER, THIS SHOULD INSTANTLY SWITCH OFF THE LAMP AND BRING THE CIRCUIT INTO ITS PREVIOUS POSITION.
Parts List
R1 = 1K,
R2 = 470K,
R3 = 10K
R4 = 1M (it's situated just below T3)
T1, T2, T3 = BC547,
T4 = BC557
C1 = 0.22uF
C2 = 10uF/25V
C3 = 100uF/25V
D1 = 1N4148,
Relay = 12 volts/SPDT
Push Button = Bell push type
With over 50,000 comments answered so far, this is the only electronics website dedicated to solving all your circuit-related problems. If you’re stuck on a circuit, please leave your question in the comment box, and I will try to solve it ASAP!
I made it only with a BC547 and a BC557 pair, The darlington pair is not necessary…..
my setup is different though, the motor is connected to the Normally Closed contact of the relay and so both of the transistors are off while the motor is running. working flawlessly for about a year!
Thank you for updating the info, glad it is working flawlessly.
Hi Sir! Do you have a fully automatic version of the circuit above?
how can i modify it to start the pump automatically every time the water level is dropping?
Hi Amor, yes I have a few designs posted in this website, you can find it here:
https://www.homemade-circuits.com/2011/12/how-to-make-simple-water-level.html
Hi Sir, sorry i sent a wrong question. i am looking for a fully automatic water level controller circuit using just a single float switch placed at the upper part of the tank. i prefer using a float switch to avoid corrosion using probes.
but i want the water tank to always full, then the circuit must work right away every time the float switch is being activated due to water dropping. is this possible Sir? thanks.
Hi Amor, yes that can be easily implemented with some modifications to one of the circuits mentioned in the following page, you can select the one which suites you the best:
https://www.homemade-circuits.com/?s=float+switch
hi . thanks for your ckt diagram and information. i am trying to develop this ckt but getting one problem. whenever i am making power on, relay is energizing instantly. i try to only t3/t4 pair even its also energizing relay.
i read above comments and try to find d2 but its not mention in your ckt.
please help…
tausif
Hi, You can correct it by removing C2 from its existing position and bringing it across the base/emitter of T3. That will immediately solve the issue.
still having same problem after changing position of c2 across the base/ emitter of t3
even same problem after changing c2. i am testing t3/t4 ckt. now removed r4 and open that ckt means no wire connected to base of t3. still getting energized after power on.
then it means your t4 has problems, or may be some other connection issue.
You can refer this article for more info:
https://www.homemade-circuits.com/simple-and-useful-transistor-latch/
yes i was doing mistake in reading of ckt diagram. so it was not working. after correction it was working but had problem. problem : whenever i touch sensor wire in the water it was energizing relay and when disconnecting it switch off relay . so i remove t2 now it is working fine. thanks for your response.
OK, glad it worked for you!
Hi, thanks for the design.
I made the above circuit exactly as shown in the schematics, but i am having the following problem:
The circuit powers on normally, the bulb lights on when the push button is pressed, when the sensing wires are inserted in the water the bulb doesn’t turn off, as soon as the wires are taken out of the water the bulb turns off. If i insert the wires back in the water the bulb lights up again.
Hi, try joining the sensor points manually with a screwdriver or any conductor and see whether that breaks the latch or not?
Check this then I’ll tell how to confirm the next steps…
When i connect the sensor wires manually, nothing happens at first but as soon as i disconnect them the bulb lights up. I mean sensor wires are working in opposite manner.
when you press the switch T3/T4 will latch and the relay will switch on the load which can be a test bulb.
when the T1/T2 base is connected with positive line, T1/T2 will conduct and ground the base of T3, breaking the latch and also breaking the relay operation so that the load is switched OFF.
This is how the circuit is designed operate.
Hello, Any update please.
please refer to all the comments above and build it accordingly, this circuit is too simple for an issue….
can i design it in proteus 7 professional??
I tried this circuit and it is working. but having small issue, I build circuit by removing T2 and added 1N4007 to emitter of T3, R1-10k R2-47k, R3-10K, R4-1M.
Problem
——-
1) Latch (T3 and T4) is too much sensitive when I touch to probe of R2, Relay get on. how to fix this issue ?
2) I have 12v adapter when I plug in AC board, Relay get automatically on (I observed that this happen when there is sparking during plug in AC board. If I plug adapter when AC current is off it work (means relay will not on))
kindly advise
Increase the value of C1 to 1uF, or may be to 4.7uF and check the response!
Bingo….! it is working now 🙂 thanks a lot.
Need one more help. I have build circuit on bread board and it is working fine. I design same on PCB board but I am facing below issue.
1) Relay will automatically switch on after 10 min. (even in simulator software it behave same) where as on bread board it is not like that, Relay will not switch on automatically.
In simulator I observed that bast voltage of T3 gradually increase and T4 conduct.
please help.
can you please provide your email ID I will send you circuit design.
T3 cannot conduct unless the switch is pressed, because with the switch in the open condition T3 base will be also open and therefore it can never switch ON. I think your PCB design has some problem, please go back to the breadboard again and compare the two step-wise to locate the fault
I tried but did not succeeded. I have shared file please check and kindly suggest changes.
https://drive.google.com/file/d/0B6ZCUggMmnSRbTlIeGVCbVZfcFE/view?usp=sharing
Forgot to mention even R3 changed to 10K.
thanks for updating, I am glad it's working for you. initially I had only one transistor for T1/T2 but when a few of the members complained that T1 was not responding to water, I had to create a Darlington in that position.
Thanks to you for providing such a nice and simple circuit.
Yes true, initially it did not work for with only T2. Then I added T1 and It started working but was not holding the latch completely. There was a 2-3 sec delay of latch hold after which it gets released even without touching of the probes.
Then I tried the whole circuit from scratch without T1 which resulted in a working circuit but the response of probes was not too good. Then read through this blog and understood the problems of others, which led me to change the values of R1, R2, R3 and R4 as mentioned above in my first comment. These changes brought the circuit to a stable state and work perfectly. Now I am using 2N2907 instead of BC557 as it has better gain factor.
thanks again for sharing the experience, I am sure this will help the other readers.
Recently tried this circuit and is working very nicely, but with some variations. R4=47K, R2=47K, R1=10K connected to base of T2, removed T1, transformer used 9-0 500mA which outputs to 12V, 500mA after bridge rectification.
Reason for removal of T1 is the darlington pair of T1-T2 is causing it to be too sensitive such that even no touch causes the latch of the T3-T4 to fail bringing the relay back to normal. Even 1k for R4 does not help in providing a strong latch.
As suggested to put a diode after emitter of T3 was not tried by me, as removing T1 is working superb for me.
I tried 10mtr wire for the probes in tank and 1M for R1 and still no issues in releasing the latch when water in tank is full, though the response becomes slow. Hence for my need I am using 15K for R1 which gives a 1 sec response. Reason for this delay is I do not want the latch to be released immediately when the probes conduct through first touch of water as the motor/pump water keeps the water in tank move up/down, hence a 1 sec delay brings the water level to a stable state such that the probes are completely immersed in water and release the latch completely.
It is Necessary to connect to the 12v DC Battery….
DC from a 12v AC/DC adapter…not a battery
Hi Swagatam
First of all thanks for the above circuit, i understood the latch circuit from it, but didn't understand the use of capacitors in the circuit, im implementing this circuit in another circuit.
So plz explain the role of capacitors.
Thanks 🙂
Thanks Ahmed,
C1 is to ensure that T1/T2 activates only with water not by any external electrical disturbance.
C2 makes sure that the latch does not operate on power switch ON, but only when the push button is pressed.
C3 prevents the relay from chattering durign the activation thresholds.
Hello sir thanks for your guidance. Every thing works great. I am so happy that first time i can make any circuit with your help and guidance. Thanks for it.
Now plz solve my another problem. My sumbersible pump have a circuit box to start the pump and there is push on/off buttons. Plz help me how can i attach the circuit to that box
That's great Amandeep, Congrats to you!
for integrating the above circuit with the actuator box, you will need to do the following modifications:
remove C2 entirely from the circuit we don't need it.
replace the push button with a 0.1uF capacitor.
let the motor be connected as shown in the above diagram, just transfer the "mains AC" points shown in the diagram with the output of the actuator box….meaning the mains AC will enter the actuator box first and then enter the above circuit relay connections and the motor.
make sure the relay is appropriately rated, and use TIP32 in place of T4 if the relay is too big.
..and also make sure that the 12V ACDC adapter gets it power from the actuator output.
Thanks for quick reply
Hello sir, how r u?
Once again i am back to ask you about my query. First i want to thank you about helping me to make above circuit for water overflow control. I made the above circuit and it works great. Just there is need to add a diode between emitter of T3 and negative of 12 v. Which you already mentioned in you conversation with other. Thanks very much
Sir now my query is that, how can i make 12v dc from 12 0 12 transformer. Where should i connect capacitor. And what value of capacitor should i use. At present i am using 12 v adapter for circuit which is sealed and i can't see the circuit diagram of adapter. Plz help me to make my own 12v from 12 0 12 transformer.
One thing more, can i use 12 v transformerless supply, which can be create just by use of some resistors and capacitor. I see it on YouTube. Is it safe to use 12v transformerless supply rather than use of transformer??????
Sorry for mistakes in writing in English if any.
Thanks
Amandeep
I am glad to hear this Amandeep, thanks for updating the info!
for the 0-12V power supply you can select any two wires among the three from your transformer secondary but make sure it includes the center wire, meaning take anyone of the outer wires and the center wire,
next make a bridge rectifier and connect it with these wires.
once you have done this you can connect a 470uF/25V filter capacitor across the output of the bridge network and then finally terminate the same to the supply rails of your circuit.
No, a capacitive transformerless power supply is not recommended for this circuit because it's not isolated from mains voltage and might result in lethal shock across the output wires of the circuit.
Sir
I used Icircuit app in my mobile. When I was used R1,r2,r3,r4(1m,1k,10k,100k) ohm and c1,c2,c3(0.22,100uf,100uf) and SPDT 12v DC relay then it is parfectly worked. But I am confused that it will work practically .
if correctly adjusted, it will work 100% correctly, we just have to check all the crucial nodes of the circuit and tweak the results through some trial and error until it works as per the expectations.
the design is very simple and adjusting the parameters shouldn't be difficult at all.
Now the circuit is very erratic for some reason. Sometimes it triggers only when i push the button sometimes it always ON, sometimes it does not power on at all. Im not able to figure. I tried to restore back the old resistor below T3. I have also connected a LED which is always ON and no change when the circuit is OFF also.
connect LED on the following places for getting an idea regarding the fault, because normally this latch circuit is very reliable and will not behave erratically.
connect red LED in series with the emitter ground of T3
also, replace C2 with 1K resistor and bring C2 across the base emitter of T3, use 1uF for T2 instead of 10uF
connect another LED parallel with the relay coil with a 1K resistors in series.
if still it gives prblems then you may have to opt for an IC circuit
correction: use 1uF for C2, not T2 it's a typo.
I've connected the circuit as indicated in the diagram and also connected a push button across T3 base & ground (Works fine but I have to hold the button till the latch releases..May be 3-4 Seconds). But for water full condition the circuit does not power off. Please guide me through.
make the resistor just below T3 larger, may be upto 1M and check….
Sir, With this circuit in place can I eliminate the DOL starter?
Jagan, I did not quite understand what exactly you want to achieve with the above config, is it to sense water and operate the motor or are you interested only to get an electronic replacement for the DOL unit?
also please specify in detail how the DOL works and related with water sensing operations
I'm interested in powering ON/OFF the motor automatically by using the above circuit. By way of which I'm trying to understand if the above configuration would eliminate a motor starter Model # L&T MU-G6 (tieste.in/pdf/products/motor_starters/mug6_control_panel.pdf) which is presently installed to power ON/OFF manually.
DOL MU-G6 is just used to Start/Stop the motor and has no link in water sensing.
I hope I've clearly explained.
yes it can be used for powering the motor On/OFF, do the relay modification which was explained in the earlier comment, that's all would be needed, for a manual stop you can add another push-button across T3 base/ground
Sir,
I manually switch on the motor with the help of L&T 3 Phase DOL starter which has a start and stop push buttons. If in case I'm using the above mentioned circuit, please guide me how to go about.
Please guide me through.
Best regards,
Jagadish Kumar S
Jagan, You will have to use a TPTT relay, that's triple pole triple throw relay. This relay will have three sets of contacts, but a single coil. The poles of the relay can be configured with the three wires of the motor and the N/O contacts with the three phases of the AC.
since the relay could be a heavy duty type make sure to replace the BC557 (T4) with a 2N2907 or any other similar 1amp rated transistor
Sir,
I planned to use this circuit for my 3 phase submersible pump which is currently controlled manually using a DOL starter. Kindly let me know how to integrate this with the present setup.
Best regards,
Jagadish Kumar S
Jagan, the set-up detail is shown in the diagram, please provide more regarding what exactly you are looking for?
for 3 phase motor you may have to use a relay having three pairs of contacts for integrating the respective wires
dear bro,
when i put wires to water relay automatically on and when i take off the wire from water relay automatically off. it is working reverse way. what should i do. i'm a hobbyist so pls. instruct me in easy way.
connect another transistor stage with the existing one, remove the relay and connect it with this transistor.
you can take the help of the following example, see how the transistors and the relay are connected,ignore the presets
https://www.homemade-circuits.com/2011/12/self-regulating-lead-acid-battery.html
sir,
please tell me the watt of R1,R2,R3 & R4.
all are 1/4 watt
Thanks for your quick reply sir.
hello sir.
I have tried this circuit several times, but it
can't work. Also tried
the changes specified in a
comment. still no success.
When push button is pressed the relay activate.but the relay can't OFF even if the water level touch the sensing terminals . PLEASE HELP ME…..
hello Naresh,
Connect an LED with a series 1K resistor actoss T1/T2 collector and positive.
When water comes in contact with sensor points this LED should lights up, if not would indicate some fault in the T1/T2 stage.
Additionally, add a 1N4007 diode in series with the resistor joining the collector of T4 and base of T3, this diode could also be replaced with a 3V zener for better response.
for a 1N4007 diode, the cathode will be towards the base of T3…if a zener is used it will be the opposite
Hello Swagatam,
I'm a electronic hobbyist from software field. So I try with the things in the weekend. I saw your blog recently and really admired to test this circuit, and when I went to the market I saw the float switch (www.ebay.in/itm/sensor-float-switch-water-level-controller-3-meter-wire-select-no-nc-/251493496077?pt=lh_defaultdomain_203) there.
Can I connect that to this circuit, orelse will you please suggest me the way to use that, since we don't have to worry about the corrosion & passing currents to water by using this switch.
Thanks for your great works, they are really helpful for the people like us to learn.
Thanks tpraveenraj,
I am unable to make out how the float switch would work, from the image it seems the cylindrical thing around the stick moves up/down with water.
It looks a nice concept and I would want it to explain through a new post, because it cannot be integrated with the above circuit and will need too many modifications.
I'll try to do it soon, please be in touch
WoW thanks buddys, i'm glad to hear from you.
Waiting for your new circuit & for my new weekend project 😉
Thanks,
Hello Swagatam,
In the above parts list, it show C1 = 0.22uF, but you didn't indicated voltage. If i'm not wrong voltage of the capacitor is 25 v, right ?
Let me know the voltage of the capacitor.
Thanks,
Praveen
Hello tpraveenraj,
usually the disc ceramic capacitors such as this are rated at 50V, and it's not important to mention it while procuring, unless the supply voltage is over 30, 40, 50V
By the way I have published the design requested by you here:
https://www.homemade-circuits.com/2014/04/float-switch-water-level-controller.html
Sir, I have a one queary that why there is no connection between R4 and collector of T4…..In which way they will be connected plez clarify me as soon as possible
R4 is connected with the collector of T4, the break indicates that it's not connected with the emitter of T3.
this circuit is not working I tried several times even on solder less board too. when I connect power circuit is always on without pressing on switch despite D2 disconnected. circuit is off only when feedback resistance disconnected. Circuit not off even water level touches probes.
Circuit will work only if you understand it and troubleshoot stage wise.
t2/t3 is a latch which will 100% work. Test and verify it separately, so first make this circuit work by disconnecting D2.
if your circuit is operating even with D2 disconnected when switched ON, it means T3 base is receiving stray disturbance and is switching ON, so attach a capacitor may be a 10uF at its base and ground, this will prevent the latch from operating automatically…check this issue manually until the automatic latching stops.
T1/T2 will surely conduct when its base gets bridged with positive via water.
Replace D2 with a wire short and now check the operation of T1/T2
Hiii
i am Gaurav sheta. how much current withstand this circuit means how much HP motor we used??
It will depend on the relay contact rating which is being used, it can be upgraded to any limits as per requirement.