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.
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 |
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 |
Connect the Sensor to a Microcontroller:
VCC
pin to the 5V (or 3.3V) power supply of your microcontroller.GND
pin to the ground (GND) of your microcontroller.AOUT
pin to an analog input pin on your microcontroller (e.g., A0 on an Arduino UNO).Calibrate the Sensor:
Temperature Compensation:
Read the Analog Output:
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
}
Inaccurate Readings:
No Output Signal:
Fluctuating Readings:
Probe Corrosion or Damage:
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.