Hey Arduino forum,
Recently I've been thinking on what kind of project should I build next with having a few parts.
I've decided to make a
conductivity measurement tool out of an
Arduino Uno!!

Exiting, isn't it !?

Well... It was in the beginning. But then It's boring when you just see some numbers ranging from 0 to 1023 coming out from the serial monitor that are read from an
analogRead function.
I used some water and then tried adding salt to it, in order to test my tool. I place two wires into the water. (One's connected to GND and the other is connected to 5V through a pull-up of 10K and to another wire going to A1) And It works! Its even capable of reading the conductivity of my body by placing one end of wire in one hand and the other wire in the other hand.
The thing I really want to achieve is convert those numbers into some widely used conductivity measurement. I don't know from were to start though.
Here's my simple code:
NOTE: I use the
map function so that it reads 0 when there's no electricity, and 1023 when it's at its max. If I don't use it then It would read 0 when the two wires touch each other.
int sensor = 14; // sensor pin
int comp;
void setup()
{
Serial.begin(9600); // Serial for Debuging
}
void loop() {
comp = analogRead(sensor);
comp = map(comp, 0, 1023, 1023, 0);
Serial.print("Reading =");
Serial.println(comp);
delay(500);
}
Thanks!!