| RSS Web Feed for Renewable Energy UK |  | REUK Shop | Directory | About Us  

Understanding Liquid Sensors



Understanding Liquid Sensors

Learn more about liquid sensors and their limitations compared to float switches

water | electronics
  Printer Friendly Version Print Article     

In our article Float Switch Water Level Measurement we looked at how float switches can be used to detect when water in a vessel reaches a certain height. In that same article we introduced liquid sensors, with further information available in our REUK Shop product description for the Liquid Sensors we sell.

Liquid Sensor


The Difference Between a Liquid Sensor and a Float Switch

A float switch is a mechanical switch which is either ON or OFF - i.e. current is can flow through it or not. A liquid sensor on the other hand contains components which attempt to recreate the functionality of a mechanical switch but with certain limitations.

If, for example, you have a 12VDC source you want to pass through a liquid sensor when the sensor is submerged in water, 12V will flow through it as desired. However, if you place a slightly moist finger across the sensor contacts a limited current at up to 6 or 7 Volts will be able to flow through the liquid sensor. If you are connecting the sensor directly to a 12V rated relay or light bulb, then this will not be a problem since the relay/light will require more current than is available at a higher voltage than is available.

Liquid Sensor Memory

Inside a liquid sensor is a small capacitor. If you connect a liquid sensor to a voltage source (say 12V), and then dip the sensor in water for a second - 12V will flow through the sensor. If you then disconnect the liquid sensor from the voltage source, dry it thoroughly, and wait for a few minutes, that capacitor will still have approximately 12V across it. Therefore, if you then connect the dry water sensor back up to the voltage source and measure the voltage coming through it using a voltmeter, you will find that 12V will still pass through it despite the fact that the water sensor is now bone dry.

If you now connect a load (for example a 12V light bulb) to the dry liquid sensor output, the bulb will flash on for a split second and then turn off as the liquid sensor capacitor quickly discharges (and is not recharged since it is dry). Therefore, if you intend to use a liquid sensor to switch a light bulb, relay, or other similar load directly, everything will operate as you would expect: when the liquid sensor is submerged the light/relay will turn ON, and then the sensor is removed from the liquid the light/relay will turn OFF.

Liquid Sensors and Transistors

Problems will arise however if you attempt to connect the output of the liquid sensor directly to small loads such as a transistor or integrated circuit since they will draw just a tiny current. If the internal liquid sensor capacitor has 12V across is (from being recently submerged) it could take a long time for a transistor to draw sufficient current through the (now dry) sensor to bring its voltage down to the level at which the transistor will turn off the device it is controlling.

As an example, we put together the following circuit:

Using a liquid sensor with a transistor

The circuit is designed to turn ON an LED bulb whenever the liquid sensor is submerged in liquid, and turn OFF when it is taken out of the liquid. However, in reality the circuit does not work. When the sensor is first submerged the LED bulb lights up as required; but when the sensor is lifted out of the water the LED stays on brightly for the first five seconds and then slowly dims. Measuring the voltage coming through the liquid sensor, it can be seen to go down, rapidly at first (due to the current draw of the bright LED) falling to 5V in around 5 seconds, and then much more slowly (as the LED dims and eventually turns off) so that after 1 minute it is still at 1.85V and dropping by just 0.01V each second.

In addition, if the liquid sensor is submerged in water, but with the LED disconnected, and the liquid sensor then dried off and left for 10 minutes, when the LED is reconnected it lights up (before dimming as before) since the liquid sensor capacitor has not had any load on it to discharge it. In effect the liquid sensor has remembered detecting water.

Therefore, in order to connect the liquid sensor directly to a transistor (or other low current device) and still generate accurate results, a way has to be found to short circuit the liquid sensor capacitor when it is dry and not under load. This is easily achieved by adding a load - a simple resistor will do the job - as shown in the modified circuit below:

Using a liquid sensor with a transistor, and adding a resistor to short out the internal capacitor

Now when the liquid sensor is removed from liquid the LED dims from full brightness to off in half a second, and the measured voltage coming through the sensor falls from 12V to <0.20V in just under one second.

