Skip to main content

Timer based Water Level Controller

The explained circuit of a water level controller circuit is based on a timer circuit whose time delay is first adjusted to match the filling time of the tank, as the the tank fills, the timer delay also simultaneously lapses and its output switches OFF the water pump.

Circuit Specifications


Actually the circuit was requested to me by Mr. Ali Adnan who is one of the fans of this blog. Let's first hear what he had to say:

I like your blog very much. I have a problem which i think is common in every home, the problem is: I have a Water Pump (which pulls water from bore) installed at my home, when my brother switch on the water pump he always forget(u know bhulakar one:P) to switch it off back:( and water tank gets over flowed and water runs in upper portion of our house:(

I want you to help me to design a timer circuit to automatically turn off the pump at given time. I am not expert in electronics but i like to play with electronic and knows very well how to solder and always trying to do some little experiments with help of your blog. Please provide me the circuit for above sited problem with complete parts list and diagram.

Designing the Proposed Water Level Controller with Timer


The CIRCUIT DIAGRAM of this water level timer controller circuit utilizes a single versatile IC 4060 for generating the required time delay.

P1 is initially adjusted through some trial and error so that it exactly matches the filling time of the water tank which needs to be monitored.

The circuit is initiated by pressing the push button SW1 when the N/O contacts of the relay are bypassed.

This momentarily switches ON the transformer which powers the IC instantaneously.

This instantly triggers the transistor and also the relay which takes over and latches ON the circuit.

Now the circuit holds ON even after the push button is released, everything happens within half a second.

The above operation also simultaneously switches ON the pump motor which starts pushing water in the tank.

Once the timer counting finishes, pin #3 becomes high, T1 conducts and switches OFF T2 and the relay.

The relay contacts reverts to its original state switching OFF the motor as well as the the entire circuit, halting the motor pump and hopefully inhibits the tank from overflowing.

simple timer controlled water level controller circuit


Parts procured by Ali Adnan

complete parts details for the project

Parts List


R1, R3 = 1M, 1/4 watt CFR

R2 = 1K, 1/4 watt CFR

R4(T1 base) = 22K, 1/4 watt CFR

R4(T2 base) = 10K, 1/4 watt Cfr

P1 = 1M preset horizontal

C1 = 1uF/25V

C2 = 1uF/25V non polar, any type will do

C3 = 1000uF/25V

D1, D2 = 1N4007,

Relay = 12V/SPDT/contact current as per motor specification

SW1 = Bell push type of button

IC1 = 4060

T1 = BC547

T2 = 8050, or 2N2222

TR1 = 0-12V/500mA

The above automatic water level controller with timer circuit was also built and appreciated by Mr.Raj Mukherji, one of my friends and a keen follower of this blog. Let's learn more about his experience with the circuit.

Hi Swagatam,

Thank you very much for the timer circuit.

I have made the prototype on a general purpose PCB and so far found it to work accurately for my purpose: 5 min, 10 min and 15 min delay respectively (with the P1 set at 15.4 Kohms for 5 min delay etc). I am planning this weekend to house it in a 4x6 box and test it on actual load.

So far, I was looking at the above comments and would like to add something regarding the question raised by Mr. Khan on the relay. For my purpose, I am intending to use this timer on an AC 50 Hz, 220 - 240 volts, Crompton Greaves self priming mono-set pump, type - Miniwin II, 0.37 Kwatt/0.50 HP. So, I have purchased a 12 volt SPST relay which has a contact current tolerence of ~7 Amps. I think this is sufficient for my purpose and also for any kind of small pumps/loads. Isn't it?

I will definitely share with you the picture of the completed project.

Thank you,

Kind regards,

Raj Kumar Mukherji

My answer to Raj:

Hi Raj,

That's great! Thank you very much for the update.

A 7amp contact would mean a maximum capacity of 7*220 = 1540 watts, that's probably more than sufficient for the purpose.

I am sure the pictures that you will send will be loved by the other readers also, so please do send them here for publication.

Yes, surely the link will be very useful for the readers who would want to learn the timing calculation more accurately.

Thanks and Best Regards.

PCB Layout for the Above Circuit, Designed and Submitted By Mr. Raj Kumar Mukherji:

(Component-side view)

PCB components layout for the project


Pictures of the completed water level timer controller prototype, sent by Mr. Raj Kumar Mukherji:

prototype image front water level timer circuit


internal wiring details of relay and 3 pin socket


transformer and relay connections details


phase, neutral connections of the 3 pin socket


PCB assembly component side image


The proposed water level timer/controller circuit  was further modified and enhanced Mr.Raj Mukherji, who is also an avid reader of this blog, and a keen electronic enthusiast.

Here's the feedback email that he sent to me explaining everything regarding the working of the circuit:

Finally I have managed to build, the model of this timer based water level controller project which is given below:

There were only three modifications I made:

1. Connected an LED to pin 7 in order to get a visual indication of the oscillation.
The LED starts to blink after 20 secs of powering the timer on
2. Used four diodes for full wave rectification instead of just a single diode for
smooth DC input
3. Added 22Mfd capacitor between pin 12 and 16 instead of 0.22Mfd because 0.22Mfd was
not allowing the oscillation to begin when the circuit was drawing power from the
transformer. However, 0.22Mfd did not make any problem when the power was fed from
a 9 Volt battery

I have found that with the given values of the R and C, the range of this timer is between 1 - 30 mins.

I have also found the formula to calculate the frequency of the timer (it is found to work correctly to a certain extent practically):

F in KHz = 1 / {2.3 x (R2+P1) x C1} where, R2 & P1 in K Ohms, C1 in Mfd

1 Time Period (TP) in milisecs = ------------ where, F in KHz, Q(n) as shown below. {F / Q(n)}

Pin7 = Q(4) -> divided by 16 Pin5 = Q(5) -> " " 32 Pin4 = Q(6) -> " " 64 Pin6 = Q(7) -> " " 128 Pin14 = Q(8) -> " " 256 Pin13 = Q(9) -> " " 512 Pin15 = Q(10) -> " " 1024 Pin1 = Q(12) -> " " 4096 Pin2 = Q(13) -> " " 8192 Pin3 = Q(14) -> " " 16384

Example: If P1 is set at 15 KOhms, R1 = 1 KOhm, C1 = 1 Mfd and we select the output from Pin3 (which is Q14) then:

1 1 1 F = -------------------- = ------------------ = ------------ = 0.0272 KHz {2.3 x (R2+P1) x C1} {2.3 x (1+15) x 1} 36.8

where, F = Clock frequency of the timer

Then, the frequency at Pin3 of the IC will be: 0.0272/16384 = 0.00000166 KHz

Therefore, Time Period (TP) of the timer is: 1/0.00000166 = 602409.6 miliseconds = 602.41 secs = 10.04 mins

[NOTE: Time Period = ON time + OFF time]

Hope this will help my co-readers to understand the working of the CD 4060 better.

Thank you,
With warm regards,
Raj Kumar Mukherji

Upgrading the Water Level Timer for Solar Panel Operation


The following diagram shows how the above circuit may be used with a solar panel supply, and with a DC motor connected at the output. The design was requested by Mr. Mehmet

solar panel control details for the timer water control



Need Help? Please leave a comment, I'll get back soon with a reply!




Comments

  1. Please provide your entire requirement, because I have many similar circuits posted, so if i know your complete requirement i can refer you to any of those circuits with the required mods.

    ReplyDelete
  2. The underground threshold monitoring will require a probe to be placed inside the underground tank without this it won't be feasible to check it. Motor dry running can be prevented through external sensors, though.

    ReplyDelete
  3. You can replace the buzzer with a relay driver stage for controlling the motor, and how do you want to switch ON the motor, manually or automatically?...the circuit can be made a lot simpler.

    ReplyDelete
  4. it's selected with respect to the load current requirement, sensitivity etc.

    ReplyDelete
  5. You are right! I'll post it soon in a new article. I'll inform you when it's posted.

    ReplyDelete
  6. I have posted it here:

    https://homemade-circuits.com/2013/07/underground-water-pump-motor-dry-run.html

    ReplyDelete
  7. Hiii
    I am GAURAV SHETA. CAN I GET THIS READY CIRCUIT??

    ReplyDelete
  8. Sorry, it's not available readymade.

    ReplyDelete
  9. Hi Kannan,

    Any capcitor will burst only if it's rated below the supply voltage or connected with wrong polarity, otherwise there's absolutely no chance of it getting damaged.

    ReplyDelete
  10. When you press the push button, the power supply momentarily switches ON the whole circuit along with the relay, the relay contacts operate and replaces the push button and gets locked in that position, so now even if the button is released, the power to the circuit is sustained via the relay contacts until it breaks with elapsing of the set time.

    ReplyDelete
  11. you mean bridge rectifier? it can be used here, I tried to keep it very simple and so opted a single diode.

    ReplyDelete
  12. It won't be possible just by adding another switch, it might require many complex mods.

    making a separate unit appears to be a better and a safer idea.

    ReplyDelete
  13. Hi swagatam
    this circuit is good but i have another concept i want timer circuit for tap water line. Circuit controlled solenoidal valve for some time for first interval on and then after some time interval off the solenoidal valve and divert the line.

    ReplyDelete
  14. Hi swagatam
    This circuit is very interesting. i have another concept to operate tap water line. Circuit is design as per following condition,
    1) When water comes then for first 1 min it goes in one tank then solenoidal valve(V1) close & V2 open.
    2) When (V1) Closed then solenoidal valve (V2) open then goes forward in main tank.
    3) Tap water line cut then whole system reset that is V1 open & V2 close.
    4) next day tap water come then 1 to 3 step repeat.

    ReplyDelete
  15. so can made some changes above circuit for my concept

    ReplyDelete
  16. Hi Ashok,
    The circuit could be much complicated, cannot be modified from the above design.

    I'll see if can figure it out and inform you if it's possible.

    ReplyDelete
  17. sir iam an undergraduate student . can you explain me the concept behind it i.e. how it acts as a timer

    ReplyDelete
  18. Ishersingh, you will have to refer to the 4060 IC functioning details to understand the above operations. just Google 4060 pinout function, you will find all the required details in the links.

    ReplyDelete
  19. Dear sir,
    Can i use a preset vertical as P1 in this circuit?

    ReplyDelete
  20. Thank you sir. What about capacitor C2? Can i use a polar type capacitor of same value? Also, regarding the transistors T1 & T2, in parts list both T1 & T2 are different, but in one of your comments it is given that T1,T2 = BC547. Which transistors should be use as T1 &T2?

    ReplyDelete
  21. yes C2 can be a polar type.
    T1 can be a BC547 but if the relay resistance is below 100 ohms T2 must be a higher rated transistor such as a 8050, 2N2222, if the relay coil resistance is higher than 100 ohms a BC547 can be used.

    ReplyDelete
  22. hai...sir...
    could you plz reply to my mail ,sent to your hitman inbox ?? it is related to the current topic

    ReplyDelete
  23. Hi Deva, the explanation was too long and the diagram too elaborate so I could not study it due to time constraint, if you can pin-point exactly what you need I'll try to help

    ReplyDelete
  24. sir, in my diagram ( semi automatic water controller ) sent to your email, i need help in the 555 section which is given as the second figure in that mail... i will send you that section soon to your hitman inbox.... plz check it

    ReplyDelete
  25. Arun, I have answered it, please check your email inbox....

    ReplyDelete
  26. thank you sir ... when the triggering terminals are connected directly togrther in accordance with your suggestion, the low water level alarm is getting shut off immediately ... but when these terminals are dipped in water, the result is same as before.... the alarm continues to work.

    what i have to do ?
    wht z the reason for this... 390 k was used to connect pin#4 to Vcc...
    I think this problem is due to high resistance path ( created by water ) which restricts the weak positive signal from pin#4 ( due to 390 K ) from going to ground...
    also the beep sound of the alarm is getting changed to continuous sound when these terminals are shorted using water

    ReplyDelete
  27. Hi Arun, in that case you can take the help of an additional transistor stage.

    Connect pin4 to positive via a 100k resistor.

    Take a BC547 transistor, connect its collector to pin4, emitter to ground and use its base with a parallel ground terminal as sensors for detecting the presence of water, this approach will surely provide you with the intended results.

    ReplyDelete
  28. Hi,
    I am kannan. I was using this circuit for the past one year. Twice it got failed due to transfore getting faulty. Tranformer failing after 6 months. Not sure why transformer is getting failed. Do you have any idea on how to make reliable 12 volts atleast for 2 years.

    ReplyDelete
  29. Hi, a transformer will never burn unless it's of very bad quality in terms of number of turns in the primary winding. the primary winding should have at least 2k resistance, anything lower than this would mean a compromised unit.

    alternatively you could go for a 12v/1amp smps adapter which are extremely common in the market nowadays.

    ReplyDelete
  30. Hi,
    How are you?.This is Kannan again. I am using this circuit and controlling two motors. What I had done is added a single pole changeover switch at the input to motor to control either one motor. Now my requirement is to add a circuit to switch off sump motor when there is no water in sump. This definitely requires a sensor to sense low sump water level and switch on the relay. But since the same timer circuit is used for bore water also, low sump water will not activate the circuit if I want to run for bore water. My question is that is it possible to tap the connection from Pin3 and make a parallel circuit to switch on another motor. I am interested in knowing your suggestions for this.

    ReplyDelete
  31. Hi, yes surely the pin3 can support many number of relay driver stages, so it won't be an issue, you can go ahead and extract another parallel output for triggering an additional relay driver stage....make sure to add a 100uF capacitor across each of the relay coils for extra reliability and proper functioning....

    ReplyDelete
  32. Hi, Thanks for the circuit. I tried it as well but facing an issue. The relay is not releasing at all. It is holding the load (which is an LED for testing) after pressing push button but it is not releasing it after pin 3 goes 1. I verified that 4060 is working fine by connecting a few LEDs. I am new to relay connections & suspect a goofup there but unable to debug this. Any suggestions?

    ReplyDelete
  33. Hi, if R1 conducts, R2 ought to stop conducting, which in turn would deactivate the relay, if the relay coil is connected the way it's shown

    Check the base voltage of R2 when R1 is ON (pin3 high), it should be zero and no current flowing through collector emitter of R2

    ReplyDelete
  34. yes, R1 conducts & base voltage of R2 goes zero when pin3 is high. It should make R2 stop conducting. I couldn't check the current through R2 but voltage at collector of R2 goes about 8v (with 12v supply). But Relay doesn't release. The moment I pull the wire disconnecting R2 collector & relay coil pin, relay deactivates. Is there a way to check the relay connections on a standalone circuit. Out of 5 pins, 3 on one side and 2 on other. The corner pins on 3 pin side are coil pins, which I have connected to pin 16 & collector of T2. The 3rd center pin is connected to supply directly as well as to diagonal pin on 2 pin side (NC position). The other pin of 2 pin side is connected to supply via push button.

    ReplyDelete
  35. I mistakenly mentioned T1/T2 as R1/R2.....

    anyway so the problem could be with T2 and not with the relay, replace T2 with a new NPN and check the response.....also connect a LED in parallel with the relay coil with a series 1k resistor, if it keeps glowing will surely indicate a faulty T2

    ReplyDelete
  36. Thanks.. i tried with the LED and found problem with T2. Mistakenly had connected it opposite. Found that pin positioning (EBC) of 2222 is opposite to 547. Another problem was with relay connection. It is now working fine with these two things corrected.

    ReplyDelete
  37. Good Day sir! Can you make a circuit about the device that I am planning? I want to have a gadget that will limit the usage of TV for lets say 3 hours in the morning, it shouldn't and cannot be reset even if the power of the gadget is lost/run out. but i am the only one who can customize the usage hours if the usage reached its limits, lets say by computer, or other button combinations. thanks and more power sir!

    ReplyDelete
  38. Good day XXshadow, yes it's possible using a timer circuit, however controlling through a computer could be complex, I would rather recommend using a remote control for the same......

    ReplyDelete
  39. Hey can u make a circuit,as same a as above,just to regulate the time interval of OF/OFF of motor....
    Like......i stared the motor by pressing the bell switch a 0 min...after 10 min it will turn of,and at 20 min it will automatically turn on.....
    Because the problem is that the flow of water to my underground tank is very slow,and my pump pull all the water to main tank in just 20 min....making the underground tank empty....

    ReplyDelete
  40. please provide more details regarding the timing sequence....after 20 minute what should happen??

    ReplyDelete
  41. CAN YOU BUILT THE CKT AROUND 555 INSTEAD OF 4060

    ReplyDelete
  42. Hello . If we use battery 12v as supply also can or not ?

    ReplyDelete
  43. Yes you can use a battery also for operating the circuit

    ReplyDelete
  44. It can be implemented using a sequential cascaded timer cirucit, you can modify the concept which is explained in the following article which looks quite suitable to your application need

    https://homemade-circuits.com/2013/06/automatic-programmable-school-bell.html

    If possible I'll update the same in a new article soon

    ReplyDelete
  45. Iam grateful for your help. Thank you very much.

    ReplyDelete

Post a Comment