Total Dissolved Solids Meter Analog TDS Sensor TDS Meter Water Conductivity Sensor Tester Liquid Detection Water Quality Monitoring for arduino Raspberry Pi
Total Dissolved Solids Meter Analog TDS Sensor TDS Meter Water Conductivity Sensor Tester Liquid Detection Water Quality Monitoring for arduino Raspberry Pi
Note: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 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.Product Features:1. Wide voltage operation: 3.3~5.5V2. 0~2.3V analog signal output, compatible with 5V, 3.3V two control systems3. The excitation source is an AC signal, effectively preventing probe polarization4. Waterproof probe for long-term immersion in water5. compatible, easy to connect, plug and play, no soldering requiredTechnical specifications:Signal adapter board:Input voltage: 3.3~5.5VOutput signal: 0~2.3VWorking current: 3~6mATDS measurement range: 0~1000ppmTDS measurement accuracy: ±10% F.S. (25°C)Size: 4232mmModule interface: XH2.54-3PElectrode interface: XH2.54-2PTDS probe:Number of probes: 2Overall length: 83cmConnection interface: XH2.54-2Pcolor: WhiteOther: Waterproof probePackage includes:1 x TDS signal adapter board1 x Waterproof TDS probe1 x Analog sensor linesource code:define TdsSensorPin A1define kValue 1.8 //kValue = value of calibrator TDS / measurement to get TDSdefine VREF 5.0 // analog reference voltage(Volt) of the ADCdefine SCOUNT 30 // sum of sample pointInt analogBuffer[SCOUNT]; // store the analog value in the array, read from ADCInt analogBufferTemp[SCOUNT];Int analogBufferIndex = 0, copyIndex = 0;Float averageVoltage = 0, tdsValue = 0, temperature = 25;Void setup(){ Serial.begin(115200); pinMode(TdsSensorPin, INPUT);}Void loop(){ 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 analogBufferIndex++; If(analogBufferIndex == SCOUNT) analogBufferIndex = 0; } Static unsigned long printTimepoint = millis(); If(millis()-printTimepoint > 800U) { printTimepoint = millis(); For(copyIndex=0;copyIndex analogBufferTemp[copyIndex]= analogBuffer[copyIndex]; averageVoltage = getMedianNum(analogBufferTemp,SCOUNT) (float)VREF / 1024.0; // read the analog value more stable by the median filtering algorithm, and convert to voltage value Float compensationCoefficient=1.0+0.02(temperature-25.0); //temperature compensation formula: fFinalResult(25^C) = fFinalResult(current)/(1.0+0.02(fTP-25.0)); Float compensationVolatge=averageVoltage/compensationCoefficient; //temperature compensation tdsValue=(133.42compensationVolatgecompensationVolatgecompensationVolatge - 255.86compensationVolatgecompensationVolatge + 857.39compensationVolatge)0.5kValue; //convert voltage value to tds value //Serial.print("voltage:"); //Serial.print(averageVoltage,2); //Serial.print("V "); Serial.print("TDS Value:"); Serial.print(tdsValue,0); Serial.println("ppm"); }}Int getMedianNum(int bArray[], int iFilterLen){ Int bTab[iFilterLen]; For (byte i = 0; i bTab[i] = bArray[i]; Int i, j, bTemp; For (j = 0; j { For (i = 0; i { If (bTab[i] > bTab[i + 1]) {bTemp = bTab[i]; bTab[i] = bTab[i + 1];bTab[i + 1] = bTemp; } } } If ((iFilterLen & 1) > 0)bTemp = bTab[(iFilterLen - 1) / 2]; ElsebTemp = (bTab[iFilterLen / 2] + bTab[iFilterLen / 2 - 1]) / 2; Return bTemp;}
Product Features
- 1. Wide voltage operation: 3.3~5.5V
- 2. 0~2.3V analog signal output, compatible with 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 play, no soldering required
Buy with confidence as this product comes with 18 months full local warranty in Australia & New Zealand (unless otherwise stated in the overview).
This product also comes with the benefits of the CocoonPower Warranty. For further details please read our Warranty Guidelines.
You can also purchase 3 Year Extended Care. If you are interested please see our Extended Care Information.