Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use TDs sensor: Examples, Pinouts, and Specs

Image of TDs sensor
Cirkit Designer LogoDesign with TDs sensor in Cirkit Designer

Introduction

A TDs (Total Dissolved Solids) sensor measures the concentration of dissolved solids in a liquid, typically expressed in parts per million (ppm). It is widely used in water quality monitoring and treatment applications to assess the purity of water. The sensor works by measuring the electrical conductivity of the liquid, which correlates to the concentration of dissolved ions.

Explore Projects Built with TDs sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP32-Based Environmental Monitoring System with Wi-Fi Connectivity
Image of Smart_city: A project utilizing TDs sensor in a practical application
This circuit is an environmental monitoring system using an ESP32 microcontroller to collect data from various sensors, including temperature, humidity, air quality, pH, and TDS sensors. The collected data is displayed on an OLED screen, sent to ThingSpeak for remote monitoring, and email alerts are sent if critical thresholds are exceeded.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based TDS Meter for Water Quality Monitoring
Image of test: A project utilizing TDs sensor in a practical application
This circuit connects a TDS (Total Dissolved Solids) sensor to an ESP32 microcontroller. The TDS sensor's power is supplied by the ESP32's 3.3V and ground pins, and its analog output is connected to GPIO 35 of the ESP32 for measurement. The purpose of this circuit is to enable the ESP32 to read the TDS level of a solution, which is commonly used in water quality testing.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Water Quality Monitoring System with DS18B20 and Turbidity Sensor
Image of Copy of AquaSense: A project utilizing TDs sensor in a practical application
This circuit is a water quality monitoring system that uses an ESP32 microcontroller to measure TDS, pH, temperature, and turbidity of water. The system includes sensors for each parameter and a start switch, with data being displayed on a 16x2 I2C LCD and logged via serial communication.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO-Based Water Quality Monitoring System with TDS Sensor and SIM900A SMS Alerts
Image of WaterQuality: A project utilizing TDs sensor in a practical application
This circuit is a water quality monitoring system using an Arduino Uno, which reads TDS values from a TDS sensor and displays the results on a 16x2 I2C LCD. A green LED indicates good water quality, while a SIM900A module sends an SMS alert if the water quality is poor.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with TDs sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Smart_city: A project utilizing TDs sensor in a practical application
ESP32-Based Environmental Monitoring System with Wi-Fi Connectivity
This circuit is an environmental monitoring system using an ESP32 microcontroller to collect data from various sensors, including temperature, humidity, air quality, pH, and TDS sensors. The collected data is displayed on an OLED screen, sent to ThingSpeak for remote monitoring, and email alerts are sent if critical thresholds are exceeded.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of test: A project utilizing TDs sensor in a practical application
ESP32-Based TDS Meter for Water Quality Monitoring
This circuit connects a TDS (Total Dissolved Solids) sensor to an ESP32 microcontroller. The TDS sensor's power is supplied by the ESP32's 3.3V and ground pins, and its analog output is connected to GPIO 35 of the ESP32 for measurement. The purpose of this circuit is to enable the ESP32 to read the TDS level of a solution, which is commonly used in water quality testing.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Copy of AquaSense: A project utilizing TDs sensor in a practical application
ESP32-Based Water Quality Monitoring System with DS18B20 and Turbidity Sensor
This circuit is a water quality monitoring system that uses an ESP32 microcontroller to measure TDS, pH, temperature, and turbidity of water. The system includes sensors for each parameter and a start switch, with data being displayed on a 16x2 I2C LCD and logged via serial communication.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of WaterQuality: A project utilizing TDs sensor in a practical application
Arduino UNO-Based Water Quality Monitoring System with TDS Sensor and SIM900A SMS Alerts
This circuit is a water quality monitoring system using an Arduino Uno, which reads TDS values from a TDS sensor and displays the results on a 16x2 I2C LCD. A green LED indicates good water quality, while a SIM900A module sends an SMS alert if the water quality is poor.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Water purification systems
  • Aquariums and hydroponics
  • Environmental water testing
  • Industrial water treatment
  • Drinking water quality monitoring

Technical Specifications

Below are the key technical details for a typical TDs sensor module:

