RC Charge Decay measurement with mv
JohnR2010
Posts: 431
I'm working with a TDS probe that measures the conductivity of water. I was planning on using a simple RC decay circuit to measure the probes conductance. I built a circuit and tried this and it works fairly well but the readings are not stable. I think by sending 3v through the probe instead of 750mv I'm causing the probe to heat up and give false readings. Can someone recommend a simple circuit that will allow me to use an RC decay circuit with the propeller but only send 750mv instead of the full 3v.
Little more background:
The probes spec sheet (which is just a short paragraph) states it will work with any AC millivolt signal. I have the two conductors of the probe connected to a RC circuit that is in turn tied to two pins on my prop. I reverse the polarity of the pins and I can read the RD decay just fine. But this is sending 3v through the probe's electrodes and it should be less than 1v. Other probes I have worked with operate around 750mv.
Thanks.
Little more background:
The probes spec sheet (which is just a short paragraph) states it will work with any AC millivolt signal. I have the two conductors of the probe connected to a RC circuit that is in turn tied to two pins on my prop. I reverse the polarity of the pins and I can read the RD decay just fine. But this is sending 3v through the probe's electrodes and it should be less than 1v. Other probes I have worked with operate around 750mv.
Thanks.
Comments
The Prop pins are on the left and the probe is on the right. The Probe has a Thermistor and two electrodes that make up the TDS probe. The Thermistor part works great at 3v, the TDS side is what I need to drive in the micro-voltage range.
My code uses a counter to monitor the time it takes the cap to discharge through the probe (3.0v to 1.5v ). The circuit's VDD = 3v.
Thanks very much for your response!
Another approach to the mV RC approach might be to drive a pair of prop pins in opposite phases, connected to a string of three resistors. The idea is to create a relatively small AC square wave that brackets around the ~Vdd/2 threshold of the Prop. Your unknown TDS resistance and a series capacitor also bridge across the center resistor of the string. The junction of the TDS and the capacitor feeds a prop input pin that detects when the voltage crosses the Vdd/2 threshold. The voltage at that junction is a waveform that oscillates around the threshold. The time that needs to be measured is marked with a red t. Again the wide range of TDS resistances from 5k to 1M would be a problem for good scaling.
Thanks to Tracy for his suggestion I have this circuit working. There is more testing yet to do but after a day or so of calibration (trying various resistor configurations based on my target TDS values) I have settled on this design:
The code is pretty straight forward. I use Counter-A in NCO differential mode to generate the square wave on pins 1 and 2. I then use a couple of WAITPEQ statements to sync up Counter-B in POS detector mode to count the clock ticks it takes the signal to go from a high to a low on Pin 3. This time is directly related to the conductance of the water.
Here is a picture of my AC square wave as it is generated by the above circuit.
Thanks everyone for the input I think I have something I can work with now!!