• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Get free circuit help 24/7

  • 1000+ Circuits
  • Privacy Policy
  • About Us
  • Contact
  • Disclaimer
  • Videos – Circuit Test Results
You are here: Home / Water Level Controller / Anti-Corrosion Probes for Water Level Controller

Anti-Corrosion Probes for Water Level Controller

Last Updated on October 21, 2020 by Swagatam 54 Comments

In this post we learn how to make anti-corrosion probes for water level sensor and controller circuits by using alternating supply across the probes.

Anti-Corrosion Probes for Water Level Controller Circuits

How it Works

Let's understand the concept used behind the designing of this anti-corrosion probe circuit for water level sensors and controllers.

Corrosion in water level sensor probes take place due to DC supply which is normally used for triggering the probes through water. This is aggravated by the process of minor electrolysis across the probe terminals which in the long term usage results in formation of layers of chemicals an minerals, gradually inhibiting efficient working of the probes and affecting the water sensing ability of the circuit.

To remedy this an AC supply is recommended so that the process of electrolysis is unable to develop across the probes due to the constant flipping of the supply polarity across the probes through the alternating nature of the supply.

In the design presented above, the AC supply is derived from a 12V transformer, via a couple of high value resistors for dropping the current across the probes.

The supply is carried forward to the inputs of an "OR" gate which specifically deals with this AC and produces the relevant output depending on whether water is present across the probes or not.

In the absence of water the applied AC generates alternately changing potentials across the two input pins of the OR gate. As per the truth table of the OR gate, a 0 and 1 or 1 and 0 on its inputs correspondingly creates an output of logic 1. This implies that while the alternate switching is applied over the two inputs of the OR gate, causes its output to consistently be at a logic 1.

Now if water happens to bridge the probe points, it instantly causes a relative short across the points causing the AC to disappear at the inputs of the OR gate.

In  this situation both the inputs of the OR gate is held at logic 0, which causes its output to revert from logic 1 to a logic 0.

The above action switches ON the PNP transistor enabling the output to trigger the intended load such as a relay or an LED.

More number of gates could be employed with parallel probes points at different depths of the water tank in order to sense the various levels of the water if required, for building a multi water level anti-corrosion sensor probe circuit

The OR gate IC could be a IC 4071 or any other similar.

Simple Corrosion Free Water Level Sensor Circuit

The following figure a possible simpler method of creating a corrosion free water level sensing terminals.

corrosion free water level sensor terminals

NOTE: Please connect a 100K resistor between base/collector of BC557 transistor, otherwise it will not respond to the base 100 Hz switching

In the diagram we can see that the reference ground terminal at the bottom of the tank is supplied with an alternating +/- 6V instead of a normal DC. This forces the other terminals to conduct in a push-pull manner with the reference to this base terminal and this hopefully prevent corrosion from developing across the connected water level sensing terminals.

Using Opto Coupler

A perfect corrosion free water sensing probe can be built using an opto-coupler stage between the probe and the controller circuit as shown below:

As can be seen the probes are applied with a 12 V AC through the LED of an opto-coupler, and a reverse diode. One half AC cycles pass through the water and the probes by means of the opto LED, which triggers the controller circuit, while the other half AC cycle flows through the reverse diode.

The continuously reversing cycles of the AC ensures that no electrolysis of water is able to happen across the probes, which prevents any form of oxidation or corrosion development over the probes.




Previous: 2 Compact 12V 2 Amp SMPS Circuit for LED Driver
Next: Wireless Thermometer Using 433 MHz RF Link Using Arduino

About Swagatam

I am an electronic engineer (dipIETE ), hobbyist, inventor, schematic/PCB designer, manufacturer. I am also the founder of the website: https://www.homemade-circuits.com/, where I love sharing my innovative circuit ideas and tutorials.
If you have any circuit related query, you may interact through comments, I'll be most happy to help!

You'll also like:

  • 1.  Cheap Cellphone Controlled Water Pump for Farmers
  • 2.  Simple Adjustable Industrial Timer Circuit
  • 3.  Make this Touch free Faucet Circuit for Hands-free Tap Control
  • 4.  Timer based Water Level Controller Circuit
  • 5.  Soil Moisture Sensor Meter Circuit with Automatic Water Sprayer
  • 6.  Municipal Water Supply Sensor Controller Circuit