Parameter Value
Operating Voltage 3.3V - 5V
Operating Current 10mA (typical)
Measurement Range 0 - 1000 ppm
Accuracy ±10%
Output Signal Analog voltage (0 - 2.3V)
Temperature Compensation Yes (via external temperature probe)
Compatible Microcontrollers Arduino, ESP32, Raspberry Pi

Pin Configuration and Descriptions

Pin Name Description
VCC Power supply input (3.3V - 5V)
GND Ground connection
AOUT Analog output signal (proportional to TDS)
TEMP Optional connection for temperature probe

Usage Instructions

How to Use the TDs Sensor in a Circuit

  1. Connect the Sensor to a Microcontroller:

    • Connect the VCC pin to the 5V (or 3.3V) pin of your microcontroller.
    • Connect the GND pin to the ground (GND) of your microcontroller.
    • Connect the AOUT pin to an analog input pin (e.g., A0 on an Arduino UNO).
  2. Calibrate the Sensor:

    • Use a standard solution with a known TDS value (e.g., 342 ppm) to calibrate the sensor.
    • Adjust the potentiometer on the sensor module to match the expected output.
  3. Temperature Compensation:

    • If the liquid temperature varies significantly, connect the optional temperature probe to the TEMP pin for more accurate readings.
  4. Read the Analog Signal:

    • The sensor outputs an analog voltage proportional to the TDS value. Use an ADC (Analog-to-Digital Converter) to read the signal.

Important Considerations and Best Practices

  • Avoid Corrosion: Ensure the sensor probe is cleaned regularly to prevent corrosion, especially when used in saltwater or other corrosive liquids.
  • Immersion Depth: Submerge the probe only up to the recommended depth to avoid damaging the sensor.
  • Temperature Effects: Use the temperature compensation feature for accurate readings in varying temperature conditions.
  • Power Supply: Use a stable power supply to avoid fluctuations in the sensor's output.

Example Code for Arduino UNO

Below is an example code snippet to interface the TDs sensor with an Arduino UNO:

// Include necessary libraries
const int TDS_PIN = A0; // Analog pin connected to the sensor's AOUT pin
float voltage, tdsValue;

void setup() {
  Serial.begin(9600); // Initialize serial communication
  pinMode(TDS_PIN, INPUT); // Set the TDS pin as input
}

void loop() {
  int sensorValue = analogRead(TDS_PIN); // Read the analog value from the sensor
  voltage = sensorValue * (5.0 / 1023.0); // Convert ADC value to voltage
  tdsValue = (voltage * 1000) / 2.3; // Convert voltage to TDS (ppm)
  
  // Print the TDS value to the Serial Monitor
  Serial.print("TDS Value: ");
  Serial.print(tdsValue);
  Serial.println(" ppm");
  
  delay(1000); // Wait for 1 second before the next reading
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output or Incorrect Readings:

    • Solution: Check all connections and ensure the sensor is powered correctly. Verify that the analog pin is configured properly in the code.
  2. Fluctuating Readings:

    • Solution: Use a stable power supply and ensure the sensor probe is fully submerged in the liquid. Avoid air bubbles around the probe.
  3. Corrosion or Damage to the Probe:

    • Solution: Clean the probe regularly with distilled water and avoid prolonged exposure to corrosive liquids.
  4. Temperature Compensation Not Working:

    • Solution: Ensure the temperature probe is connected correctly and calibrated if necessary.

FAQs

Q: Can the TDs sensor measure salinity?
A: While the TDs sensor measures dissolved solids, it can indirectly indicate salinity. However, for precise salinity measurements, a dedicated salinity sensor is recommended.

Q: Is the TDs sensor waterproof?
A: The probe is waterproof, but the sensor module itself is not. Ensure the module is kept dry during operation.

Q: Can I use the TDs sensor with a 3.3V microcontroller?
A: Yes, the sensor is compatible with both 3.3V and 5V systems. Ensure the output voltage range matches the ADC input range of your microcontroller.

Q: How often should I calibrate the sensor?
A: Calibration frequency depends on usage. For critical applications, calibrate the sensor monthly or whenever accuracy is in doubt.