Gravity: Analog TDS Sensor / Meter For Arduino
SKU: SEN0244
TDS (Total Dissolved Solids) indicates that how many milligrams of soluble solids dissolved in one
liter of water. In general, the higher the TDS value, the more soluble solids dissolved in water, and
the less clean the water is. Therefore, the TDS value can be used as one of the references for
reflecting the cleanliness of water.
TDS pen is a widely used equipment to measure TDS value. The price is affordable, and it is easy to
use, but it is not able to transmit data to the control system for online monitoring to do some water
quality analysis. The professional instrument has high accuracy and can send data to the control
system, but the price is expensive for the ordinary people. To this end, we have launched an analog
TDS sensor kit which is compatible with Arduino, plug and play, easy to use. Matching with Arduino
controller, you can build a TDS detector easily to measure the TDS value of liquid.
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 system or board. The excitation source is AC signal,
which can effectively prevent the probe from polarization and prolong the life of the probe,
meanwhile, increase the stability of the output signal. The TDS probe is waterproof, it can be
immersed in water for long time measurement.
This product can be used in water quality application, such as domestic water, hydroponics. With
this product, you can easily DIY a TDS detector to reflect the cleanliness of water to protect your
health.
Attention:
1.The probe can not be used in water above 55 degrees centigrade.
2.The probe can not be left too close to the edge of the container, otherwise it will affect the
reading.
3.The head and the cable of the probe are waterproof, but the connector and the signal
transmitter board are not waterproof. Please be careful.
Specification
Signal Transmitter Board
Input Voltage: 3.3 ~ 5.5V
Output Voltage: 0 ~ 2.3V
Working Current: 3 ~ 6mA
TDS Measurement Range: 0 ~ 1000ppm
TDS Measurement Accuracy: ± 10% F.S. (25
Module Size: 42 * 32mm
Module Interface: PH2.0-3P
Electrode Interface: XH2.54-2P
TDS probe
Number of Needle: 2
Total Length: 83cm
Connection Interface: XH2.54-2P
Colour: Black
Other: Waterproof Probe
)
Board Overview
Analog TDS Sensor / Meter For Arduino
Num
1
2
3
4
5
Label
+
A
TDS
LED
Description
Power GND(0V)
Power VCC(3.3 ~ 5.5V)
Analog Signal Output(0 ~ 2.3V)
TDS Probe Connector
Power Indicator
Tutorial
This tutorial will show you how to measure the TDS value of the water. Please read this tutorial
carefully, and pay attention to the steps and details.
The probe can not to be used in water above 55 degrees centigrade.
The probe can not be 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.Please pay attention to use.
Requirements
Hardware
DFRduino UNO R3 (or similar) x 1
Analog TDS Sensor / Meter Module x 1
TDS Probe x1
Jumper Wires x3
tested liquid x1
Software
Arduino IDE (Version requirements: V1.0.x or V1.8.x), Click to Download Arduino IDE from Arduino®
https://www.arduino.cc/en/Main/Software%7C
Connection Diagram
Sample Code
/***************************************************
DFRobot Gravity: Analog TDS Sensor / Meter For Arduino
Created 2017-8-22
By Jason
GNU Lesser General Public License.
See for details.
All above must be included in any redistribution
/***********Notice and Trouble shooting***************
1. This code is tested on Arduino Uno and Leonardo with Arduino IDE 1.0.5
r2 and 1.8.2.
2. More details, please click this link:
****************************************************/
#define TdsSensorPin A1
#define VREF 5.0
#define SCOUNT
// analog reference voltage(Volt) of the ADC
30
int analogBuffer[SCOUNT];
from ADC
// sum of sample point
// store the analog value in the array, read
int 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)
ad the analog value from the ADC
//every 40 milliseconds,re
{
analogSampleTimepoint = millis();
analogBuffer[analogBufferIndex] = analogRead(TdsSensorPin);
the analog value and store into the buffer
//read
analogBufferIndex++;
if(analogBufferIndex == SCOUNT)
analogBufferIndex = 0;
}
static unsigned long printTimepoint = millis();
if(millis()-printTimepoint > 800U)
{
printTimepoint = millis();
for(copyIndex=0;copyIndex 0)
bTemp = bTab[(iFilterLen - 1) / 2];
else
bTemp = (bTab[iFilterLen / 2] + bTab[iFilterLen / 2 - 1]) / 2;
return bTemp;
}
Expected Results
After uploading the sample code,open the serial monitor of the Arduino IDE. Then insert the TDS
probe into the water, and gently stir it. Waiting for the reading to be stable, and you will get the
TDS value of the water.
FAQ
Q1. Does this sensor have a temperature sensor? How to make the temperature compensation?
A. This TDS probe has no temperature sensor, but the temperature compensation algorithm
is reserved in the sample code. The temperature variable in the sample code will default to
25 °C without a temperature sensor. You can add a waterproof temperature sensor to read
the temperature,then update the temperature variable, to make automatic temperature
compensation.
For any questions, advice or cool ideas to share, please visit the DFRobot Forum.
https://www.dfrobot.com/wiki/index.php/Gravity:_Analog_TDS_Sensor_/_Meter_For_Arduino_SKU:_SEN0244 12‐8‐17
很抱歉,暂时无法提供与“SEN0244”相匹配的价格&库存,您可以联系我们找货
免费人工找货- 国内价格 香港价格
- 1+159.671411+19.10830
- 3+140.880983+16.85960
- 国内价格
- 1+142.68194
- 3+134.89624