Build a simple water level control

 by rlarios
Featured
FullyAssembled.jpg

About 20 years ago, a friend of mine came to me saying that he had to repair a customer’s  water level control made out of electromechanical relays which was falling apart.  He understood that the original control relied on conductivity of water. The customer didn’t want any type of float switch so he had to stick to the way it was meant to work.

He could start the pump whenever water fell below the “low” level electrode and pump would stop once it reached the “high” level electrode but, as water was consumed and its level barely dropped just below “high”, his circuit would re-start the pump just to stop it as soon as “high” electrode was touched by water again. This process kept going on and on until he switched power off. His circuit was oscillating which was not good for a 5 HP water pump or any pump at all.

He needed help. At this point I asked him that instead of working with relays, wouldn’t it be nice if the control were electronic which would probably be less expensive, more reliable and have a longer life?

 I intended to build a kit for Club Jameco out of how I remembered this control worked and this is what this instructable is all about. 
 

*** Disclaimer: This kit is meant to operate with equipment such as line operated water pumps or motor starter relays and/or contactors at lower control voltages. Line voltage is dangerous and if mishandled can cause injury or death. If you are not familiar or have not worked with line operated equipment, have a licensed electrician do the power wiring for you. This kit is meant to be educational in nature and can be used with line operated equipment if National Electric Code guidelines are followed. ***
 

 
Remove these adsRemove these ads by Signing Up

Step 1: Proposed Control Slide show

Slide01.bmp
Slide02.bmp
Slide03.bmp
Slide04.bmp
Slide05.bmp
Slide06.bmp
Slide07.bmp
Slide08.bmp
Slide09.bmp
Slide10.bmp
Slide11.bmp
Slide12.bmp
Slide13.bmp
Slide14.bmp
Slide15.bmp
Slide16.bmp
Slide17.bmp
Slide18.bmp
Slide19.bmp
Slide20.bmp
Slide21.bmp
Slide22.bmp
Slide23.bmp

The slide show included in this instructable shows the basic operating theory behind this control. It assumes that the pump is a small plug-in pump. This control has a small 12V coil relay whose contacts are rated at 10A 120V. You can select any relay to suit your water pump's power source.

vanarion says: Jun 8, 2013. 5:12 PM
hi ,

i am a noob and very interested in doing these stuff.
I would like to install on a half HP motor .. can u please help me the components?.
rlarios (author) in reply to vanarionJun 8, 2013. 7:45 PM
Dear Vanarion,

The easiest thing to do is to use this kit the way it is with an external relay. This means, the on-board relay can switch on an external relay/contactor which in turn could switch on your 1/2HP motor.

Keep in mind that rating for on-board relay contacts is 10A @ 120V so this will determine your external relay's coil voltage. If your motor's voltage is 240V, you can use Jameco P/N: 282247 and a socket to mount this relay Jameco P/N: 282191. If your motor voltage is 120V, you need something bigger like Jameco P/N: 552462.

vanarion in reply to rlariosJun 8, 2013. 10:56 PM
thanks a lot mate,

so kind of you
mrcurlywhirly says: May 4, 2013. 8:35 PM
Nice work, and well covered in the diagrams. TBH this is not exactly the system i need to design for our property, but your description was so detailed i read through it anyway!
rlarios (author) in reply to mrcurlywhirlyMay 4, 2013. 9:33 PM
Thank you sir.
Now I am curious, what are your needs? I may be able to help.

mrcurlywhirly in reply to rlariosMay 4, 2013. 10:51 PM
My requirement is for three solar powered level gauges with wireless transmitters.
We have three cement 5000 gallon tanks, the top up pumping is not required, we get around 2000mm of rain per year, so only need to keep an eye on the levels to switch them in/out of service if the level of one drops too low.
I dont particularly want to have anything hanging in them, so that reduces the best options to a sonar pickup, or a pressure sensor in the outlet valve at the base of the tanks.
Don't want to cut through the tanks, or introduce weak points that may cause leakage, and would like to run wireless transmitters to the house with solar chargers. One tank is around 30 metres away, the other two around 5 metres. Can you feel a migraine coming on?
rlarios (author) in reply to mrcurlywhirlyMay 5, 2013. 1:13 PM
Given the design constraints, yes, I feel the migraine coming on.

I've seen a few sensors on:

http://www.gemssensors.com/Products/Level

And both shown there, ultrasonic and pressure sensors have parts hanging inside the tanks. Washing machines use some sort of pressure sensors to detect water level in them so I guess you'll have to continue searching for something similar.

Sorry for not being able to give you more info than the one you already got.
mrcurlywhirly in reply to rlariosMay 7, 2013. 4:00 AM
NP, you have given me plenty of food for thought.
Beyond the water supply for our house/garden I have a greenhouse project I am about to start (when i get home again), and want that to be practically self sufficient/sustaining with hydroponic setup and its own mini water tank.
Your water level control 'ible may be useful there for keeping the nutrient tank at the correct level.
Chipsy says: Feb 26, 2013. 5:38 AM
Nicely designed and well explained !! Maybee i missed it but what are the purposes of the capacitors and how did you choose the values?

