TDS METER

Hi!
Reviewing the code you propose for tds measurements seems strange to me the way it compensates and measures:
You propose this:
1) It is compensating the temperature from a voltage value. WHY?
2) Could you explain a little better why you are using that voltage conversion to tds?
Thank you very much!
Best regards.
Reviewing the code you propose for tds measurements seems strange to me the way it compensates and measures:
You propose this:
Code: Select all
But:float compensationVolatge = average Voltage / compensation Coefficient; // temperature compensation
tdsValue = (133.42 * compensationVolatge * compensationVolatge * compensationVolatge - 255.86 * compensationVolatge * compensationVolatge + 857.39 * compensationVolatge) * 0.5; // convert the voltage value to the tds
1) It is compensating the temperature from a voltage value. WHY?
2) Could you explain a little better why you are using that voltage conversion to tds?
Thank you very much!
Best regards.