Product description
Note: This product contains product introduction, wiring diagram, source code and so on. See below.
This equipment can be used for the measurement of general household water quality.
Generally, the tap water TDS is within 100 (about 90 in Shenzhen) and the purified water is within 10.
The compatible TDS sensor is used to measure the TDS value of water. The TDS value can reflect the cleanliness of water and can be applied to water quality testing in the fields of domestic water and hydroponics.
TDS (Total Dissolved Solids): Indicates how many milligrams of dissolved solids are dissolved in 1 liter of water. In general, the higher the TDS value, the more lysate is contained in the water and the more unclean the water. Therefore, the size of the TDS can be used as one of the basis for reflecting the cleanliness of the water.
The commonly used TDS testing equipment is a TDS pen. Although it is inexpensive and easy to use, it cannot transmit data to the control system, do long-term online monitoring, and analyze the water quality. Using a special instrument, although the data can be transmitted, the accuracy is high, but the pr1ce is very expensive. To this end, we have specially introduced this compatible TDS sensor, which can be used to measure the TDS value of water after connecting to the controller.
this product is plug and for play and easy to use. The wide voltage supply of 3.3~5.5V and the analog signal output of 0~2.3V make this product for 5V, 3.3V control system, which can be easily used in the ready-made control system. The excitation source used for measurement uses an AC signal, which can effectively prevent probe polarization, extend probe life, and increase the stability of the output signal. The TDS probe is a waterproof probe that can be immersed in water for long periods of for time.
The product can be applied to water quality testing in the fields of domestic water, hydroponics and the like. With this sensor, you can easily DIY a TDS detector, and easily check the cleanliness of the water to make your water quality better.
TDS probes cannot be used in water above 55 °C.
The TDS probe should not be placed too close to the edge of the container, as it will affect the display.
The for head and lead of the TDS probe are waterproof and can be immersed in water, but the connection interface and the signal adapter board are not waterproof. Please pay attention to use.
1. Wide voltage operation: 3.3~5.5V
2. 0~2.3V analog signal output, for 5V, 3.3V two control systems
3. The excitation source is an AC signal, effectively preventing probe polarization
4. Waterproof probe for long-term immersion in water
5.compatible, easy to connect, plug and for play, no soldering required
TDS measurement range: 0~1000ppm
TDS measurement accuracy: ±10% F.S. (25°C)
Module interface: XH2.54-3P
Electrode interface: XH2.54-2P
Connection interface: XH2.54-2P
1 * TDS signal adapter board
---------------------------
#define kValue 1.8 //kValue = Calibrator TDS value/measurement to get TDS
#define VREF 5.0 // analog reference voltage(Volt) of the ADC
#define SCOUNT 30 // sum of sample point
int analogBuffer[SCOUNT]; // store the analog value in the array, read from ADC
int analogBufferTemp[SCOUNT];
int analogBufferIndex = 0,copyIndex = 0;
float averageVoltage = 0,tdsValue = 0,temperature = 25;
pinMode(TdsSensorPin,INPUT);
static unsigned long analogSampleTimepoint = millis();
if(millis()-analogSampleTimepoint > 40U) //every 40 milliseconds,read the analog value from the ADC
analogSampleTimepoint = millis();
analogBuffer[analogBufferIndex] = analogRead(TdsSensorPin); //read the analog value and store into the buffer
if(analogBufferIndex == SCOUNT)
static unsigned long printTimepoint = millis();
if(millis()-printTimepoint > 800U)
printTimepoint = millis();
for(copyIndex=0;copyIndex bTab[i + 1])
if ((iFilterLen & 1) > 0)
bTemp = bTab[(iFilterLen - 1) / 2];
bTemp = (bTab[iFilterLen / 2] + bTab[iFilterLen / 2 - 1]) / 2;