I want to create an electric conductivity meter according to the following example:
Think you can make a basic (uncalibrated) electric conductivity meter quite easilily
GND -------C B------A----[ R1 ]----- +5V
A = analog in of Arduino.
B, C = connectors to hang into the water
R1 = potmeter - should be in the same order as resistance BC with a minimum of 1K
Water between B & C will have a certain conducticity or resistance. Together with R1 it forms a voltage divider.
If BC conducts well the analog port will read a LOW value and when BC has a HIGH resistance it will read a HIGH value.
try if this suites your need
The only thing that I can't solve is how to avoid electrolysis caused by the DC current. This because the electrolysis will make my readings very inaccurate.....
Use two digital pins switched in antiphase to be your "power", and an analog pin to read the
middle of the voltage divider. Switch the polarity, take a reading, switch the polarity, take another
and subtract it from 1023, now average the readings.
When not taking readings let both digital pins float so no current flows.
On average the current is now zero as you reverse polarity, and you only have current during
a measurement.
Result - significant reduction of any electrolysis or polarization I hope.
This is the new-new moisture sensor -- use this instead of the basic version below.
The main improvement to the sensor is that we need to run the current both forward and reverse. This allows us to use our cheap two-probe soil moisture sensor without electrolysis ... more or less
Might be good to run the measured voltage through an op amp to get a better range to at analog in, if you are going to be holding it to less than 0.4 V. Stainless steel or graphite electrodes would also be better than a washer.