Water Sensor



  • I have an Electrolux air washer which i decided to convert to a smart one. So i have already added necessary relays and can control fan speed and power... One thing left. It has a water control built in. I want to keep the original functionality of the board so i need to connect to the water sensor in parallel.

    This water control consists of two metal pieces submerged in water. And 2 wires going to the control board (from now on let's call them water wires)

    I have taken the pic of the board and highlighted the part where this water wires connect. This circuit is driven by a 9V ac-ac transformer. Multimeter shows around 1,5-3V of AC current on the metal plates.

    alt text

    So going the easy way i've just connected to the metal plates +3,3V from arduino and then to the analog pin (pulled to ground via 10k). Actually it almost worked. Had reading of around 158 when water present and 60 when not.

    But i lost the functionality of the control board. With +3,3V from arduino connected it always "detected" water even when there was none. (i have tried switching sides with no luck).

    So i removed the 3,3V from arduino and just left the analogue pin connected to one of the metal plates. This gives me fluctuation reading from 2 to 30.

    So i wonder what is the correct way to go?


  • Mod

    @moskovskiy82 did you try switching from pulldown to pullup?



  • Nope. Will it help in any way?

    The chip on the original circuit reads HEF4093BT


  • Mod

    @moskovskiy82 I don't know. I just thought it might be worth trying.

    Maybe you don't need a pullup/down at all. Just connect gnd on arduino to gnd on the control board and connect the analog pin like you already have.



  • Connecting to either of the sensor cables will not work, as the 4093 Schmitt trigger gates are used as an oscillator to produce ac on the sensors to prevent corrosion on the sensor due to electrolysis.
    I whould try one of the two output signals on Pins 10 and 11 that go up to the transistors or fets on the upper left side, to see which is the suitable signal

    Be careful as the signal level may be more than 5V, as the supply to the 4093 looks to be be a simple rectifier with zener diode clamping.



  • @hard-shovel said in Water Sensor:

    Wow! Thank you! You just made a lot of stuff clear.
    On the upper left part of the pannel - is actually a status LED. Which turns red when no water detected and green when it is. So i believe i should just dump the idea of getting anything from the water sensor and turn my view on the LED? This is the backside of the board.
    AC is totally confusing me. Especially the LED part. When trying to measure ac voltage with my multimeter i have seen something like 30V between the live neutral and one of the LED legs. So any recommendation is very appreciated

    alt text



  • @moskovskiy82 See if you can feed an optocoupler off of the LED.



  • @dbemowsk

    Ok took the measurements once again on the led. This time measuriong only LED pins and not the live neutral wire. Between 1 and 3 gave me 0,1AC and 1,8DC when red and 0,1AC and 0,1DC when green. So just connected the anlogue pin of arduino to pin3 of LED and it works. Readings 19-70 when red led turned on. And 0-3 when off.
    Just wonder how this led works from AC and is it still a good advice to put optocoupler into it?



  • The Led is not actualy runing on AC. Part of the IC generates an low voltage AC signal (Nothing to do Mains Power) then other parts of the IC detect changes to this signal via the pair of diodes at the bottom, and then generate the two signals for the red and green leds.

    The bicolor color led has a common terminal in the center and the two outer pins control the two outer pins power the red and green leds.

    Utilizing a optocoupler has a safety advantage, as it isolates the power on the sensed unit from the mysensor node. It also allows systems using different control signal voltages to be interconnected.

    If you have the arduino analogue pin connected to Pin3, where do you have the arduino GND connected?

    As there is a relay that is connected in parallel to the the Upper LED drive transistor,
    I recommend using a optocoupler and resistor connected to the relay terminals shown, as these connections are easy to solder wires to.
    The resistor will need to be sized to match the voltage on the relay to limit current through the optocoupler led. 0_1516034196873_Electrolux Control Board 213.jpg



  • @moskovskiy82 that LED is a bicolored LED. The center pin is common, and then one outer pin controls red, and the other controls green.



  • @hard-shovel said in Water Sensor:

    If you have the arduino analogue pin connected to Pin3, where do you have the arduino GND connected?

    Well actually nowhere 🙂 Thought that as the analogue pin is pulled to ground that will suffice.
    Was happy at first but still seems the readings are erratic. So will follow your great advice with the optocoupler.
    Do i get the connection scheme correctly?

    alt text


  • Hero Member



  • @neverdie Do o really need the TLP222A as i already have 4N35 lying around


  • Hero Member

    I'll withdraw the suggestion. I don't know what's right for you.



  • The TLP222A are opto-Mosfet devices so ideal for powering LEDs and small Relays etc as they have a 500mA rating, and the price listed is good value.

    However for your application, use the 4N35 that you already have.
    Your diagram is reversed as you need to drive the led in the optocoupler from the relay coil connections.

    Use the existing 10K as a pullup resistor at the input to the arduino,
    On the relay side use a series resistor R1 of about 1Kohm for 12Vdc (expected from a 9Vac supply).0_1516275929555_Water Sensor 213-B.jpg



  • @hard-shovel said in Water Sensor:

    Your diagram is reversed as you need to drive the led in the optocoupler from the relay coil connections.

    Your ingenious scheme worked like a charm. Thank you!
    Don't want to push but in such a rare possibility when you have access to such a marvelous help...

    The fan is of asynchronous type with 3 wires (neutral and 2 speeds). Currently i have just connected the output for speed1 to relay NC contact and speed2 to fan to NO contact. So it looks like this.

    alt text

    With such connection i still have the manual switch to off - 1st speed. But with such connection i cannot use manual switch on humidifier to choose the second switch. I have already use a multi meter to find out contacts

    i was thinking of making my sensors node completely parallel to the board and use 4n35 to sense 220V AC on different rotary switch positions and drive relays appropriately. All the schematics i found on the web use bridge rectifier. Wonder if there is any way to go without one - and if not - what to order from aliexpress?



  • To sense the 220V without a bridge rectifer use an ac version of the opto-isolator, The optocoupler will still need the rest of the components ie resistors and/or capacitors.
    typical types are H11AA1 or LTV814 etc

    0_1516572230867_Opto-Couplers.png

    link text



  • @hard-shovel said in Water Sensor:

    typical types are H11AA1 or LTV814 etc

    Thank you! Seems like the best way to for me than. Will order and wait for them to arrive


Log in to reply
 

Suggested Topics

  • 87
  • 7
  • 8
  • 7
  • 5
  • 1

48
Online

11.4k
Users

11.1k
Topics

112.6k
Posts