Page 1 of 1

Problem with tds meter

Unread postPosted:Wed Mar 10, 2021 1:34 pm
by weedcuper
Sup guys. Just have looked at tds-meter Arduino code and can't understand one thing:
Code: Select all
tdsValue=(133.42*compensationVolatge*compensationVolatge*compensationVolatge - 255.86*compensationVolatge*compensationVolatge + 857.39*compensationVolatge)*0.5;
Where does this formula come from? And how did you calculate this coefficients?

Re: Problem with tds meter

Unread postPosted:Thu Mar 11, 2021 6:23 am
by borhadepriti516
I am building a ESP8266 project with a water flow and TDS meter to measure the status of my water filter. The water flow meter has been easy to get working so far, but I have not yet figured out how to interface the TDS meter. Ideally it would be in-line and use a quick connect fitting. This is what I am thinking of getting. How could I get the data that this puts out, into my Arduino?blossomfurnishings.com/acrylic-rectangle-dining-table/

Re: Problem with tds meter

Unread postPosted:Thu Mar 11, 2021 6:24 am
by 347945801
This formula is fitted out by our technicians through experiments, all relying on experimental data and no reference materials.

Re: Problem with tds meter

Unread postPosted:Thu Mar 11, 2021 6:28 am
by 347945801
This sensor only needs to read a simple analog voltage. You connect the 3 wires connected to the Arduino in the picture to the ESP8266, and connect the power, ground, and GPIO pins respectively.
Image

Re: Problem with tds meter

Unread postPosted:Sun May 09, 2021 11:14 am
by jonathantelling69
I too would like to know how this equation works. I'll add more details later. I understand how the temperature compensation is calculated. Just that the output from this board is in voltage, which is converted by the ADC.... Unsure how the above equation converts that back to EC for calculation. The reason I want this, is that the provided lib for calibration only works for normal aruino, not ESPs.. (Yes I changed the pin to A0 in the cpp file, :D ).