Best choice for detecting water?


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ShortBus View Post
    - Using and ADC channel to read the resistance across the probes. Normal state should be infinite resistance; anything less and sound the alarm. However, I don't know how to use ADC to measure resistance. According to the datasheet, the max recommended impedance 10k for ADC is anyhow. So I don't know if this is a poor idea besides the point.
    You could use the ADC input, or use the input as a digital pin. Essentially, the resistor between the pin and ground, and the water body would form a potential divider. With no water, your ADC reading would be almost, or equal to zero. When water bridges the probe, it should get close to the full Vdd (200+, for the resistor value I have used).

    Alternately, if you're using the pin as a digital input, it would be low till water bridges the probe, and then swing high.

    The 2nd version of the schematic would be even better, where you control current going thru' the water, as you could reduce the corrosion by a very significant amount.

    BTW, please excuse the shabby drawing, thought it would be faster than drafting it.

    Regards,

    Anand
    Attached Images Attached Images   

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink the clever method ...

    Hi,

    I think a fair solution could be to use capacitive detection using the RC oscillator :

    The probe being the ... Capacitor.

    just compare the duration of, say 256 osc periods to an external RCTime result ...

    With water , the capacity of the probe is high ... Osc runs slow ...

    When dry, the capacity is low and osc runs faster ...


    Interest ??? can even run the 32 Khz clock for power saving, no direct contact of the electrodes and the water ( works with " pure" water also - no corrosion or dirt disturbing measurements )

    Some level MEASURES can also be made using the RCTime command, but less power savings ...

    Alain
    Last edited by Acetronics2; - 11th October 2009 at 19:19.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Jun 2007
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Anand,

    Thank you for taking the time to sketch out your schematics! It's a big help.


    Alain,

    I'd have no idea how to implement something like that (I'm a software guy who's muddling through electronics); though it does sound interesting.

  4. #4
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    About 40 years ago, I needed electrodes for electrolyzing water. All the metal ones had problems, but I found a great solution in the carbon rods that go down the middle of zinc-carbon dry cell batteries. They even have a metal cap crimped on one end that you can solder to.

    If you can still find them.
    Charles Linquist

  5. #5
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    You should be fine with stainless bolts as sensors, as long as you've properly insulated / epoxied the connection between them and the wire. Plus, if you can, run the pic off a 3 volts supply, the probes will last that much longer.

    Regards,

    Anand

  6. #6
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    This device is extremely reliable (as long as it's not sewage which tends to coat the optics!) and is actually manufactured by Honeywell Microswitch in the USA. Connect with minimal components directly to your PIC (or even Relay).

    http://docs-europe.electrocomponents...6b8001adaf.pdf

    It is a little power-hungry for Battery applications though.

    You don't have to go Stainless Steel if you use AC exitation on your probes... PWM say a 1kHz signal to one probe (via a 100nF Capacitor, the other probe (again via a 100nF) can be used to detect the signal returning. To minimise power consumption, turn the PIC on only every few seconds (typical Rain Detector application to alert you to take the washing indoors).

  7. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking

    Hi, Folks

    This one doesn't show any Pic ... is not a " Bling-Bling" device, but works perfectly ...

    Published in ... 1983 !!!

    DUS means: general use Silicon diode : 1N4148, BAW62 ...

    Alain
    Attached Images Attached Images  
    Last edited by Acetronics2; - 13th October 2009 at 13:30.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. water flow meter..
    By ecca in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 27th May 2010, 10:11
  2. PIC water sensor
    By The Master in forum Off Topic
    Replies: 28
    Last Post: - 24th October 2008, 18:29
  3. Electric water valve
    By Christopher4187 in forum Off Topic
    Replies: 2
    Last Post: - 6th April 2008, 21:41
  4. Water Level Detection using Ultrasonic Sensor
    By Balachandar in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th November 2007, 04:59
  5. hot water flow sensor
    By jessey in forum Off Topic
    Replies: 16
    Last Post: - 24th January 2007, 04:05

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts