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 water, providing an indication of water quality and purity. It is widely used in applications such as water filtration systems, aquariums, hydroponics, and environmental monitoring. By measuring the electrical conductivity of water, the sensor estimates the total dissolved solids, which is typically expressed in parts per million (ppm).

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
Arduino Leonardo-Based pH and TDS Sensor with OLED Display
Image of Exhibition Arduino- 2: A project utilizing TDS SENSOR in a practical application
This circuit is designed to measure pH and TDS (Total Dissolved Solids) levels in a solution using a pH sensor and a TDS sensor, respectively, interfaced with an Arduino Leonardo. The measured data is then displayed on a 0.96" OLED screen.
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 Exhibition Arduino- 2: A project utilizing TDS SENSOR in a practical application
Arduino Leonardo-Based pH and TDS Sensor with OLED Display
This circuit is designed to measure pH and TDS (Total Dissolved Solids) levels in a solution using a pH sensor and a TDS sensor, respectively, interfaced with an Arduino Leonardo. The measured data is then displayed on a 0.96" OLED screen.
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

Technical Specifications

  • Operating Voltage: 3.3V - 5V DC
  • Output Signal: Analog voltage (0 - 2.3V)
  • Measurement Range: 0 - 1000 ppm (standard version)
  • Accuracy: ±10% of the measured value
  • Temperature Compensation: Supported (requires external temperature sensor)
  • Operating Temperature: 0°C - 60°C
  • Probe Material: Stainless steel
  • Cable Length: Typically 1 meter

Pin Configuration and Descriptions

The TDS sensor module typically has a 3-pin interface for connection to a microcontroller. Below is the pin configuration:

Pin Name Description
1 VCC Power supply input (3.3V - 5V DC).
2 GND Ground connection.
3 AOUT Analog output signal proportional to the TDS value.

The sensor probe is connected to the module via a dedicated connector, and the module processes the signal from the probe to provide an analog output.

Usage Instructions

How to Use the TDS Sensor in a Circuit

  1. Connect the Module:

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

    • Submerge the stainless steel probe in the water sample. Ensure the probe is fully immersed but avoid submerging the module itself.
  3. Calibrate the Sensor:

    • Use a known TDS solution to calibrate the sensor for accurate readings. Adjust the potentiometer on the module if necessary.
  4. Read the Output:

    • The analog output voltage from the AOUT pin corresponds to the TDS value. Use the microcontroller to convert this voltage into a ppm value using the appropriate formula.

Important Considerations and Best Practices

  • Avoid Corrosion: Clean the probe regularly to prevent buildup of contaminants that may affect accuracy.
  • Temperature Compensation: For precise measurements, use a temperature sensor to compensate for temperature variations in the water.
  • Avoid Immersing the Module: Only the probe is waterproof; the module should remain dry.
  • Power Supply: Ensure a stable power supply to avoid fluctuations in readings.

Example Code for Arduino UNO

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

// Include necessary libraries
#define TdsSensorPin A0  // Define the analog pin connected to the TDS sensor
#define VREF 5.0         // Reference voltage of the Arduino (5V for UNO)
#define ADC_RES 1024.0   // ADC resolution (10-bit ADC = 1024 levels)

float tdsValue = 0;      // Variable to store the TDS value
float voltage = 0;       // Variable to store the sensor output voltage

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

void loop() {
  int sensorValue = analogRead(TdsSensorPin);  // Read the analog value
  voltage = (sensorValue / ADC_RES) * VREF;    // Convert ADC value to voltage
  tdsValue = (voltage / VREF) * 1000;          // 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. Inaccurate Readings:

    • Cause: Probe contamination or improper calibration.
    • Solution: Clean the probe with distilled water and recalibrate using a known TDS solution.
  2. No Output or Fluctuating Values:

    • Cause: Loose connections or unstable power supply.
    • Solution: Check all connections and ensure a stable 5V power supply.
  3. Module Overheating:

    • Cause: Incorrect voltage input.
    • Solution: Ensure the input voltage is within the specified range (3.3V - 5V).
  4. Sensor Not Responding:

    • Cause: Damaged probe or module.
    • Solution: Inspect the probe and module for physical damage and replace if necessary.

FAQs

  • Q: Can the TDS sensor measure salinity?
    A: While the TDS sensor indirectly measures salinity, it is not specifically designed for this purpose. Use a dedicated salinity sensor for precise measurements.

  • Q: How often should I calibrate the sensor?
    A: Calibration frequency depends on usage. For critical applications, calibrate weekly; otherwise, monthly calibration is sufficient.

  • Q: Can I use the TDS sensor in hot water?
    A: The sensor operates within 0°C - 60°C. Avoid using it in water outside this range to prevent damage.

  • Q: Is the probe safe for drinking water?
    A: Yes, the stainless steel probe is safe for use in drinking water analysis.