The lower the value of the resistor, the faster the liquid sensor voltage will fall, but the more power will be wasted (as heat in the resistor) when the liquid sensor is in water. Also, using a low value of resistor (< 10K) will make it take longer for the liquid sensor output to get up to the supply voltage (or prevent it getting there at all). For example, when we used a 1K resistor in the circuit above, the voltage output from the liquid sensor never got over 10.2V (supply was 12.0V) even when the sensor was submerged.

A certain amount of experimentation can be required to set up a liquid sensor controlled system in the way shown above. Sometimes a better alternative is to use the liquid sensor to directly control a relay, and use current flowing (or not) through the relay switch as the 'water detected' signal which can be sent to an IC or transistor without problems. Or, space permitting, use a float switch.



Article Last Modified: 12:16, 2nd Feb 2008

Comment on this Article

If you have any comments on this article, please email them to neil@reuk.co.uk.


Recommended Related Articles

People who read this article also enjoyed the following articles:

Reed Switches
Find out more about reed switches and their uses in RE
Article Last Modified: 08:54, 4th Apr 2007
electric circuit | electronics | wind

Float Switch Water Level Measurement
Find out how to use float switches in renewable energy applications
Article Last Modified: 11:07, 28th Jul 2008
water | electric circuit

© 2006-2012 REUK - All Rights Reserved
Page Last Updated on 4th February 2012 at 12:42:53pm

Latest
Articles


Make a PICAXE Repeating Timer
Make your own repeating timer with our automatic PICAXE Basic code generator
education
12:42, 4th Feb 2012

Karasouli SCC 20 Wind Turbine Charge Controller
Find out more about the SCC-20 wind turbine charge controller and dump load controller
wind
12:42, 4th Feb 2012

UK Feed in Tariff to be Cut by 50 Percent
UK government announces 50% cut in feed in tariff payable on new solar PV installations
solar
12:42, 4th Feb 2012

PIR Sensor Circuits
Find out more about using PIR sensors within renewable energy applications
electronics
12:42, 4th Feb 2012

Water Heating with Surplus Solar PV
Heat water with surplus solar generated electricity
solar
10:58, 4th Feb 2012

Hacked PIR Sensor
Cannibalise a cheap PIR sensor to put it to other uses
electronics
10:44, 4th Feb 2012

Make a Still
Find out how to make your own still for distilling ethanol fuel
biomass
13:49, 31st Jan 2012

PICAXE Microcontrollers
Find out about PICAXE microcontrollers and their use in renewable energy projects
electronics
13:12, 30th Jan 2012



REUK Shop

Popular Items


REUK SUPER LDR DUSK DAWN RELAY CONTROLLER
Multi-function light detector triggered light/dark dawn/dusk relay controller
£18.95 each.
Complete Circuits



KARASOULI SCC 20 CHARGE CONTROLLER
20A rated wind turbine charge controller and dump load controller with blocking diode and heatsink
£43.95 each.
Renewable Energy System Parts



SOLAR PUMP CONTROLLER WITH RELAY
Solar water heating system microprocessor controlled circuit with fitted 10A relay
£25.99 each.
Complete Circuits



REUK SUPER POULTRY LIGHTING CONTROLLER
Control up to 8 Watts of LED spotlights to stimulate egg production in birds
£29.99 each.
Complete Circuits



REUK SUPER TIMER 2
User programmable 12VDC powered 16A rated repeating relay timer. 1 second to 99 hours ON and OFF times
£23.99 each.
Complete Circuits



300 WATT POWER INVERTER
Convert 12V DC battery power into 230 AC to power portable televisions, computers, video recorders etc. 300 Watt power rating - peak power 600 Watts
£29.99 each.
Renewable Energy System Parts



CONVERTED PROGRAMMABLE DIGITAL TIMER RELAY
Mains powered programmable timer converted to low voltage with relay board
£21.99 each.
Renewable Energy System Parts



12 VOLT REGULATOR
Supply a fixed 12.0 Volt DC to your devices (up to 1 Amp output)
£4.99 each.
Complete Circuits



MR16 CERAMIC BULB HOLDER
Bulb holder for 12 Volt LED spotlight bulbs
£1.39 each.
Energy Efficient Lighting