DC 3.3-5.5V Analog TDS Sensor Module Water Liquid Quality Monitoring For ArduinoNote: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 required
Technical 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: 42*32mmModule interface: XH2.54-3PElectrode interface: XH2.54-2PTDS probe:Number of probes: 2Overall length: 83cmConnection interface: XH2.54-2Pcolor: WhiteOther: Waterproof probe
Package includes:
1 x TDS signal adapter board1 x Waterproof TDS probe1 x Analog sensor line
source code:#define TdsSensorPin A1#define kValue 1.8 //kValue = value of calibrator TDS / measurement to get TDS#define VREF 5.0 // analog reference voltage(Volt) of the ADC#define 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(); span=\"\" style=\"box-sizing: border-box; padding: 0px; margin: 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 //temperature compensation formula: fFinalResult(25^C) = Float //temperature compensation - + 857.39*compensationVolatge)*0.5*kValue; //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<ifilterlen; span=\"\" style=\"box-sizing: border-box; padding: 0px; margin: 0px;\"></ifilterlen;>bTab[i] = bArray[i]; Int i, j, bTemp; For (j = 0; j < iFilterLen - 1; j++) {For (i = 0; i < iFilterLen - j - 1; 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;}
Items will go to post within 1-2 business days after payment confirmed.ReturnsIf you can\'t receive the product within 2 months (60 days), please contact with us,we promise to payback 100% of your money.
We ensure our products work normally before post.If the products is broken before arrival to you,all you should do is taking a photo to show us our broken product.We promise to payback 100% of your money.
Shipping1. We ship to Worldwide.
2. We only ship to confirmed PAYPAL address; your PAYPAL address must match your Shipping address.
3. Any non-received items caused by invalid address registered on PayPal are not in our full refund or replacement policy. Shipping fee has including the local handing and packaging fee.
4. All the items will be shipping within 1-2 working days after receiving the payment, except some holidays.
5. We will not be responsible for any custom delay or tax, because transit time is highly depended and provided by postal Service.
6. If you have any problem, please contact us via message, we will reply message within 1-2 working days, please wait for patient.
When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.