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 is an electronic device used to measure the concentration of dissolved solids in a liquid. These dissolved solids include minerals, salts, and organic compounds, which affect the conductivity of the liquid. The sensor provides a TDS value in parts per million (ppm), which is a key indicator of water quality.

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 quality monitoring in aquariums, hydroponics, and swimming pools
  • Drinking water purification systems
  • Industrial water treatment processes
  • Environmental water testing for rivers, lakes, and reservoirs
  • Agricultural irrigation systems to ensure proper nutrient levels

Technical Specifications

Below are the key technical details and pin configuration for a typical TDS sensor module:

Key Technical Details

Parameter Value
Operating Voltage 3.3V - 5.0V
Operating Current 3-6 mA
Measurement Range 0 - 1000 ppm
Accuracy ±10% (25°C calibration)
Output Signal Analog voltage (0-2.3V typical)
Temperature Compensation Supported (via external probe)
Operating Temperature 0°C - 60°C

Pin Configuration

Pin Name Description
VCC Power supply input (3.3V - 5.0V)
GND Ground connection
AOUT Analog output signal proportional to TDS value

Usage Instructions

How to Use the TDS Sensor in a Circuit

  1. Connect the Sensor Module:

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

    • Immerse the TDS probe in a standard solution with a known TDS value (e.g., 342 ppm).
    • Adjust the potentiometer on the sensor module to match the expected output voltage.
  3. Measure TDS:

    • Place the probe in the liquid to be tested, ensuring it is fully submerged.
    • Read the analog voltage from the AOUT pin and convert it to a TDS value using the formula provided in the sensor's datasheet.

Important Considerations and Best Practices

  • Temperature Compensation: TDS readings are temperature-dependent. Use a temperature sensor for compensation if precise measurements are required.
  • Probe Maintenance: Clean the probe regularly to prevent fouling, which can affect accuracy.
  • Avoid Air Bubbles: Ensure no air bubbles are trapped around the probe during measurement.
  • Do Not Immerse the Module: Only the probe is waterproof; the module should remain dry.

Example Code for Arduino UNO

Below is an example of how to use a TDS sensor with an Arduino UNO:

// Define the analog pin connected to the TDS sensor
const int tdsPin = A0;

// Calibration factor for converting voltage to TDS (adjust as needed)
const float calibrationFactor = 0.5;

// Variable to store the analog reading
int analogValue = 0;

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

void loop() {
  // Read the analog value from the TDS sensor
  analogValue = analogRead(tdsPin);

  // Convert the analog value to voltage (assuming 5V reference)
  float voltage = analogValue * (5.0 / 1023.0);

  // Calculate the TDS value in ppm
  float tdsValue = voltage / calibrationFactor;

  // 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. Inaccurate Readings:

    • Cause: The sensor is not calibrated.
    • Solution: Calibrate the sensor using a standard solution with a known TDS value.
  2. No Output or Fluctuating Values:

    • Cause: Poor connections or loose wires.
    • Solution: Check all connections and ensure the probe is securely connected to the module.
  3. Sensor Not Responding:

    • Cause: The probe is damaged or the module is faulty.
    • Solution: Inspect the probe for physical damage and replace it if necessary. Test the module with a multimeter.
  4. Readings Drift Over Time:

    • Cause: Probe fouling or contamination.
    • Solution: Clean the probe with distilled water and a soft cloth.

FAQs

Q: Can the TDS sensor measure salinity?
A: While the TDS sensor measures dissolved solids, it is not specifically designed for salinity measurement. However, it can provide an approximate salinity value in ppm.

Q: Is the TDS sensor waterproof?
A: Only the probe is waterproof. The module must be kept dry to avoid damage.

Q: How often should I calibrate the sensor?
A: Calibration frequency depends on usage. For critical applications, calibrate before each use. For general use, calibrate monthly or as needed.

Q: Can I use the TDS sensor with a 3.3V microcontroller?
A: Yes, the sensor operates at 3.3V and 5V, making it compatible with most microcontrollers.