>Could some one please tell me how to measure capacitance >using a PIC. Can I power-up the probes for a very short time >(few u secs) and measure the resistancs with out polarising? > >I have seen some discussion on measuring Conductivity using >a PIC in early August. I would like to use a similar setup to >measure water table depth. > >Many Thanks Hi Jagath, just to make sure - capacitance and conductivity (the reciprocal of resistance) are two different things. For capacitance measurement, you can use some type of RC oscilator and count the frequency by PIC. If you want to measure capacitance of probe dipped in water, short pulse will reduce the polarising effect, but only experiment would answer whether or not to a negligible level. If you can arrange pulse of opposite polarity to compensate the first one, it would be even better. If you want to measure water depth on your table, than maybe a ruler will do... ;-) Seriously - the counductivity measurement is done with a low AC voltage without any DC component. AC voltage of several hundred milivolts with frequency about 1kHz is applied to the conductivity probe (two wires/sticks in the water), resulting current is converted to voltage, rectified, smoothed out and measured. The probe should be made from inert material to avoid (both regular and electrochemial) corrosion. The conductivity is proportional to the specific conductivity of the water, area of the electrodes and inversely proportional to their distance. To calculate depth from conductivity measurement, you would have either to assume, that the specific counductivity is constant or get its value from an independent measurement. AFAIK, the depth measurement is better done with higher frequency (MHz), effectively measuring the capacitance of the probe. Since water and air differ in dielectrical constant a lot (80 and 1), the capacitance change is significant. But I haven't done that. Also if you need to recognize just two level (enough and not enough), you can use for instance selfheated termistor. Regards Josef