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

How to Use Gravity: Analog TDS Meter Sensor: Examples, Pinouts, and Specs

Image of Gravity: Analog TDS Meter Sensor
Cirkit Designer LogoDesign with Gravity: Analog TDS Meter Sensor in Cirkit Designer

Introduction

The Gravity: Analog TDS Meter Sensor (Manufacturer Part ID: SEN0244) by DFROBOT is a high-quality sensor designed to measure the Total Dissolved Solids (TDS) in water. TDS is an important parameter for assessing water quality, as it indicates the concentration of dissolved ions such as salts, minerals, and metals. This sensor provides an analog output that corresponds to the TDS value, making it easy to integrate into microcontroller-based systems.

Explore Projects Built with Gravity: Analog TDS Meter 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!
Arduino Leonardo-Based pH and TDS Sensor with OLED Display
Image of Exhibition Arduino- 2: A project utilizing Gravity: Analog TDS Meter 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, pH, and Turbidity Sensors
Image of PRI Kelompok 7: A project utilizing Gravity: Analog TDS Meter Sensor in a practical application
This circuit is designed to measure and display water quality parameters including TDS, turbidity, and pH levels using an Arduino UNO. The sensors for TDS, turbidity, and pH are connected to the Arduino's analog inputs, and the measured values are displayed on a 16x2 I2C LCD. Power is supplied through a 5V adapter, ensuring all components are adequately powered.
Cirkit Designer LogoOpen Project in Cirkit Designer
Wi-Fi Enabled Water Monitoring System with ESP8266
Image of automatic water leak detection: A project utilizing Gravity: Analog TDS Meter Sensor in a practical application
This circuit monitors water pressure and flow using a Gravity analog water pressure sensor and a water flow sensor, respectively. The sensors are powered by a 5V adapter and their signals are read by an ESP8266 microcontroller, which can process and transmit the data for further use.
Cirkit Designer LogoOpen Project in Cirkit Designer
Wi-Fi Enabled Water Monitoring System with ESP8266
Image of Copy of automatic water leak detection: A project utilizing Gravity: Analog TDS Meter Sensor in a practical application
This circuit monitors water pressure and flow using a Gravity analog water pressure sensor and a water flow sensor, respectively. The sensors are powered by a 5V adapter and their signals are read by an ESP8266 microcontroller, which can process and transmit the data for further use.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Gravity: Analog TDS Meter 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 Exhibition Arduino- 2: A project utilizing Gravity: Analog TDS Meter 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 PRI Kelompok 7: A project utilizing Gravity: Analog TDS Meter Sensor in a practical application
Arduino UNO-Based Water Quality Monitoring System with TDS, pH, and Turbidity Sensors
This circuit is designed to measure and display water quality parameters including TDS, turbidity, and pH levels using an Arduino UNO. The sensors for TDS, turbidity, and pH are connected to the Arduino's analog inputs, and the measured values are displayed on a 16x2 I2C LCD. Power is supplied through a 5V adapter, ensuring all components are adequately powered.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of automatic water leak detection: A project utilizing Gravity: Analog TDS Meter Sensor in a practical application
Wi-Fi Enabled Water Monitoring System with ESP8266
This circuit monitors water pressure and flow using a Gravity analog water pressure sensor and a water flow sensor, respectively. The sensors are powered by a 5V adapter and their signals are read by an ESP8266 microcontroller, which can process and transmit the data for further use.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Copy of automatic water leak detection: A project utilizing Gravity: Analog TDS Meter Sensor in a practical application
Wi-Fi Enabled Water Monitoring System with ESP8266
This circuit monitors water pressure and flow using a Gravity analog water pressure sensor and a water flow sensor, respectively. The sensors are powered by a 5V adapter and their signals are read by an ESP8266 microcontroller, which can process and transmit the data for further use.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Water quality monitoring in aquariums, hydroponics, and aquaculture
  • Environmental water testing for rivers, lakes, and reservoirs
  • Industrial water treatment systems
  • Educational and research projects involving water analysis

Technical Specifications

Below are the key technical details of the Gravity: Analog TDS Meter Sensor:

