The TDS (Total Dissolved Solids) Sensor by Seeed is an electronic device designed to measure the concentration of dissolved solids in water. This sensor operates by measuring the conductivity of the water, which correlates to the TDS level expressed in parts per million (ppm). TDS sensors are commonly used in water quality testing, hydroponics, aquaculture, and environmental monitoring.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V to 5.5V) |
2 | GND | Ground connection |
3 | AOUT | Analog output voltage |
4 | NC | Not connected |
// TDS Sensor Example Code for Arduino UNO
const int TdsSensorPin = A0; // Analog input pin that the sensor is attached to
const float Vref = 5.0; // Analog reference voltage(Volt) of the ADC
const float TdsFactor = 0.5; // TDS factor
void setup() {
Serial.begin(9600);
}
void loop() {
int analogValue = analogRead(TdsSensorPin);
float voltage = analogValue * Vref / 1024.0; // Convert analog reading to voltage
float tdsValue = (133.42 * voltage * voltage * voltage - 255.86 * voltage * voltage + 857.39 * voltage) * TdsFactor; // Convert voltage to TDS value
Serial.print("TDS Value: ");
Serial.print(tdsValue);
Serial.println(" ppm");
delay(1000);
}
Q: Can the TDS sensor be used in saltwater? A: Yes, but the measurement range and accuracy may vary depending on the salt concentration.
Q: How often should the sensor be calibrated? A: Calibration frequency depends on usage, but typically once every month is recommended.
Q: Is the sensor waterproof? A: The sensor probe is waterproof, but the electronic components are not. Keep the board dry.
Q: What is the lifespan of the TDS sensor? A: With proper maintenance and calibration, the TDS sensor can last several years.
Q: Can the sensor measure the TDS of hot water? A: The sensor is rated for use up to 50°C. Measuring hot water may damage the sensor or produce inaccurate readings.