I may be wrong but i think the C1 capacitor is to "smooth" out the electrodes detection? ( so it doesn't trigger until there is a real contact with the water )

Why use C2 and C3 in parallel and why C3 is 1uF ?

Cheers
rlarios (author) in reply to ChipsyFeb 26, 2013. 4:25 PM
Hi Chipsy,

C1 is the non-regulated DC supply's main filter. After reading your comments, I checked ripple voltage at this capacitor and saw it's about 1 Vp-p when relay and green LED both come on which is when the most power is drawn by the board.
C2 is the regulator's output main filter. This one is to keep +12V as constant as possible every time relay and green LED come on and off, both draw about 50 something mA.
C3 is the IC's decoupling capacitor to help improve transient response as close as possible to CD4001. Eagle's model for CD4001 does not include supply and ground leads for this IC, so I drew them the way they appeared on the schematic to compensate for this and yet have them included on the PCB layout.

Thanks for your comments !
MikB in reply to rlariosMar 2, 2013. 3:11 AM
Eagle (in common with "industry standards") hides things like power rails to a most ICs, they just get in the way. I think you can specifically place them on the circuit when you are adding gates, but usually out of the way, in a corner, somewhere. If you named your power rail nets correctly (e.g. VDD, VCC, VSS), they would be automatically hooked up in the PCB layout stage without you having to manually connect them up at all, although it would be nice to show the pin numbers on the schematic for human readers.
rlarios (author) in reply to MikBMar 3, 2013. 8:57 PM
Hi MikB,

I have yet to learn many things about Eagle software. I really appreciate your taking your time to let me know about power rails to ICs. However, before I learn how to do what you just mentioned, I modified the schematic by hand to show pin numbers and make sure parts and wiring look clearer

I do appreciate it. Thanks so much!
MikB in reply to rlariosMar 3, 2013. 1:39 PM
Right click on one of your NOR gates, and pick "INVOKE", you should see gates A-B-C and D of the chip, and also a 5th gate called P, marked "Request". You have to ask for it, by selecting it and adding it, you can specifically add the "power" gate in a corner of the schematic to show the pin numbers. I guess if you don't do this, the reader is expected to just "know" this stuff :)

In one of the libraries (supply1.lbr and supply2.lbr) are the symbols for creating a VDD/VSS attachment point that should link up all the VDD/VSS pins automatically without you having to hand draw them and label them yourself.

Hope those hints point you in the right direction. Been using Eagle on and off for years and it always trips me somewhere :)
Chipsy in reply to rlariosFeb 27, 2013. 12:20 AM
Thanks for the reply !

Sorry i miss-read the schematic, i now understand with your explanations, very clever :)

Cheers
pfred2 says: Feb 26, 2013. 4:32 PM
Your article looks great. Your project looks great too. Super job!
rlarios (author) in reply to pfred2Feb 27, 2013. 12:04 PM
Thank you sir !
ODC says: Feb 26, 2013. 7:41 PM
has to be one of the best explained instructables I read. Thumbs up for your work, now going to look at what else you've written.
rlarios (author) in reply to ODCFeb 26, 2013. 8:51 PM
Sir, I feel overwhelmed!

Thank you!
rimar2000 says: Feb 26, 2013. 8:42 AM
Very good work, clever and well explained.
rlarios (author) in reply to rimar2000Feb 26, 2013. 5:42 PM
Don Osvaldo,

Thanks for your comments ! I have read some of your instructables and I can tell that you are awesome !
doctorkred says: Feb 26, 2013. 7:47 AM
Great job!
rlarios (author) in reply to doctorkredFeb 26, 2013. 5:40 PM
Hi doctorkred,

Thanks for your comment.
pantalone says: Feb 26, 2013. 6:40 AM
Great job taking us from problem statement, through design, build and finally testing the completed circuit. I am curious about the distance between electrodes, since fresh water is not the best conductor of electricity. Do you really get a (12.0 - 0.8) voltage drop across the 2M resistor?
rlarios (author) in reply to pantaloneFeb 26, 2013. 5:38 PM
Hi Pantalone,

I measured the voltage drop when the electrodes are not in contact with water. All are at about 9.75V except Pump Protect which is at 9.1V due to Q1 input circuit. As per National Semiconductors CD4001 datasheet at 25°C:
Min Typ Max
Vdd=3V 3.5 3 -
High Level Input voltage: Vdd=10V 7 6 -
Vdd=15V: 11 9 -

By interpolation we may determine that for Vdd=12V, Min voltage might be 8.7V and, typical 8V? Well, I am guessing as I am not a professional digital designer.

On the other hand, when any electrode is in the water, the voltage is 0.56V - 0.6V. For a Logic "0" input should be between 0V and 3.5V when Vdd=12V.

I believe that our voltages are still within limits. So, to answer your question, the logic "1" voltage I got is not 12V as shown on the slide show, logic "0" was below 0.8V. The goal was to illustrate the principle.

By the way, thanks for your comments and I hope to have answered your question.

Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!