TDS Sensor to Propeller
JohnR2010
Posts: 431
I'm looking to interface with a TDS (Total Dissolved Solids) sensor http://www.eseasongear.com/hmdispdusepr.html. I would like to us a simple RC circuit and counter to read resistance / conductance of the water if possible. I knew I couldn't use straight DC for the reading and the reason (I thought) was if I used DC the probes would start to deteriorate due to electrolysis. As I have read more the inductance needs to be read from a 1khz or greater signal to keep from breaking down the molecules in the water. So does anyone have thoughts on how to go about this with a counter or two?
My current setup has the TDS probes tied to two pins of the Propeller (with a cap and a current limiter). I take one reading with Pin 1 attached to a counter and Pin 2 set to Vss then the next reading with Pin 1 set to Vss and Pin 2 attached to the counter. This works I do get a fairly stable time reading that appears to vary with the quality of water but before I start down the road of calibration I want to address the 1Khz requirement. Is there a counter mode I'm missing that may help me here? This has to be AC cant be pulsed DC.
My current setup has the TDS probes tied to two pins of the Propeller (with a cap and a current limiter). I take one reading with Pin 1 attached to a counter and Pin 2 set to Vss then the next reading with Pin 1 set to Vss and Pin 2 attached to the counter. This works I do get a fairly stable time reading that appears to vary with the quality of water but before I start down the road of calibration I want to address the 1Khz requirement. Is there a counter mode I'm missing that may help me here? This has to be AC cant be pulsed DC.
Comments
kwinn, thanks for your post. As I said in my original post I'm already driving the pins of the probe in opposite directions with a counter counting the time for a cap to discharge. I don't see the need to write this in PASM I would think I could easily achieve 1KHz with a counter and SPIN.
Asked and answered. Sorry to waste anyone's time.