However, due to the individual differences of different TDS probe, differences of the main control board, and no onboard temperature compensation, the measured value can have some errors.Therefore, to obtain a more accurate TDS value, calibration is required before measurement. Through the basic tutorial the TDS value of the liquid can be easily measured. Then wait for the reading to be stable, and you will get the TDS value of the water.
Then insert the TDS probe into the water, and gently stir it.
Static unsigned long printTimepoint = millis() īTemp = (bTab + bTab) / 2 Īfter uploading the sample code,open the serial monitor of the Arduino IDE. If(millis()-analogSampleTimepoint > 40U) //every 40 milliseconds,read the analog value from the ADCĪnalogBuffer = analogRead(TdsSensorPin) //read the analog value and store into the buffer Static unsigned long analogSampleTimepoint = millis() Int analogBuffer // store the analog value in the array, read from ADCįloat averageVoltage = 0,tdsValue = 0,temperature = 25 #define VREF 5.0 // analog reference voltage(Volt) of the ADC
This code is tested on Arduino Uno and Leonardo with Arduino IDE 1.0.5 r2 and 1.8.2.Ģ.
This tutorial will show you how to measure the TDS value of the water. With this product, you can easily DIY a TDS detector to reflect the cleanliness of water to protect your health!ġ.The probe can not be used in water above 55 degrees centigrade.Ģ.The probe can not be left too close to the edge of the container, otherwise it will affect the reading.ģ.The head and the cable of the probe are waterproof, but the connector and the signal transmitter board are not waterproof.
This product can be used in water quality application, such as domestic water analysis and hydroponics. The TDS probe is waterproof, it can be immersed in water for long time measurement.
The excitation source is AC signal, which can effectively prevent the probe from polarization and prolong the life of the probe, meanwhile can help increase the stability of the output signal. This product supports 3.3 ~ 5.5V wide voltage input, and 0 ~ 2.3V analog voltage output, which makes it compatible with 5V or 3.3V control systems or boards. Matching with Arduino controller, you can build a TDS detector easily to measure the TDS value of liquid without needing to purchase expensive equipment. To this end, we have launched an analog TDS sensor kit which is compatible with Arduino, plug and play, and is easy to use.
In general professional instruments have high accuracy and can send data to the control system, but the price is expensive for the ordinary person. The price is affordable, and it is easy to use, however commonly it is not able to transmit data to a control system for online monitoring of water quality. Therefore, the TDS value can be used as one reference point for reflecting the cleanliness of water.Ī TDS pen is a widely used peice of equipment to measure TDS value. In general, the higher the TDS value, the more soluble solids are dissolved in water, and the less clean the water is. TDS (Total Dissolved Solids) indicates how many milligrams of soluble solids are dissolved in one liter of water.