Please Subscribe (Only if you are Genuinely Interested in our Newsletters)


 

Reader Interactions

Comments

    Your Comments are too Valuable! But please see that they are related to the above article, and are not off-topic! Cancel reply

    Your email address will not be published. Required fields are marked *

  1. Search Related Posts for Commenting

  2. Prasanth says

    Hi sir,
    I have made simple 12v dc powered water
    level controller by using BC547. After switch. On the device it works properly. And i found stray volage in my water tank. Kindly suggest how to prevent the stary voltage in my water tank.

    Reply
    • Swagatam says

      Hi Prasanth, at which points did you measure the stray voltage?

      Reply
      • Prasanth says

        Hi sir, thanks for your response. I have not tested by any instrument . But I have inserted my hand in water tank and i felt the electric shock in water. (Note :- i had taken 12volt DC current from normal 12v dc adapter to my circuit)

        Reply
        • Swagatam says

          Hi Prasanth the “shock” feeling may be due to AC mains leaking from the transformer body. Please make sure that you have a good earthing in your mains socket, and connect the transformer iron body with the earthing line…if you are using an SMPS, then connect the negative line of the circuit with the earthing line.

          Reply
  3. Devesh chandra says

    Hi,
    it is a nice article, so thanks for it.
    I wanted to know that if in any worst case, there is possibility of current leakage from primary coil to water tank, due to any reason like transformer failure or some thing that I might not know.

    In that case what safeguards should be used.

    Thanks

    Reply
    • Swagatam says

      Hi, Thank you, glad you liked the article. There’s no chance of mains entering the water, unless the transformer is of bad quality, and/or the mains voltage increases to a level that burns the transformer winding.

      Reply
  4. Chandrasekhar says

    Hi swagtam, i have created the circuit using bc547, 22k at base and 5 volt supply. With 22k and 5 volt the probes are seems very less corrosive. Now the problem is the circuit is high sensitive. What should i do to decrease the sensitivity so that the led will glow only when the probes dip in water?

    Reply
    • Swagatam says

      Hi Chandrashekhar, which circuit are you referring to?

      Reply
      • Chandrasekhar says

        Sorry this is not circuit tht i am talking about. The circuit is in simple water level monitor using bc547 forum. By the way the problem is that. Pls any solution?

        Reply
        • Swagatam says

          Add a 0.22uF capacitor across base/emitter of the transistor

          Reply
  5. Imran Baig says

    Dear Swagatam,

    I have just read your article and tried to build the second circuit, but unfortunately it dosent work as expected. Following i shat i have done, please correct me i have done something wrong.

    I am using 4049 ic for not gates.
    I am using 6-0-6 transformer.
    I have connected middle wire to ground.
    I have connected positive out from capacitor to collector of 547 and first pin of 4049 ic.
    I have connected negative out from capacitor to collector of 557 and pin 7 of 4049 ic.
    I have used common base of both transistors as a common wire in water tank.

    Thanks in advance.

    Imran Baig

    Reply
    • Swagatam says

      Dear Imran, yes that looks OK to me!

      Reply
      • Imran Baig says

        Dear Swagatam,

        Thank you very much for replying my question, let me tell you more that i have also connected a 100K resistor between base to collector of BC557 transistor as suggested, but still the circuit dosen’t works for me, can you please share your email address with me, so that i can share the exact circuit diagram which i have made, to rectify the mistake.

        Thanks in advance,
        Imran Baig

        Reply
        • Imran Baig says

          Dear Swagatam,

          Thank you for the reply, I am trying to build the electrolysis-free automatic water-motor ON\OFF switch having 4 LED water levels indicators for my home water tank. For the first step i am trying to glow the LED with this circuit and then in next step i want to ON\OFF the water motor based on minimum and maximum water level.

          Best Regards,
          Imran Baig

          Reply
          • Swagatam says

            OK, in that case you can test the first circuit as suggested by me in the previous comment. Make sure the +/- pins of the IC get the 12V, and also the emitter of PNP. As soon as water touches the probe points, the gate input pins must become 0V, this will cause the output of the gate to become 0V too, and the PNP will conduct along with the LED.
            The DC 12V to the IC can be acquired from a bridge rectifier and filter capacitor from the same transformer. The transformer can be a 500mA rated.
            After immersing the probes under water check the voltage across the 10M resistors, it must show 0V here.

            Reply
          • Imran Baig says

            Ok, i will try to build the first circuit again and will let you know about the results. Please tell me where to connect the collector of PNP transistor which is marked as OUT.

            Reply
            • Swagatam says

              You may keep it open initially, and watch only the LED response. Once the LED response is confirmed you can connect the collector to any desired load such as a relay.

          • Imran Baig says

            Dear Swagatam,

            I have created the first circuit on breadboard as suggested, specified below are the detailed observations and the steps I performed.

            – The initial voltage of my transformer are around 13.5 volt AC.
            – When I converted AC to DC using bridge rectifier and a filter capacitor then DC voltage becomes around 17.5 volts, so I used Regulator IC 7812 to get exact 12 volt DC.
            – I have assembled the circuit on breadboard as suggested. I didn’t have 10M resistors so I have used 2.2M resistors to ground the input of OR-Gate.
            – I have connected IC 4071 pin-7 to ground and pin-14 to +12 volt, I have also connected emitter of PNP BC-557 transistor to +12 volt.
            – With open probes the voltages on input of OR-Gate are around 3.5 volt AC.
            – With short probes the voltages on input of OR-Gate are around 0 volt AC.
            – With open probes the voltages on output of OR-Gate are around 2.5 volt DC.
            – With short probes the voltages on output of OR-Gate are around 0 volt DC.

            But unfortunately the LED didn’t glow neither with open nor with short probes.

            I think the problem is around LED and transistor. I have also connected LWD in parallel to diode 4048, and it works as desired, please correct me what wrong i am doing.

            Thanks in advance,
            Imran Baig

            Reply
            • Swagatam says

              Dear Imran,
              Thank you for the detailed explanation.
              Please modify the output section in the following manner, and let me know how it works.
              https://www.homemade-circuits.com/wp-content/uploads/2019/10/corrosion-free-water-level.jpg

            • Swagatam says

              Just wanted to know that did you check the results by actually putting water across the probes??

            • Swagatam says

              If you connect the LED directly across output of the gate and the ground then the LED will illuminate when water is not present, but we want the opposite results from the LED, therefore we’ll have to add the specified NPN BJT stages.

          • Imran Baig says

            Dear Swagatam,

            Thank you very much for reading my response and replying me, I will definitely modify the output section and will let you know about the result.

            Answers of your questions are.
            – Yes I have checked the result in both ways, by directly short-circuiting the probs and by putting the probs in a glass the water.
            – Yes you are right, when i connect the LED directly across output of the gate and the ground, i get the result but in opposite order, I will experiment the suggested NPN BJT stages for it.

            I have couple of question; as you suggested that for each indicator i will have to put two probs parallely into the water on one inch distance. can i combine one prob of all indicators to get one common brob, because i have less wires to put into the water tank.
            Secondly will this circuit work for long distance wires; like 40 feet or so? as i have a water pump at ground floor and the water tank at third floor roof top, and i want to place entire circuit on ground floor near water pump.

            Thank you for your help,
            Imran Baig

            Reply
            • Swagatam says

              No problem dear Imran, Let’s wait for the results.
              Here are the answers for your other questions:
              Two wires for the probes will give foolproof results since the current has to pass through a very short distance across the probes, whereas using a single common wire for one of the probes will mean the current has to pass through a big bulk of water affecting the reliability of the results. You can use twin joined wire cords for each pair of probes to simplify the wiring.
              Yes you can use long wires without issues, just add a 0.22uF capacitor across each gate input and ground, to eliminate interference pickup.

          • Imran Baig says

            Dear Swagatam,

            I tried the modified circuit last night, but still no luck. The LED connected with the collector of second BC547 transistor keeps glowing in either case, whether I open the probes or short the probs. Meanwhile I have also connected LED with ground and output of OR gate and it works as earlier.

            Best Regards,
            Imran Baig

            Reply
            • Swagatam says

              Dear Imran, If the LED alone responds to the water contact then the transistor has to also respond. Please shift the LED in between the Gate and the transistor base, and also reduce the base resistance to 1K and check again. This will prove the actual situation of the transistor conduction.

          • Imran Baig says

            Sure i will do it, and will let you know about the results.

            Reply
            • Swagatam says

              OK great!

          • Imran Baig says

            Dear Swagatam,

            I have modified the circuit as suggested, and have connected LED + 1K resistor between output of OR gate and base of first 547 transistor, the LED gets ON with open probes and gets OFF with short probes, I also noticed the result of second LED which is connected between +12v and collector of second 547 transistor having 1K of resistor in series. This LED still behaves the same; means it remains ON in both conditions.

            Apart of this I was thinking about using NOR gate instead of OR gate, and have also experimented it last night. I have used ic 4001 for it, with the same input of gates, and the only LED connected between output of NOR gate and ground. unfortunately it also didn’t worked for me, the LED remains ON in both of conditions.

            Best Regards,
            Imran Baig

            Reply
            • Swagatam says

              Dear Imran, it seems there’s something wrong with the second transistor. If the LED is glowing it means the first NPN is conducting, in that case it is grounding the base voltage of the second transistor, so the LED at the collector of the second transistor must shut off. Please check the base/emitter voltage of the second transistor, if it becomes zero and still its collector LED glows then the transistor may be faulty or wrongly connected.

      • Imran Baig says

        I have also tried to build the first circuit as well but again no luck, definitely i am doing some mistake. I have some questions regarding first circuit as listed below.

        – Can i use “500 milli-ampare” transformer instead of “1A”?
        – Can i connect bridge rectifier and capacitor directly with this transformer to get DC 12v to operate other motor controller circuit?
        – What does +12V indicator means in this circuit, do i need to give +12V input here, and -12V input to the ground specified in this circuit?
        – What does “OUT” indicator means in this circuit?
        – As per my understanding, “Probe Outlet” are the probes needs to be dipped in the water, if i make 4 indicators then will i need to dip two probes for each indicator means total of 8 probes, or will there be any common probe which will make total of 5 probes?

        Best Regards,
        Imran Baig

        Reply
        • Swagatam says

          Please let me know what result are you trying to check in the first circuit, is it the corrosion effect or the LED illumination?

          I guess it is the LED illumination. As per my understanding which I have explained in the article, when water bridges the “probe outlet” points it produces low resistance for both the half cycles of the AC from the transformer. This means the GATE input is inhibited from a positive supply, and both the inputs get 0V, when the both the inputs are zero volt the output of the gate also turns zero allowing the transistor to be biased through the LED.

          Yes the probe outlets meed to be placed at the different positions of the water and must be at a 1 inch distance.

          Remember the IC needs a 12V DC to operate across its Vcc and Vss pins, this 12V must also be connect to the transistor emitter.

          Reply
  6. Samuel says

    Hello! I’m from brazil, and will try to make the first circuit.
    1 – Works with 9v transformer?
    2 – I’ll need a transformer and a dc power supply to do, right?
    3 – if I test only one level, with 4071 I need to do something more?

    Reply
    • Swagatam says

      Yes that’s correct! You can use a single gate from the IC, and ground all the inputs of the remaining gates in the IC, the outputs of these gates can be left open.

      Also, replace the 2M2 resistor connected with the transformer 12V wires with 100K for better response!

      Reply
  7. wahyu says

    hello, please help how to using anti corrosion probe with arduino for water level control.

    Reply
    • Swagatam says

      You can use the same concept which is shown in the second diagram. Or more simply, just introduce one wire directly from the transformer secondary into the water. This will create an low voltage AC in the water prevent the corrosion effect.

      Reply
  8. Avi says

    Hi
    This water level controller circuit is very simple and maintenance free.
    Bro i want to add high and low level alarm, i know its easy, but the reason i asking is that i want to use only one bell type switch which can reset both high and low level alarm when tank water is full or low.
    Is it possible, could you please help me out.

    Reply
    • Swag says

      Thank you Avi, yes you can achieve it by using the concept explained in the following article:

      https://www.homemade-circuits.com/2015/09/borewell-motor-pump-starter-controller.html

      IC1 or IC2 both are monostables circuits which produce a high output for sometime depending on the values of the C and R, in response to input triggers. You can use any one of these circuits, and connect the 0.22uF with water controller outputs through separate diodes (1N4148). The anodes of both the diodes will join with the 0.22uF end, while the cathodes will separately join with the upper and the lower water level IC outputs. The relay contacts can be joined with an alarm.

      Reply
      • Avi says

        Hi
        Sorry to bother you again but
        wow bro that is really simple and amazing. I understood when top most led will trigger the delay on circuit for the time depending upon c and r value. But i didn’t understand when water will go down the 2nd led gets turn off how it will trigger the circuit again.
        Also is it not necessary to connect a reset switch for alarm.

        Reply
        • Swag says

          Hi Avi, you can actually do it in the following manner:

          https://www.homemade-circuits.com/water-level-alarm

          No need of any reset switch

          Reply
          • Swag says

            Sorry Avi, I think I am wrong this will not work, I’ll try to think of some other alternative.

            Reply
            • Avi says

              Hii
              bro an idea just stucked in my mind to make it possible. I think by using an two separate diods, spdt switch and a transistor not gate connected at the low level output from indicator.

            • Swag says

              Hi Avi, but it should be automatic right? so switch cannot be used, here’s the revised diagram, this will do the job perfectly:

              https://www.homemade-circuits.com/water-level-alarm-2

              the diode ends will go to the respective NOT gate outputs

  9. LOGANATHAN says

    Dear sir, In the main article N1 is given as any or gate. Which IC can be used. 12V dc can be connected to DC supply for that IC. Which Transistor is to be used. it is not given. Then in the simple corrosion free water level circuit , the IC no. is not given.Why the power supply should be 6-0-6 volt supply. can it be 6v or 12v DC . in this case only one transistor (547 OR 557) may be sufficient. pl clarify. When the maximum components details are given, certain data such as IC type and like resistor values are not given. Request your comment.

    Reply
    • Swag says

      Dear Loganathan, you can use the IC 4071B, and use one gate out of the 4 gates in it. Make sure to ground all the inputs of the unused 3 gates. The transistor can be BC557 or ant similar.
      Sometimes I may forget to add the component number, but you can always ask me to update the missing ones, I’ll do it quickly.

      In the second design if the transformer is single polarity type then the anti-corrosion effect will not work, it has to be dual or push pull in nature

      Reply
  10. Godson says

    Hello sir Swagatam,
    I stumbled upon this link in the response you gave to a question of the main article. I assembled the the circuit in the main article and it worked quite well. But I assembled and tested it in a small water container. Thank you for providing the circuit above to solve the issue of corrosion. I want to wire the last circuit with just four levels and not six. My questions go thus:
    1. Can I use the circuit in a water tank that is about 3-4meters in height and get a good result, knowing that the distance between the probes will be much? If yes,
    2. Do I put the “base probe” which is from the BC547 and BC557 at the base of the tank and put the other four probes at their respective positions or will each of the four probes have their own “base probe” beside them for better response?
    3. Is the IC still 4049 or another?

    Reply
    • Swag says

      Hi Godson, glad you could build it successfully.
      here are the answers:
      1) yes you can use ti for deeper tanks since the use of a frequency makes the conduction sharper and long ranged.
      2) You mean to say the emitter probes? Yes the probe is required to be placed at the bottom of the tank
      3) The IC is 4049.

      Reply
      • Godson says

        Hello sir Swagatam,
        Thanks a lot for the response. Yes I meant to say the emitter probes.
        I have more questions from the second schematic above:
        1. The 2M2 resistors are not connected to the positive rail of the supply as against what is in the main article. Is that an omission?
        2. The center-tap of the transfo is connected to the ground. Is it the same ground that is supplying the 4049?
        3. Can a 12-0-12 transfo be used in place of the 6-0-6 transfo?

        Reply
        • Swag says

          Hi Godson,

          thanks for pointing out the mistake.
          1) the 2M2 resistors must be connected with the positive supply, it has been mistakenly missed
          2) yes the center tap ground is common for the IC negative terminal, and the rest of the circuit where ground symbols are indicated.
          3) 12-0-12 transformer can be used

          Reply
  11. Peter Bestbier says

    Hi Swagatam

    Just a short note to convey my appreciation for the effort that you put into your very enlightening articles.
    As a semi-retired mechanical engineer, I have really benefited from your excellent articles and have as a result, successfully built several practical circuits. I look forward to building many more once I retire.

    Many thanks
    Kind regards
    Peter Bestbier (Cape Town South Africa)

    Reply
    • Swag says

      Thank you Peter, The pleasure is all mine!! keep up the good work.

      Reply
  12. Shry says

    Dear sir,
    I have simply used electronic bell (3V Dc supply) inputs as water level sensor inputs & a switch in series (used when borewell is on).
    It worked well for some months but now its not giving proper alarm on tank being full.
    i have changed batteries as well as filed the tips of copper wires used as probes but problem persists randomly.
    what could be possible fault.

    Reply
    • Swagatam says

      Dear Shry,

      how did you place the probes? make sure the distance between the probes is minimum, may be around an inch apart, now place this set of probes at the brim of the tank for sensing and check the response…

      Reply
  13. abubakar bakar says

    SIR ..if water reaches at prob and stil water is there transformer will not got dammage??
    2ndly is or gate ic read the ac signal …morever its a digital ic? so how is it possible??

    Reply
    • Swagatam says

      Hi Abubakar,

      transformer will not get damaged because the transformer is not near the water, only its output is immersed in water that too through 2M2 resistors.

      An AC is made up of two alternating DCs, right?, therefore applying this AC will be like applying two alternating DCs at the gate inputs….therefore the working will be perfectly OK just as explained in the article…

      Reply


  14. COMMENT BOX IS MOVED AT THE TOP