Parameter Value
Operating Voltage 3.3V - 5.5V
Output Signal Analog voltage (0 - 2.3V)
Measurement Range 0 - 1000 ppm
Accuracy ±10% Full Scale (25°C)
Temperature Compensation Yes (requires external temperature sensor)
Probe Type Waterproof TDS probe
Cable Length 1 meter
Interface Type Gravity Analog Interface
Dimensions 42mm x 32mm

Pin Configuration and Descriptions

The sensor module has a 3-pin Gravity interface for easy connection. The pinout is as follows:

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

Usage Instructions

How to Use the Component in a Circuit

  1. Connect the Sensor to a Microcontroller:

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

    • The sensor requires calibration to ensure accurate readings. Use a standard TDS calibration solution (e.g., 342 ppm) and adjust the potentiometer on the module until the output matches the expected value.
  3. Temperature Compensation:

    • For accurate measurements, the sensor supports temperature compensation. Connect an external temperature sensor (e.g., DS18B20) to your microcontroller and use its readings to adjust the TDS calculation.
  4. Read the Analog Output:

    • The analog output voltage corresponds to the TDS value. Use the formula provided in the sensor's datasheet or library to convert the voltage to ppm.

Important Considerations and Best Practices

  • Avoid Air Exposure: Ensure the TDS probe is fully submerged in the liquid during measurement. Air exposure can lead to inaccurate readings.
  • Clean the Probe Regularly: Rinse the probe with distilled water after each use to prevent contamination.
  • Avoid High Temperatures: The probe is designed for use in water temperatures between 0°C and 40°C. Avoid exposing it to boiling water or freezing conditions.
  • Use a Stable Power Supply: Fluctuations in the power supply can affect the accuracy of the sensor's output.

Example Code for Arduino UNO

Below is an example of how to use the Gravity: Analog TDS Meter Sensor with an Arduino UNO:

// Include the TDS library from DFROBOT (install via Arduino Library Manager)
// This example assumes the library is installed and the sensor is connected to A0.

#include <EEPROM.h> // Required for calibration storage
#include "DFRobot_TDS.h"

// Define the analog pin connected to the sensor
#define TDS_PIN A0

// Create a TDS object
DFRobot_TDS tds;

// Define the voltage of the Arduino board (5.0V or 3.3V)
#define VREF 5.0

void setup() {
  Serial.begin(9600); // Initialize serial communication
  tds.setPin(TDS_PIN); // Set the analog pin
  tds.setAref(VREF);   // Set the reference voltage
  tds.begin();         // Initialize the TDS sensor
}

void loop() {
  // Read the TDS value in ppm
  float tdsValue = tds.readTds();

  // Print the TDS value to the Serial Monitor
  Serial.print("TDS Value: ");
  Serial.print(tdsValue);
  Serial.println(" ppm");

  delay(1000); // Wait 1 second before the next reading
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Inaccurate Readings:

    • Cause: The sensor is not calibrated.
    • Solution: Use a standard TDS calibration solution and adjust the potentiometer.
  2. No Output Signal:

    • Cause: Incorrect wiring or loose connections.
    • Solution: Double-check the wiring and ensure all connections are secure.
  3. Fluctuating Readings:

    • Cause: Unstable power supply or electrical noise.
    • Solution: Use a stable power source and keep the sensor away from high-frequency noise sources.
  4. Probe Corrosion or Damage:

    • Cause: Prolonged exposure to harsh chemicals or improper cleaning.
    • Solution: Replace the probe and follow proper maintenance practices.

FAQs

Q: Can this sensor measure TDS in hot water?
A: No, the sensor is designed for use in water temperatures between 0°C and 40°C. Using it in hot water may damage the probe.

Q: Is the sensor suitable for long-term immersion?
A: Yes, the probe is waterproof and can be used for long-term immersion, but regular cleaning is recommended to maintain accuracy.

Q: Can I use this sensor with a 3.3V microcontroller?
A: Yes, the sensor operates with a voltage range of 3.3V to 5.5V, making it compatible with 3.3V systems like ESP32 or Raspberry Pi.

Q: How do I perform temperature compensation?
A: Use an external temperature sensor to measure the water temperature and apply the compensation formula provided in the sensor's datasheet or library.

By following this documentation, you can effectively integrate the Gravity: Analog TDS Meter Sensor into your projects and achieve accurate water quality measurements.