Primary Sidebar

Electronic Projects Categories

  • 3-Phase Power (15)
  • 324 IC Circuits (19)
  • 4017 IC Circuits (51)
  • 4060 IC Circuits (25)
  • 555 IC Circuits (92)
  • 741 IC Circuits (18)
  • Amplifiers (49)
  • Arduino Engineering Projects (82)
  • Audio Projects (84)
  • Battery Chargers (75)
  • Car and Motorcycle (87)
  • Datasheets (45)
  • Decorative Lighting (Diwali, Christmas) (31)
  • DIY LED Projects (81)
  • Electronic Components (97)
  • Electronic Devices and Circuit Theory (35)
  • Electronics Tutorial (99)
  • Fish Aquarium (5)
  • Free Energy (34)
  • Games (2)
  • GSM Projects (9)
  • Health Related (17)
  • Heater Controllers (23)
  • Home Electrical Circuits (98)
  • Incubator Related (6)
  • Industrial Electronics (26)
  • Infrared (IR) (39)
  • Inverter Circuits (94)
  • Laser Projects (10)
  • LM317/LM338 (21)
  • LM3915 IC (24)
  • Meters and Testers (54)
  • Mini Projects (153)
  • Motor Controller (64)
  • MPPT (7)
  • Oscillator Circuits (12)
  • PIR (Passive Infrared) (8)
  • Power Electronics (33)
  • Power Supply Circuits (66)
  • Radio Circuits (9)
  • Remote Control (46)
  • Security and Alarm (56)
  • Sensors and Detectors (115)
  • SG3525 IC (5)
  • Simple Circuits (72)
  • SMPS (30)
  • Solar Controllers (60)
  • Timer and Delay Relay (51)
  • TL494 IC (5)
  • Transformerless Power Supply (8)
  • Transmitter Circuits (38)
  • Ultrasonic Projects (12)
  • Water Level Controller (45)

Follow Homemade Circuits

Facebook
Twitter
YouTube
Instagram
My Facebook-Page
Quora

Feeds

Post RSS
Comment RSS

Circuit Calculators

  • AWG to Millimeter Converter
  • Battery Back up Time Calculator
  • Capacitance Reactance Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • Inductance Calculator
  • LC Resonance Calculator
  • LM317, LM338, LM396 Calculator
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • Reactance Calculator
  • Small Signal Transistor(BJT) and Diode Quick Datasheet
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator

© 2021 · Swagatam Innovations