Time reading: 20min.
1. Introduction
Water quality monitoring is essential in drinking-water treatment, agriculture, aquaculture, hydroponics, industrial processes, and environmental testing.
One of the important parameters used in water-quality assessment is Total Dissolved Solids (TDS).
TDS represents the combined concentration of dissolved substances in water, including mineral salts and other dissolved materials.
Its measurement provides useful information about changes in water composition.
The TDS Meter Sensor Board Module V1.0 uses two conductive electrodes to detect the electrical response of a water sample.
Dissolved ions contribute to electrical conductivity, allowing the electronic circuit to estimate dissolved-solids concentration.
The module produces an analog voltage proportional to the TDS measurement.
A microcontroller can read this voltage through an analog-to-digital converter (ADC), process the measurement, and display an estimated concentration in parts per million (ppm).
Unlike turbidity sensors, which use optical techniques to detect suspended particles, this module uses electrical conductivity.
The two measurement methods therefore provide different information about water quality.

The module is particularly useful for:
- Water-quality monitoring prototypes.
- Hydroponic nutrient-solution monitoring.
- Aquarium and fish-tank projects.
- Water-filtration experiments.
- Arduino and ESP32 development.
- Electronics education and laboratory experiments.
This article progresses from the fundamental principles of TDS measurement to the actual module specifications, wiring, calibration, temperature effects, programming, and complete monitoring-system design.
2. Understanding Total Dissolved Solids (TDS)
What Is Total Dissolved Solids?
Total Dissolved Solids (TDS) refers to the combined amount of dissolved material present in a water sample.
These substances can include inorganic salts, minerals, and certain dissolved organic materials.
Common dissolved ions include:
| Ion | Chemical Symbol | Common Source |
|---|---|---|
| Calcium | Ca²⁺ | Minerals and limestone |
| Magnesium | Mg²⁺ | Minerals and groundwater |
| Sodium | Na⁺ | Dissolved salts |
| Potassium | K⁺ | Mineral salts |
| Chloride | Cl⁻ | Dissolved chlorides |
| Sulfate | SO₄²⁻ | Mineral deposits |
| Bicarbonate | HCO₃⁻ | Carbonate minerals |
When ionic compounds dissolve in water, they separate into positively and negatively charged ions. These ions contribute to the electrical conductivity of the solution.

TDS Measurement Units
TDS is commonly expressed using the following units:
| Unit | Meaning |
|---|---|
| ppm | Parts per million |
| mg/L | Milligrams per liter |
| g/L | Grams per liter |
For relatively dilute aqueous solutions with density close to 1 kg/L:
1 ppm ≈ 1 mg/L
For example:
- 100 ppm ≈ 100 mg/L.
- 500 ppm ≈ 500 mg/L.
- 1000 ppm ≈ 1000 mg/L.
This approximation is widely used in water-quality applications, although ppm and mg/L are not universally interchangeable for solutions with significantly different densities.
What Does a TDS Reading Indicate?
A TDS reading indicates the estimated concentration of dissolved material in a water sample.
Higher TDS readings generally indicate greater dissolved-solids concentration.
However, TDS does not identify the individual substances responsible for the reading.
Two water samples can have the same TDS concentration but contain different types and proportions of dissolved minerals.
Furthermore, certain non-ionic dissolved substances do not contribute to electrical conductivity in the same way as dissolved salts.
Therefore, TDS should be considered an indicator of dissolved-solids concentration rather than a complete measurement of water purity or safety.
3. Understanding Electrical Conductivity and Its Relationship to TDS
What Is Electrical Conductivity?
Electrical conductivity (EC) describes the ability of a material or solution to conduct electrical current.
In water, conductivity is primarily influenced by dissolved ions.
When an electrical potential is applied between two electrodes immersed in an ionic solution, the movement of charged particles contributes to the electrical response.
Water containing a higher concentration of mobile ions generally exhibits higher electrical conductivity.
Conductivity is commonly expressed in:
- µS/cm – Microsiemens per centimeter.
- mS/cm – Millisiemens per centimeter.
The relationship between these units is:
1 mS/cm = 1000 µS/cm

How Conductivity Is Used to Estimate TDS?
Many electronic TDS meters do not directly measure the mass of dissolved solids.
Instead, they measure electrical conductivity and use a conversion factor to estimate TDS.
The general relationship is:
\[ TDS=EC\times k \]
Where:
- TDS = Estimated dissolved-solids concentration in mg/L.
- EC = Electrical conductivity in µS/cm, normally referenced to 25°C.
- k = Conductivity-to-TDS conversion factor.
- The conversion factor depends on the chemical composition of the water.
A factor between approximately 0.5 and 0.8 is commonly encountered in practical water measurements, but it is not a universal constant.
Practical Calculation Example
Assume a water sample has an electrical conductivity of 750 µS/cm at 25°C.
For this example: use a conversion factor of 0.65.
\[ TDS=750\times0.65 \]
\[ \boxed{TDS=487.5\text{ mg/L}} \]
The estimated TDS is approximately 488 mg/L.
This calculation illustrates the relationship between EC and TDS. It is not a published calibration equation for the V1.0 module.
Why EC and TDS Are Not Interchangeable?
EC measures the electrical conductivity of a solution, while TDS represents dissolved-solids concentration.
The relationship between these measurements depends on the dissolved substances.
For example, sodium chloride and calcium sulfate solutions can have different conductivity responses at equivalent dissolved-solids concentrations.
Consequently, the conversion factor must be appropriate for the sample composition and intended measurement.
4. Overview of the TDS Meter Sensor Board Module V1.0
The TDS Meter Sensor Board Module V1.0 available from Makers Electronics is an analog conductivity-based water-quality sensing module.
The product consists of:
- A two-electrode TDS probe.
- A signal-conditioning PCB.
- A probe connection interface.
- A three-pin analog interface cable.
The probe is designed for immersion in the water sample, while the signal-conditioning board processes the electrical response and produces an analog output.

Main Product Components
TDS Probe
The probe contains two conductive electrodes that interact electrically with the surrounding water.
Changes in dissolved ionic concentration influence the electrical response between the electrodes.
Signal-Conditioning Board
The PCB processes the probe response and generates an analog output voltage proportional to the TDS measurement.
Probe Cable
The probe cable connects the two-electrode sensing assembly to the signal-conditioning board.
Three-Pin Interface Cable
The supplied cable provides the external electrical connections for power, ground, and analog signal output.
Main Product Features
According to the official product listing, the module provides:
- Analog output from 0 to 2.3 V.
- Operating voltage from 3.3 to 5.5 V DC.
- Low working current of 3–6 mA.
- Specified TDS measurement range of 0–1000 ppm.
- Two-electrode waterproof probe.
- Compatibility with Arduino and ESP32 projects.
- Adjustable sensitivity, as described in the product listing.
- The module is intended for water-quality monitoring and educational electronics applications.
- TDS Meter Sensor Board Module V1.0 .
TDS Sensor with Board Module V1.0
5. Official Makers Electronics Product Images
This section contains the original product photographs supplied for the TDS Meter Sensor Board Module V1.0.
The photographs should be retained in their original form and inserted in the following order to document the actual product, its connections, PCB construction, and dimensions.

Insert the first uploaded image showing:
- TDS Meter V1.0 signal-conditioning PCB.
- Two-electrode sensing probe.
- Probe cable.
- Three-pin analog connection cable.
6. Operating Principle of the TDS Sensor
How the Two-Electrode Probe Works?
The TDS probe uses two conductive electrodes to interact electrically with the water sample.
When the probe is immersed in water, dissolved ionic substances influence the electrical response between the electrodes.
The response depends on:
- Concentration of dissolved ions.
- Type and mobility of the ions.
- Electrode geometry and spacing.
- Water temperature.
- Electrical excitation conditions.
- The signal-conditioning circuit processes this response and produces an analog voltage associated with the TDS concentration.

Why Alternating Electrical Excitation Is Important?
Conductivity measurement using electrodes requires careful electrical excitation.
Applying continuous DC voltage across immersed electrodes can cause electrode polarization and electrochemical reactions. These effects may introduce measurement errors and change the electrode condition.
The supplied V1.0 schematic includes a CD4060 oscillator/counter circuit and associated analog circuitry. Its oscillator provides timing functions within the measurement circuit.
The schematic also includes circuitry that generates positive and negative internal supply rails.
This is consistent with an electronic design intended to process a bipolar or alternating sensor signal rather than simply measuring a fixed DC resistance.
However, the schematic does not provide a complete published description of the excitation waveform and its exact frequency under all operating conditions. Those characteristics should not be assumed without circuit analysis or measurement.
From Electrical Response to Analog Output
The general measurement sequence is:
- The circuit generates the electrical excitation required by the probe.
- The two electrodes interact with the water sample.
- Dissolved ions influence the electrical response.
- The analog circuit processes the resulting signal.
- The signal-conditioning board produces an analog output.
- A microcontroller measures the output voltage.
- Software applies an appropriate calibration relationship.
- The estimated TDS value is displayed or recorded.
The important distinction is that the probe does not directly output a numerical concentration. The electronic circuit produces an analog signal that must be interpreted through calibration.
7. Internal Architecture and Signal Conditioning
The Makers Electronics V1.0 schematic provides useful information about the electronic architecture of the module.
Unlike a generic block-level description, the published schematic identifies several actual integrated circuits and supporting components.

Main Integrated Circuits
| Component | Function Identified from Datasheet | Role in the Published Circuit |
|---|---|---|
| CD4060BM | 14-stage binary counter with oscillator | Timing and signal-generation circuitry |
| LMV324 | Quad operational amplifier | Analog signal-processing stages |
| ME6206A30M3G | Voltage regulator | Generates an internal regulated 3 V supply |
| TPS60400 | Charge-pump voltage inverter | Generates an internal negative supply rail |
The component functions are based on the schematic and associated device documentation.
The precise contribution of each analog stage should be interpreted from the complete schematic rather than inferred from the component name alone.
CD4060 Oscillator and Counter
The CD4060 is a CMOS integrated circuit containing:
- An oscillator section.
- Fourteen ripple-carry binary counter stages.
- A reset input.
- Buffered clock and counter outputs.
- It can be configured with external timing components to generate clock signals and frequency-divided outputs.
- In the TDS board schematic, it is included as part of the timing circuitry associated with the probe measurement system.
LMV324 Operational Amplifier
The LMV324 is a quad operational amplifier containing four amplifier channels in one package.
Operational amplifiers are commonly used in sensor circuits for:
- Signal amplification.
- Buffering.
- Filtering.
- Signal conditioning.
- Analog voltage processing.
- The published schematic shows multiple LMV324 sections connected with resistors, capacitors, and diodes.
- These components form part of the analog measurement and processing circuit.
Internal Power-Supply Circuit
The schematic identifies two important power-conversion components:
- ME6206A30M3G: Provides a regulated positive 3.0 V rail.
- TPS60400: Generates a negative voltage rail through charge-pump conversion.
- The schematic labels the internal rails as +3.0 V and −3.0 V.
- This internal circuitry allows the analog section to operate with supply conditions different from the external input supply.
- The externally supplied 3.3–5.5 V must not be confused with these internal voltage rails.
Simplified Internal Signal Flow
A functional representation of the module is:
External DC Supply
|
v
Internal Power Supply
|
v
Timing / Excitation Circuit
|
v
Two-Electrode TDS Probe
|
v
Analog Signal Processing
|
v
Output Conditioning
|
v
Analog Output (0–2.3 V)
This is a simplified functional representation of the published design, not a replacement for the manufacturer’s schematic.
Original circuit reference: Download the TDS Sensor V1.0 schematic.
8. Technical Specifications of the Makers Electronics TDS Sensor
The following specifications are taken from the official Makers Electronics product listing.

Product Specifications Table
| Parameter | Specification |
|---|---|
| Product Name | TDS Sensor with Board Module V1.0 |
| Input Voltage | 3.3–5.5 V DC |
| Analog Output Voltage | 0–2.3 V DC |
| Working Current | 3–6 mA |
| TDS Measurement Range | 0–1000 ppm |
| Measurement Accuracy | ±10% F.S. at 25°C |
| Module Dimensions | 42 × 32 mm |
| Module Interface | PH2.0-3P |
| Electrode Interface | XH2.54-2P |
| Probe Length | 60 cm |
| Number of Probe Electrodes | 2 |
| Probe Color | White |
Understanding the Supply Voltage
The module accepts an input voltage between 3.3 V and 5.5 V DC.
This range makes it suitable for many microcontroller development boards.
For example:
- Arduino Uno: A regulated 5 V supply can be used.
- ESP32: A regulated 3.3 V supply can be used.
- Other controllers: The supply must remain within the specified input range.
- A stable supply is recommended because supply variations and electrical noise can affect analog measurements.
Understanding the Analog Output Range
- The specified output range is 0–2.3 VDC.
- This voltage is important when selecting a controller because ADC input limits differ between microcontrollers.
The maximum specified sensor output is below the nominal 3.3V supply level of many ESP32 development boards. Nevertheless, the actual ADC input range and attenuation configuration must be checked for the selected device.
Understanding the Measurement Accuracy
The product listing specifies: ±10% F.S. at 25°C
F.S. means Full Scale.
For a full-scale measurement range of 1000 ppm:
\[ \text{Full-scale tolerance}=1000\times0.10 \]
\[ \boxed{\pm100\text{ ppm}} \]
This is the manufacturer’s stated full-scale accuracy specification.
It should not be interpreted as a guaranteed error of ±10% relative to every individual reading.
The listing does not provide a complete uncertainty budget, detailed test conditions, or an independently verified calibration curve across the entire range.
Understanding the Probe Temperature Limit
The manufacturer specifies that the probe must not be used in water above 55°C.
This is an important operating restriction.
The probe should be used within the stated temperature limit, and the sensing electronics should be protected from moisture.
Understanding the Mechanical Dimensions
The signal-conditioning board measures:
- Length: 42 mm.
- Width: 32 mm.
- The probe cable is specified as 60 cm in the official product listing.
- These dimensions are useful when designing an enclosure or planning installation space.
9. TDS Sensor Pinout and Wiring Interface
The product includes two separate connection interfaces:
- A three-pin connection between the signal-conditioning board and external controller.
- A two-pin connection between the board and the TDS probe.
- Understanding the difference is important for correct wiring.

Board-to-Controller Pinout
The official product listing identifies the following external interface:
| Pin | PCB Marking | Function |
|---|---|---|
| 1 | – | Ground (0 V) |
| 2 | + | Positive supply (3.3–5.5 V DC) |
| 3 | A | Analog output (0–2.3 V) |
The three-pin interface is identified as PH2.0-3P.
Use the printed PCB markings to identify the terminals. Do not rely solely on the cable colors or connector orientation.
Probe-to-Board Connection
The probe uses an XH2.54-2P connection.
Its two contacts connect to the matching probe connector on the signal-conditioning PCB.
To connect the probe:
- Identify the two-pin connector.
- Check the matching connector housing.
- Align the connector correctly.
- Insert it without forcing the contacts.
- Avoid pulling or twisting the probe cable.
- The probe connector is separate from the three-pin controller interface.
- Understanding the Three-Pin Cable
- The supplied three-pin cable provides the external power and signal connections.
| Cable Connection | Function |
|---|---|
| Ground | Common electrical reference |
| Positive | Board supply |
| Analog | Sensor output |
The wire colors should not be used as the sole identification method. Verify the actual cable-to-PCB correspondence before applying power.
Electrical Precautions
Check the positive and ground terminals.
Do not reverse the supply polarity.
Verify the analog output connection.
Keep the signal-conditioning board dry.
Protect the connectors from moisture.
Avoid short circuits.
Disconnect power before changing the wiring.
10. Connecting the TDS Sensor to Arduino Uno
Arduino Uno is a convenient platform for developing a TDS monitoring prototype.
The sensor’s analog output can be measured using the built-in ADC.

Arduino Uno Wiring
| TDS Board | Arduino Uno |
|---|---|
| + | 5V |
| – | GND |
| A | A0 |
The two-electrode probe must be connected separately to the board using its two-pin connector.
Understanding the Arduino Uno ADC
The Arduino Uno uses a 10-bit ADC.
The number of available conversion levels is:
\[ 2^{10}=1024 \]
Therefore, the ADC reading ranges from 0 to 1023.
With a nominal 5 V reference:
\[ \text{ADC voltage per count}=\frac{5}{1023} \]
\[ \boxed{4.89\text{ mV/count}} \]
The sensor’s maximum output of 2.3 V corresponds approximately to:
\[ ADC=\frac{2.3}{5}\times1023 \]
\[ \boxed{ADC\approx471} \]
Therefore, the sensor uses approximately 46% of the Uno’s available ADC range.
Arduino Code for Reading Analog Voltage
The following program reads the analog output, averages multiple samples, and displays the measured voltage.
const int TDS_PIN = A0;
const float ADC_REFERENCE = 5.0;
const int ADC_MAX = 1023;
void setup() {
Serial.begin(9600);
}
void loop() {
const int samples = 20;
long total = 0;
for (int i = 0; i < samples; i++) {
total += analogRead(TDS_PIN);
delay(20);
}
float averageADC = total / (float)samples;
float voltage =
averageADC * ADC_REFERENCE / ADC_MAX;
Serial.print("ADC Value: ");
Serial.println(averageADC);
Serial.print("Analog Voltage: ");
Serial.print(voltage, 3);
Serial.println(" V");
delay(1000);
}
Understanding the Program
The program performs the following operations:
- Defines analog input A0.
- Reads the sensor output 20 times.
- Adds the readings.
- Calculates the average ADC value.
- Converts the average into voltage.
- Displays the ADC reading and voltage through the Serial Monitor.
Averaging helps reduce random fluctuations, although it does not eliminate calibration errors or systematic measurement inaccuracies.
11. Connecting the TDS Sensor to ESP32 and Other Microcontrollers
The TDS module can also be integrated with other microcontroller platforms.

ESP32 Integration
The module’s specified maximum analog output is 2.3 V.
This is generally compatible with many ESP32 ADC configurations, but the exact input limits depend on the ESP32 chip and development-board design.
Before connecting the sensor:
- Check the selected ESP32 model.
- Verify its ADC input limits.
- Configure the appropriate ADC attenuation.
- Connect the sensor ground to the controller ground.
- Confirm the actual output voltage.
- Do not assume that all ESP32 variants have identical ADC characteristics.
STM32 Integration
The analog output can be measured using an STM32 ADC input.
Check the selected device’s maximum ADC input voltage, reference voltage, and conversion characteristics.
Raspberry Pi Integration
Most standard Raspberry Pi boards do not provide a general-purpose analog input.
An external ADC is therefore required.
The ADC should support the module’s output range and provide an appropriate digital interface for the Raspberry Pi.
Controller Compatibility Table
| Controller | Connection Method | Important Consideration |
|---|---|---|
| Arduino Uno | Direct analog input | ADC reference voltage |
| ESP32 | Analog input | ADC attenuation and limits |
| STM32 | Analog input | Device-specific ADC specifications |
| Raspberry Pi | External ADC | Analog input is not built in |
12. Calibration of the TDS Sensor
Calibration is essential when converting the sensor’s analog output into a meaningful TDS measurement.
Although the module provides an analog voltage associated with TDS, the relationship between voltage and dissolved-solids concentration must be established using suitable reference solutions.

What Is a TDS Calibration Standard?
A TDS calibration standard is a solution with a known dissolved-solids concentration.
Reference solutions can be prepared using known concentrations of dissolved salts or obtained as commercially prepared standards.
Common nominal concentrations include:
- 100 ppm.
- 342 ppm.
- 500 ppm.
- 1000 ppm.
- The selected standards should cover the measurement range relevant to the intended application.
It is important to distinguish TDS standards from electrical conductivity standards. A conductivity standard has an assigned EC value, while a TDS standard has an assigned concentration based on its composition or preparation method.
Single-Point Calibration
Single-point calibration establishes the sensor response at one known reference concentration.
A basic procedure is:
- Prepare a clean sample container.
- Select an appropriate reference solution.
- Connect the probe to the signal-conditioning board.
- Power the module using a regulated supply.
- Rinse the probe appropriately.
- Immerse the probe in the reference solution.
- Keep the probe away from the container walls.
- Allow the measurement to stabilize.
- Record the analog voltage and reference concentration.
- Repeat the measurement to evaluate repeatability.
- Single-point calibration provides one reference point but cannot establish the complete measurement relationship.
Two-Point Calibration
Two-point calibration uses two known reference concentrations to establish an approximate linear relationship.
The procedure is:
- Select two reference solutions.
- Measure the first solution.
- Record its assigned concentration and analog voltage.
- Rinse the probe appropriately.
- Measure the second solution.
- Record the second concentration and voltage.
- Calculate the calibration coefficients.
- Verify the calculated relationship using another reference solution.
- Two-point calibration is useful when the response is sufficiently linear over the selected interval.
- It does not establish that the response remains linear throughout the entire 0–1000 ppm range.
Multi-Point Calibration
Multi-point calibration uses several reference solutions distributed across the intended measurement range.
This method can help identify:
- Nonlinear response.
- Measurement saturation.
- Poor sensitivity.
- Measurement drift.
- Differences between the assumed and actual response curves.
- A calibration curve should be verified using reference samples that were not used to calculate the original curve.
Calibration Precautions
Use clean reference-solution containers.
Avoid contaminating calibration standards.
Rinse the probe between different solutions.
Maintain consistent immersion depth.
Keep the probe away from container walls.
Avoid air bubbles around the electrodes.
Allow sufficient stabilization time.
Record the sample temperature.
Do not immerse the signal-conditioning PCB.
13. Converting Analog Voltage into a TDS Value
After calibration, a microcontroller can estimate TDS from the measured analog voltage.
The mathematical relationship must be based on the actual response of the sensor.

Two-Point Linear Calibration Equation
If the response is approximately linear between two calibration points, the following equation can be used:
\[ T=T_1+\frac{(V-V_1)(T_2-T_1)}{V_2-V_1} \]
Where:
- T = Estimated TDS concentration.
- T₁ = First reference TDS concentration.
- T₂ = Second reference TDS concentration.
- V = Measured analog voltage.
- V₁ = Voltage measured at the first reference.
- V₂ = Voltage measured at the second reference.
The equation works whether voltage increases or decreases with TDS, provided the calibration points are correctly measured and the response is sufficiently linear.
Practical Calculation Example
Assume the following hypothetical calibration measurements:
| Reference Sample | TDS Concentration | Measured Voltage |
|---|---|---|
| Standard 1 | 200 ppm | 0.50 V |
| Standard 2 | 800 ppm | 1.50 V |
These values are illustrative only. They are not manufacturer-published calibration points for the V1.0 module.
Now assume an unknown sample produces an analog voltage of 1.00 V.
Substituting the values:
\[ T=200+\frac{(1.00-0.50)(800-200)}{1.50-0.50} \]
\[ T=200+\frac{0.50\times600}{1.00} \]
\[ T=200+300 \]
\[ \boxed{T=500\text{ ppm}} \]
The estimated concentration is 500 ppm under the assumptions of this hypothetical linear calibration.
Arduino Code for Two-Point Calibration
The following example reads the sensor output and applies a two-point linear calibration.
Replace the illustrative values with actual measurements obtained from the sensor.
const int TDS_PIN = A0;
const float VREF = 5.0;
const int ADC_MAX = 1023;
// Illustrative calibration values only
const float V1 = 0.50;
const float T1 = 200.0;
const float V2 = 1.50;
const float T2 = 800.0;
void setup() {
Serial.begin(9600);
}
void loop() {
const int samples = 20;
long total = 0;
for (int i = 0; i < samples; i++) {
total += analogRead(TDS_PIN);
delay(20);
}
float averageADC = total / (float)samples;
float voltage =
averageADC * VREF / ADC_MAX;
Serial.print("Voltage: ");
Serial.print(voltage, 3);
Serial.println(" V");
if (V1 == V2) {
Serial.println("Invalid calibration points");
} else if (voltage < min(V1, V2) ||
voltage > max(V1, V2)) {
Serial.println("Outside calibration range");
} else {
float tds =T1 + ((voltage - V1) * (T2 - T1))
/ (V2 - V1);
Serial.print("Estimated TDS: ");
Serial.print(tds, 1);
Serial.println(" ppm");
}
delay(1000);
}
Understanding the Calculation
The program:
- Reads the analog input 20 times.
- Calculates the average ADC reading.
- Converts the ADC reading into voltage.
- Checks whether the voltage falls within the calibration interval.
- Applies the two-point interpolation equation.
- Displays the estimated TDS concentration.
- The example assumes that the ADC reference voltage is known and stable.
For more reliable measurements, the actual ADC reference should be measured or otherwise characterized rather than automatically assuming exactly 5.000 V.
Why a Universal Voltage-to-TDS Formula Should Not Be Used?
Different TDS sensors may have different electrode arrangements, excitation circuits, and analog signal-conditioning characteristics.
The same output voltage does not necessarily represent the same TDS concentration across different sensor models.
Furthermore, the relationship between EC and TDS depends on ionic composition.
Important influences include:
- Dissolved mineral composition.
- Sample temperature.
- Probe condition.
- Electrode contamination.
- Calibration standards.
- Electrical supply stability.
- Consequently, a conversion formula from another sensor should not be copied without validation.
14. Temperature Effects and Measurement Compensation
Temperature is an important factor in conductivity-based TDS measurement.
The electrical conductivity of most aqueous ionic solutions increases as temperature rises.
Therefore, the same water sample can produce different conductivity measurements at different temperatures.

How Temperature Affects Electrical Conductivity?
As water temperature increases, ionic mobility generally increases.
This causes the electrical conductivity of the solution to change.
For many natural waters, a temperature coefficient near 2% per °C is commonly used as an approximation around room temperature.
However, the actual coefficient depends on the chemical composition of the sample.
For this reason, conductivity measurements are commonly referenced to 25°C.
Temperature Compensation Equation
A commonly used approximate linear correction is:
\[ EC_{25}=\frac{EC_T}{1+\alpha(T-25)} \]
Where:
- EC₂₅ = Conductivity corrected to 25°C.
- ECₜ = Measured conductivity at sample temperature T.
- α = Temperature coefficient per °C.
- T = Sample temperature in °C.
Practical Calculation Example
Assume:
- Measured conductivity = 1000 µS/cm.
- Sample temperature = 30°C.
- Temperature coefficient = 0.02/°C.
Then:
\[ EC_{25}=\frac{1000}{1+0.02(30-25)} \]
\[ EC_{25}=\frac{1000}{1.10} \]
\[ \boxed{EC_{25}\approx909.1\ \mu S/cm} \]
This is an illustrative conductivity correction, not a verified compensation algorithm for the V1.0 module.
Adding an External Temperature Sensor
A separate temperature sensor can be added to the monitoring system.
Possible devices include:
- DS18B20 digital temperature sensor.
- NTC thermistor.
- PT100 resistance temperature detector.
- PT1000 resistance temperature detector.
- The controller can record the sample temperature and apply a correction when a suitable compensation model has been established.
Does the V1.0 Module Include Temperature Compensation?
The official product listing does not specify an integrated temperature sensor or automatic temperature-compensation function.
Therefore, automatic compensation should not be assumed.
The linked product tutorial provides additional reference material for conductivity-based TDS measurement and temperature-compensation software. However, any external algorithm should be checked against the actual V1.0 hardware and sample composition before implementation.
15. Practical Applications of the TDS Sensor Board
The TDS Meter Sensor Board Module V1.0 can be integrated into different water-monitoring and electronics projects.

Drinking Water Monitoring
The module can monitor changes in dissolved-solids concentration in drinking-water samples.
It can help identify changes in water composition over time.
However, TDS readings cannot identify individual contaminants or establish microbiological safety.
Aquariums and Fish Tanks
TDS monitoring can help observe changes in dissolved ionic substances in aquarium water.
The module can be combined with:
- Temperature sensors.
- pH sensors.
- Water-level sensors.
- Dissolved oxygen sensors.
- TDS should not be used as a substitute for monitoring the other water-quality parameters required for aquatic organisms.
- Hydroponics and Agriculture
- Hydroponic systems require monitoring of dissolved nutrients in water.
- A TDS sensor can estimate the concentration of dissolved ionic substances in nutrient solutions.
- It can help identify changes in nutrient-solution concentration over time.
- However, it cannot determine the individual concentration of nitrogen, phosphorus, potassium, or other specific nutrients.
Water Filtration Systems
The sensor can be used to compare dissolved-solids readings before and after filtration.
For example, a monitoring system can measure the water at the inlet and outlet of a reverse-osmosis system.
A change in TDS may provide information about filtration performance.
However, TDS alone cannot identify the exact cause of a change or confirm removal of every contaminant.
Swimming Pools and Spas
The module can monitor changes in dissolved ionic concentration in swimming-pool water.
It should be used alongside appropriate measurements of pH, disinfectant concentration, and other relevant water-quality parameters.
Industrial Water Treatment
TDS monitoring can help observe dissolved-solids changes in industrial water systems.
Possible applications include:
- Boiler-water monitoring.
- Cooling-tower water monitoring.
- Process-water monitoring.
- Water-treatment systems.
For industrial process control, select a validated instrument with suitable measurement accuracy, environmental protection, and calibration procedures.
Environmental and Laboratory Projects
The module can be used in educational and experimental projects involving:
- Water conductivity.
- Dissolved mineral concentration.
- Water-quality comparisons.
- Analog signal acquisition.
- Microcontroller-based data logging.
- Calibration experiments.
The Makers Electronics product listing also identifies beverage, food, medical, and laboratory applications. These are potential application areas and should not be interpreted as certification for regulated analytical testing.
16. Designing a Complete TDS Monitoring System
A TDS sensor becomes more useful when integrated into a complete monitoring system.
A basic system can measure the analog output, calculate an estimated TDS value, display the result, and record measurement data.

Required Components
| Component | Function |
|---|---|
| TDS Probe | Detects the electrical response of the water |
| Signal-Conditioning Board | Processes the probe response |
| Arduino or Other Controller | Reads and processes the analog output |
| Temperature Sensor | Measures sample temperature |
| LCD or OLED Display | Displays measurement results |
| Regulated Power Supply | Provides stable electrical power |
| Data Logger | Records measurements |
| Enclosure | Protects electronic components |
| Alarm or Buzzer | Indicates configured threshold conditions |
System Block Diagram
A simplified monitoring system can be represented as:
Water Sample
|
v
TDS Probe
|
v
Signal-Conditioning Board
|
v
Analog Output
|
v
Microcontroller
/ | \
v v v
Display Temperature Sensor Data Logger
The temperature sensor provides an additional measurement that can be used by the software when a validated compensation method is available.
System Operation
A typical system operates through the following sequence:
- The probe is immersed in the water sample.
- Dissolved ions influence the electrical response between the electrodes.
- The signal-conditioning board processes the probe response.
- The board produces an analog output.
- The microcontroller reads the voltage through its ADC.
- The software filters the readings.
- The calibration model estimates TDS.
- The display presents the estimated concentration.
- The temperature is recorded when a temperature sensor is included.
- The data logger stores the measurement when available.
Adding an Automatic Alarm
A microcontroller can compare the estimated TDS value against a software-defined threshold.
For example:
const float TDS_LIMIT = 500.0;
if (tdsValue > TDS_LIMIT) {
Serial.println("TDS threshold exceeded");
}
The threshold must be selected according to the intended application.
Additional system features may include:
- Adjustable alarm thresholds.
- Measurement filtering.
- Sensor-disconnection detection.
- Startup stabilization.
- Alarm hysteresis.
- Data logging.
- Manual alarm acknowledgement.
An alarm should indicate that a configured measurement threshold has been exceeded. It should not automatically classify water as safe or unsafe for consumption.
17. Types of TDS Measurement Systems and Comparison
Different technologies can be used to determine dissolved-solids concentration.
The appropriate method depends on the required accuracy, sample composition, measurement range, and application.

Conductivity-Based TDS Sensors
These systems estimate TDS from electrical conductivity.
Advantages:
- Fast measurement.
- Simple electronic integration.
- Suitable for continuous monitoring.
- Low-cost implementation.
- Compatible with microcontrollers.
Limitations:
- Results depend on the conversion factor.
- Temperature affects conductivity.
- Non-ionic dissolved substances are not measured proportionally.
- Calibration depends on sample composition.
Gravimetric TDS Measurement
Gravimetric measurement determines dissolved-solids concentration by filtering a known volume of water, evaporating the filtrate, drying the residue under specified conditions, and measuring its mass.
Advantages:
- Determines dissolved residue by mass.
- Does not depend on an EC-to-TDS conversion factor.
- Suitable for laboratory analysis.
Limitations:
- Requires laboratory equipment.
- Takes considerably longer.
- Requires careful sample preparation.
- Results depend on the specified filtration and drying procedure.
- EPA Method 160.1 is an example of a gravimetric method for filterable residue dried at 180°C.
Industrial Conductivity and TDS Instruments
Industrial instruments may combine conductivity measurement, temperature compensation, digital processing, and industrial communication interfaces.
Depending on the model, they may provide:
- 4–20 mA output.
- Digital communication.
- Automatic temperature compensation.
- Configurable TDS conversion factors.
- Diagnostic information.
- Industrial environmental protection.
- Their capabilities depend on the particular instrument.
Comparison Table
| Feature | Low-Cost TDS Module | Laboratory Gravimetric Method | Industrial EC/TDS Instrument |
|---|---|---|---|
| Measurement principle | Conductivity | Residue mass | Usually conductivity |
| Output | Analog voltage | Laboratory result | Analog or digital |
| Measurement speed | Fast | Slow | Fast |
| Calibration | Application-specific | Analytical procedure | Manufacturer-defined |
| Temperature correction | External or application-dependent | Procedure-dependent | Often available |
| Typical integration | Microcontrollers | Laboratory equipment | PLC and monitoring systems |
| Main purpose | Prototyping and monitoring | Laboratory determination | Continuous process monitoring |
TDS and Electrical Conductivity Are Not the Same
TDS and EC are related but different quantities.
TDS represents dissolved-solids concentration.
EC represents the electrical conductivity of a solution.
A conductivity sensor can estimate TDS, but it cannot directly determine the mass or chemical identity of every dissolved substance.
The conversion factor must be appropriate for the sample being measured.
18. Common Problems and Troubleshooting
TDS measurements can be affected by electrical interference, probe contamination, incorrect wiring, temperature variation, and calibration errors.

Unstable Analog Readings
Possible Causes:
- Electrical noise.
- Unstable power supply.
- Loose probe connector.
- Inconsistent probe positioning.
- Changing sample temperature.
- Poor electrical connections.
Recommended Solutions:
- Use a regulated power supply.
- Inspect the probe cable and connectors.
- Keep the probe in a fixed position.
- Maintain consistent sample temperature.
- Average multiple ADC readings.
- Use suitable analog filtering.
- Keep sensor wiring away from high-current switching circuits.
Incorrect or Unexpected TDS Values
Possible Causes:
- Incorrect calibration.
- Wrong EC-to-TDS conversion factor.
- Dirty electrodes.
- Incorrect ADC reference voltage.
- Temperature differences.
- Reference-solution contamination.
- Different ionic composition between calibration and test samples.
Recommended Solutions:
- Clean the probe using an appropriate method.
- Repeat calibration with suitable reference solutions.
- Verify the analog output using a multimeter.
- Check the ADC reference.
- Confirm sample temperature.
- Validate the results against a suitable reference instrument.
No Analog Output
Possible Causes:
- Missing supply voltage.
- Reversed supply polarity.
- Incorrect connector orientation.
- Damaged probe cable.
- Faulty signal-conditioning board.
Recommended Solutions:
- Verify the board supply voltage.
- Confirm the ground connection.
- Inspect the probe connector.
- Measure the analog output relative to ground.
- Compare the output with the specified range.
- Inspect the board for visible damage.
Readings Change When the Probe Is Moved
Possible Causes:
- Inconsistent electrode immersion.
- Different distances from the container walls.
- Air bubbles around the electrodes.
- Changes in local sample composition.
Recommended Solutions:
- Maintain consistent immersion depth.
- Keep the probe away from the container walls.
- Avoid air bubbles.
- Mix the sample consistently.
- Allow the reading to stabilize.
- The manufacturer specifically warns that placing the probe too close to the container edge can affect the reading.
Incorrect Readings with ESP32
Possible Causes:
- Incorrect ADC attenuation.
- Incorrect ADC voltage interpretation.
- Poor ground reference.
- Electrical noise.
- Inadequate calibration.
Recommended Solutions:
- Verify the ESP32 model and ADC limits.
- Confirm the actual analog voltage.
- Check ADC configuration.
- Use a common ground.
- Calibrate the complete measurement system.
19. Maintenance, Limitations, and Safety Considerations
Correct handling and maintenance help preserve the probe condition and improve measurement consistency.

Probe Maintenance
Recommended practices include:
- Rinse the probe after use when appropriate.
- Remove deposits using a cleaning method compatible with the electrode materials.
- Avoid scratching or damaging the electrodes.
- Do not use abrasive cleaning materials.
- Inspect the probe housing for cracks or damage.
- Check the cable for cuts or deterioration.
- Avoid pulling or twisting the cable.
- Follow the manufacturer’s cleaning instructions.
- Electrode contamination and deposits can change the electrical response and cause measurement drift.
Probe Positioning and Immersion
- The probe should be positioned consistently during measurements.
- Avoid placing it too close to the container walls because the surrounding geometry can influence the measurement.
Additional precautions include:
- Maintain a consistent immersion depth.
- Avoid air bubbles around the electrodes.
- Keep the probe away from the bottom of the container.
- Use the same measurement procedure for calibration and testing.
- Allow the reading to stabilize before recording it.
Waterproofing Limitations
The manufacturer identifies the probe head and cable as waterproof.
However, the connector and signal-conditioning board are not waterproof.
Therefore:
- Only the intended probe portion should be immersed.
- Keep the electronic board dry.
- Protect the connectors from water and condensation.
- Do not immerse the signal-conditioning PCB.
- Keep the controller and display away from the sample container.
The product listing does not specify an IP protection rating. Therefore, the probe should not automatically be assumed suitable for permanent underwater installation or every chemical environment.
Temperature Limitations
The manufacturer specifies that the probe must not be used in water above 55°C.
Operating beyond this limit may damage the probe or affect its performance.
Temperature should also be recorded when accurate conductivity-based comparisons are required.
Measurement Limitations
The module estimates dissolved-solids concentration through an electrical conductivity response.
It does not directly measure:
- Individual dissolved minerals.
- Specific chemical contaminants.
- Suspended particles.
- Turbidity.
- pH.
- Dissolved oxygen.
- Microbiological contamination.
- Individual nutrient concentrations.
- Additional sensors and laboratory analytical methods are necessary when these parameters must be evaluated.
Electrical Safety
Use a regulated supply within the specified 3.3–5.5 V range.
Verify supply polarity before powering the board.
Avoid short circuits.
Keep electronic components dry.
Confirm ADC input compatibility.
Avoid exposed conductors near water.
Use suitable electrical isolation when interfacing with higher-voltage equipment.
Disconnect power before changing wiring.
Important Application Limitation
A low-cost conductivity-based TDS module should not automatically be considered a replacement for a laboratory instrument.
For drinking-water compliance, medical analysis, regulated testing, or industrial process control, use a validated instrument and measurement method appropriate to the required accuracy.
20. Frequently Asked Questions (FAQs)

What Is a TDS Meter Sensor Board Module V1.0?
It is an electronic sensing module that uses a two-electrode probe and signal-conditioning circuit to estimate the total dissolved-solids concentration in water through electrical conductivity.
What Is the Operating Voltage of the Makers Electronics TDS Sensor?
The official product listing specifies an input voltage range of 3.3–5.5 V DC.
What Is the Analog Output Voltage Range?
The specified analog output range is 0–2.3 V DC.
What Is the Maximum Operating Current?
The manufacturer specifies a working current of 3–6 mA.
What Is the TDS Measurement Range?
The manufacturer’s specified measurement range is 0–1000 ppm.
What Is the Measurement Accuracy?
The specified accuracy is ±10% full scale at 25°C.
For a 1000 ppm full-scale range, this corresponds to a stated tolerance of ±100 ppm.
Can the TDS Sensor Be Connected to Arduino Uno?
Yes. Its analog output can be connected to an Arduino Uno analog input, provided the board is powered correctly and the electrical connections are verified.
Can the Sensor Be Used with ESP32?
Yes. Its specified maximum output is 2.3 V, but the selected ESP32 ADC input limits and attenuation configuration must still be checked.
Does the Sensor Directly Measure TDS?
No. It measures an electrical response associated with conductivity, which is processed to estimate TDS concentration.
Does the Sensor Have an Analog Output?
Yes. The product listing specifies an analog output between 0 and 2.3 V.
What Is the Difference Between TDS and Electrical Conductivity?
Electrical conductivity measures the ability of water to conduct electricity through dissolved ions.
TDS represents the concentration of dissolved substances.
Conductivity can be used to estimate TDS, but the conversion depends on the chemical composition of the water.
Does the Sensor Include Automatic Temperature Compensation?
The official product listing does not specify an integrated temperature sensor or automatic temperature-compensation function.
A separate temperature sensor can be added to the monitoring system.
Can the Sensor Be Used for Hydroponics?
Yes. It can help monitor changes in dissolved ionic concentration in hydroponic nutrient solutions.
However, it cannot identify the concentration of individual nutrients.
Can the Sensor Be Used for Drinking Water Monitoring?
Yes, for preliminary TDS monitoring and educational projects.
However, a TDS reading alone cannot establish whether drinking water is safe or free from contaminants and microorganisms.
What Is the Difference Between TDS and Turbidity?
TDS estimates the concentration of dissolved substances through electrical conductivity.
Turbidity measures an optical effect associated with suspended particles.
They measure different water-quality properties.
How Often Should the Sensor Be Calibrated?
Calibration frequency depends on the application, measurement stability, sample composition, and required accuracy.
Important measurements should be checked against suitable reference solutions at documented intervals.
Is the Entire Sensor Waterproof?
No. The manufacturer identifies the probe head and cable as waterproof but states that the connector and signal-conditioning board are not waterproof.
Can the Probe Be Used in Hot Water?
The manufacturer specifies that the probe must not be used in water above 55°C.
What Is the Difference Between ppm and mg/L?
For relatively dilute aqueous solutions, ppm and mg/L are commonly treated as approximately equivalent.
However, the relationship depends on solution density and measurement context.
Does a High TDS Reading Always Mean Water Is Unsafe?
No. TDS does not identify individual contaminants or microorganisms.
Water safety requires appropriate chemical, physical, and microbiological testing.
21. Conclusion
The TDS Meter Sensor Board Module V1.0 is a practical conductivity-based sensing solution for estimating dissolved-solids concentration in water.
Its two-electrode probe responds to the electrical properties of the sample, while the signal-conditioning board processes that response and produces an analog voltage suitable for microcontroller-based measurement.

With its 3.3–5.5 V operating supply, 0–2.3 V analog output, low working current, and compatibility with common microcontroller platforms, the module provides a useful foundation for electronics projects involving water-quality monitoring, hydroponics, aquariums, and filtration experiments.
The published schematic also provides an opportunity to explore oscillator circuits, operational amplifiers, voltage regulation, charge-pump conversion, and analog signal conditioning.
However, obtaining meaningful TDS measurements requires appropriate calibration, consistent sample handling, temperature awareness, and electrical compatibility.
It is equally important to understand that conductivity-based TDS measurements are estimates whose accuracy depends on the chemical composition of the sample and the conversion relationship used.
For reliable laboratory, drinking-water compliance, or industrial measurements, use validated instruments and appropriate analytical methods.
وقت القراءة: 20 دقيقة
1. المقدمة
تُعد مراقبة جودة المياه أمرًا ضروريًا في العديد من المجالات، بما في ذلك معالجة مياه الشرب، والزراعة، وتربية الأحياء المائية، والزراعة المائية، والعمليات الصناعية، والاختبارات البيئية.
ومن أهم المؤشرات المستخدمة في تقييم جودة المياه مؤشر إجمالي المواد الصلبة الذائبة، المعروف اختصارًا باسم TDS.
يشير هذا المؤشر إلى التركيز الكلي للمواد الذائبة في الماء، بما يشمل الأملاح المعدنية وغيرها من المواد الموجودة في صورة ذائبة.
ويساعد قياس هذه القيمة على تكوين فكرة عن التغيرات التي تطرأ على التركيب الكيميائي للمياه.
تعتمد وحدة لوحة مستشعر قياس إجمالي المواد الصلبة الذائبة TDS Meter Sensor Board Module V1.0 على قطبين موصلين للكهرباء للكشف عن الاستجابة الكهربائية لعينة المياه.
تُسهم الأيونات الذائبة في الماء في زيادة التوصيلية الكهربائية، وهو ما يتيح للدائرة الإلكترونية تقدير تركيز المواد الصلبة الذائبة.
تُخرج الوحدة جهدًا تناظريًا يتناسب مع قراءة إجمالي المواد الصلبة الذائبة.
ويمكن للمتحكم الدقيق قراءة هذا الجهد من خلال محول تناظري إلى رقمي (ADC)، ثم معالجة القيمة وعرض التركيز التقديري بوحدة جزء في المليون (ppm).
وعلى عكس مستشعرات العكارة التي تعتمد على التقنيات البصرية للكشف عن الجسيمات العالقة، تعتمد هذه الوحدة على قياس التوصيلية الكهربائية.
لذلك، توفر طريقتا القياس معلومات مختلفة عن جودة المياه، إذ تقيس كل منهما جانبًا مختلفًا من خصائصها.

تُعد هذه الوحدة مناسبة بشكل خاص للاستخدام في:
- نماذج وأنظمة مراقبة جودة المياه.
- متابعة تركيز العناصر الغذائية في المحاليل المستخدمة في الزراعة المائية.
- مشروعات أحواض السمك وتربية الأسماك.
- تجارب أنظمة تنقية المياه وترشيحها.
- مشروعات التطوير باستخدام Arduino وESP32.
- التعليم الإلكتروني والتجارب المعملية.
ينتقل هذا المقال من شرح المبادئ الأساسية لقياس إجمالي المواد الصلبة الذائبة إلى استعراض المواصفات الفعلية للوحدة، وطرق توصيلها، ومعايرتها، وتأثير درجة الحرارة على القياس، وبرمجتها، وتصميم نظام متكامل لمراقبة جودة المياه.
2. فهم إجمالي المواد الصلبة الذائبة (TDS)
ما المقصود بإجمالي المواد الصلبة الذائبة؟
يشير مصطلح إجمالي المواد الصلبة الذائبة (Total Dissolved Solids – TDS) إلى الكمية الإجمالية للمواد التي تذوب في عينة المياه.
وقد تشمل هذه المواد الأملاح غير العضوية، والمعادن، وبعض المركبات العضوية الذائبة.
ومن أشهر الأيونات الموجودة في المياه:
| الأيون | الرمز الكيميائي | المصدر الشائع |
|---|---|---|
| الكالسيوم | Ca²⁺ | المعادن والحجر الجيري |
| المغنيسيوم | Mg²⁺ | المعادن والمياه الجوفية |
| الصوديوم | Na⁺ | الأملاح الذائبة |
| البوتاسيوم | K⁺ | الأملاح المعدنية |
| الكلوريد | Cl⁻ | أملاح الكلوريد الذائبة |
| الكبريتات | SO₄²⁻ | الرواسب المعدنية |
| البيكربونات | HCO₃⁻ | المعادن الكربوناتية |
عندما تذوب المركبات الأيونية في الماء، فإنها تنفصل إلى أيونات موجبة الشحنة وأخرى سالبة الشحنة. وتُسهم هذه الأيونات في التوصيلية الكهربائية للمحلول.

وحدات قياس إجمالي المواد الصلبة الذائبة
يُعبَّر عن قيمة إجمالي المواد الصلبة الذائبة عادةً باستخدام الوحدات التالية:
| الوحدة | المعنى |
|---|---|
| ppm | جزء في المليون |
| mg/L | ملليجرام لكل لتر |
| g/L | جرام لكل لتر |
في المحاليل المائية المخففة نسبيًا، والتي تكون كثافتها قريبة من 1 kg/L، يمكن استخدام العلاقة التقريبية التالية:
1 ppm ≈ 1 mg/L
على سبيل المثال:
- 100 ppm ≈ 100 mg/L.
- 500 ppm ≈ 500 mg/L.
- 1000 ppm ≈ 1000 mg/L.
يُستخدم هذا التقريب على نطاق واسع في تطبيقات قياس جودة المياه، إلا أن وحدتي ppm وmg/L ليستا متطابقتين في جميع الحالات، خاصةً عند التعامل مع محاليل تختلف كثافتها بدرجة ملحوظة عن كثافة الماء.
ماذا تعني قراءة TDS؟
تعطي قراءة TDS تقديرًا لتركيز المواد الذائبة الموجودة في عينة المياه.
وبوجه عام، تشير القراءات المرتفعة إلى وجود تركيز أكبر من المواد الصلبة الذائبة.
ومع ذلك، لا تحدد هذه القراءة نوع المواد أو المركبات المسؤولة عن القيمة المسجلة.
فقد تحتوي عينتان من المياه على التركيز نفسه من إجمالي المواد الصلبة الذائبة، ومع ذلك تختلفان في أنواع المعادن الذائبة ونسبها.
بالإضافة إلى ذلك، توجد بعض المواد غير الأيونية التي يمكن أن تذوب في الماء دون أن تسهم في التوصيلية الكهربائية بالطريقة نفسها التي تسهم بها الأملاح الذائبة.
لذلك، ينبغي التعامل مع قراءة TDS باعتبارها مؤشرًا على تركيز المواد الصلبة الذائبة، وليس قياسًا شاملًا لنقاء المياه أو مدى صلاحيتها للاستخدام الآمن.
3. فهم التوصيلية الكهربائية وعلاقتها بإجمالي المواد الصلبة الذائبة (TDS)
ما المقصود بالتوصيلية الكهربائية؟
تُعبّر التوصيلية الكهربائية (Electrical Conductivity – EC) عن قدرة مادة أو محلول على توصيل التيار الكهربائي.
وفي الماء، تتأثر التوصيلية الكهربائية بصورة أساسية بوجود الأيونات الذائبة.
عند تطبيق فرق جهد كهربائي بين قطبين مغمورين في محلول يحتوي على أيونات، تسهم حركة الجسيمات المشحونة في تكوين الاستجابة الكهربائية التي يمكن قياسها.
وبوجه عام، تكون التوصيلية الكهربائية للمياه أعلى عندما تحتوي على تركيز أكبر من الأيونات القابلة للحركة.
يُعبَّر عن التوصيلية الكهربائية عادةً باستخدام الوحدات التالية:
- µS/cm – ميكروسيمنز لكل سنتيمتر.
- mS/cm – مليسيمنز لكل سنتيمتر.
والعلاقة بين هاتين الوحدتين هي:
1 mS/cm = 1000 µS/cm

كيف تُستخدم التوصيلية الكهربائية لتقدير TDS؟
لا تقيس العديد من أجهزة قياس TDS الإلكترونية الكتلة الفعلية للمواد الصلبة الذائبة بصورة مباشرة.
وبدلًا من ذلك، تقيس هذه الأجهزة التوصيلية الكهربائية للماء، ثم تستخدم معامل تحويل لتقدير قيمة إجمالي المواد الصلبة الذائبة.
يمكن التعبير عن العلاقة العامة بالمعادلة التالية:
\[ TDS = EC \times k \]
حيث:
- TDS: التركيز التقديري للمواد الصلبة الذائبة بوحدة mg/L.
- EC: التوصيلية الكهربائية بوحدة µS/cm، وتكون القيمة عادةً مرجعية عند درجة حرارة 25°C.
- k: معامل التحويل من التوصيلية الكهربائية إلى إجمالي المواد الصلبة الذائبة.
- تعتمد قيمة معامل التحويل على التركيب الكيميائي للمياه.
تُستخدم في القياسات العملية للمياه معاملات تحويل تتراوح غالبًا بين 0.5 و0.8 تقريبًا، لكن هذه القيمة ليست ثابتًا عامًا يصلح لجميع أنواع المياه.
مثال عملي على الحساب
لنفترض أن عينة من المياه لديها توصيلية كهربائية تبلغ 750 µS/cm عند درجة حرارة 25°C.
في هذا المثال، سنستخدم معامل تحويل يساوي 0.65.
\[ TDS = 750 \times 0.65 \]
\[ \boxed{TDS = 487.5\text{ mg/L}} \]
وبذلك تكون قيمة إجمالي المواد الصلبة الذائبة التقديرية حوالي 488 mg/L.
يوضح هذا المثال العلاقة الحسابية بين التوصيلية الكهربائية وإجمالي المواد الصلبة الذائبة، ولا يمثل معادلة معايرة منشورة أو معتمدة خصيصًا للوحدة V1.0.
لماذا لا يمكن اعتبار EC وTDS قياسًا واحدًا؟
تقيس التوصيلية الكهربائية (EC) قدرة المحلول على توصيل التيار الكهربائي، بينما تعبّر قيمة إجمالي المواد الصلبة الذائبة (TDS) عن تركيز المواد الصلبة الموجودة في المحلول في صورة ذائبة.
وترتبط العلاقة بين القياسين بطبيعة المواد الذائبة وتركيبها الكيميائي.
فعلى سبيل المثال، يمكن أن تستجيب محاليل كلوريد الصوديوم وكبريتات الكالسيوم بصورة مختلفة من حيث التوصيلية الكهربائية، حتى عندما تحتوي على تركيزات متكافئة من المواد الصلبة الذائبة.
وبناءً على ذلك، يجب اختيار معامل التحويل بما يتناسب مع تركيب العينة وطبيعة القياس المطلوب.
4. نظرة عامة على وحدة مستشعر قياس إجمالي المواد الصلبة الذائبة TDS Meter Sensor Board Module V1.0
تُعد وحدة قياس إجمالي المواد الصلبة الذائبة TDS Meter Sensor Board Module V1.0، المتوفرة لدى شركة Makers Electronics، وحدة استشعار تناظرية لجودة المياه تعتمد على قياس التوصيلية الكهربائية.
تتكون هذه الوحدة من الأجزاء التالية:
- مسبار TDS مزود بقطبين كهربائيين.
- لوحة إلكترونية لمعالجة الإشارة وتهيئتها.
- واجهة توصيل المسبار.
- كابل توصيل تناظري مكوّن من ثلاثة أطراف.
صُمم المسبار ليُغمر داخل عينة المياه، بينما تتولى لوحة معالجة الإشارة تحليل الاستجابة الكهربائية الناتجة وإنتاج إشارة خرج تناظرية.

المكونات الرئيسية للمنتج
مسبار TDS
يحتوي المسبار على قطبين موصلين للكهرباء يتفاعلان كهربائيًا مع المياه المحيطة بهما.
وتؤثر التغيرات في تركيز الأيونات الذائبة على الاستجابة الكهربائية بين القطبين.
لوحة معالجة الإشارة
تعمل لوحة الدوائر المطبوعة (PCB) على معالجة الاستجابة الكهربائية القادمة من المسبار، ثم توليد جهد خرج تناظري يتناسب مع قراءة إجمالي المواد الصلبة الذائبة.
كابل المسبار
يربط كابل المسبار مجموعة الاستشعار المكوّنة من القطبين الكهربائيين بلوحة معالجة الإشارة.
كابل التوصيل ثلاثي الأطراف
يوفر الكابل المرفق التوصيلات الكهربائية الخارجية اللازمة لتغذية الوحدة بالطاقة، وتوصيل الأرضي، ونقل إشارة الخرج التناظرية.
الميزات الرئيسية للمنتج
وفقًا للمواصفات المنشورة في صفحة المنتج الرسمية، توفر الوحدة الخصائص التالية:
- جهد خرج تناظري يتراوح من 0 إلى 2.3 V.
- جهد تشغيل يتراوح من 3.3 إلى 5.5 V DC.
- استهلاك منخفض للتيار أثناء التشغيل يتراوح بين 3–6 mA.
- نطاق قياس محدد لإجمالي المواد الصلبة الذائبة من 0–1000 ppm.
- مسبار مقاوم للماء يعتمد على قطبين كهربائيين.
- التوافق مع مشروعات Arduino وESP32.
- إمكانية ضبط الحساسية، وفقًا لما هو موضح في وصف المنتج.
- صُممت الوحدة لمراقبة جودة المياه والتطبيقات التعليمية في مجال الإلكترونيات.
للاطلاع على تفاصيل المنتج ومواصفاته، يمكنك زيارة صفحة:
مستشعر TDS مع لوحة التحكم V1.0.
5. الصور الرسمية لمنتج Makers Electronics
يضم هذا القسم الصور الأصلية للمنتج TDS Meter Sensor Board Module V1.0، كما توفرها شركة Makers Electronics.
ينبغي الاحتفاظ بالصور بصورتها الأصلية وإدراجها بالترتيب التالي، لتوثيق شكل المنتج الفعلي، وتوصيلاته، وتركيب لوحة الدوائر الإلكترونية، وأبعاده.

تُظهر الصورة الأولى المكونات التالية:
- لوحة معالجة الإشارة الخاصة بوحدة TDS Meter V1.0.
- مسبار الاستشعار المزود بقطبين كهربائيين.
- كابل المسبار.
- كابل التوصيل التناظري ثلاثي الأطراف.
6. مبدأ عمل مستشعر TDS
كيف يعمل المسبار ذو القطبين الكهربائيين؟
يعتمد مسبار TDS على قطبين موصلين للكهرباء للتفاعل كهربائيًا مع عينة المياه المراد قياسها.
عند غمر المسبار في الماء، تؤثر المواد الأيونية الذائبة في الاستجابة الكهربائية المتولدة بين القطبين.
وتعتمد طبيعة هذه الاستجابة على عدة عوامل، من أهمها:
- تركيز الأيونات الذائبة في الماء.
- نوع الأيونات ومدى قابليتها للحركة.
- الشكل الهندسي للقطبين والمسافة الفاصلة بينهما.
- درجة حرارة المياه.
- خصائص الإشارة الكهربائية المستخدمة في عملية القياس.
تقوم دائرة معالجة الإشارة بتحليل هذه الاستجابة وإنتاج جهد تناظري يرتبط بتركيز إجمالي المواد الصلبة الذائبة.

لماذا يُعد استخدام الإثارة الكهربائية المتناوبة أمرًا مهمًا؟
يتطلب قياس التوصيلية الكهربائية باستخدام الأقطاب عناية خاصة بطريقة تطبيق الإشارة الكهربائية.
فقد يؤدي تطبيق جهد مستمر (DC) بصورة متواصلة بين الأقطاب المغمورة في الماء إلى حدوث استقطاب للأقطاب وتفاعلات كهروكيميائية. ويمكن أن تتسبب هذه التأثيرات في ظهور أخطاء في القياس، كما قد تؤثر في حالة الأقطاب بمرور الوقت.
يتضمن المخطط الإلكتروني المرفق للوحدة V1.0 دائرة مذبذب وعداد تعتمد على الشريحة CD4060، إلى جانب مجموعة من الدوائر التناظرية. ويوفر المذبذب إشارات التوقيت اللازمة لبعض وظائف دائرة القياس.
كما يتضمن المخطط دوائر إلكترونية لتوليد خطوط تغذية داخلية موجبة وسالبة.
ويتوافق ذلك مع تصميم إلكتروني يهدف إلى معالجة إشارة مستشعر ثنائية القطبية أو متناوبة، بدلًا من الاكتفاء بقياس مقاومة ثابتة باستخدام جهد مستمر.
ومع ذلك، لا يقدم المخطط المنشور وصفًا كاملًا لشكل موجة الإثارة الكهربائية أو ترددها الدقيق في جميع ظروف التشغيل. لذلك، لا ينبغي افتراض هذه الخصائص دون إجراء تحليل للدائرة أو قياسات عملية.
من الاستجابة الكهربائية إلى إشارة الخرج التناظرية
يمكن تلخيص التسلسل العام لعملية القياس في الخطوات التالية:
- تولّد الدائرة الإشارة الكهربائية اللازمة لإجراء القياس باستخدام المسبار.
- يتفاعل القطبان الكهربائيان مع عينة المياه.
- تؤثر الأيونات الذائبة في الاستجابة الكهربائية بين القطبين.
- تعمل الدائرة التناظرية على معالجة الإشارة الناتجة.
- تنتج لوحة معالجة الإشارة جهد خرج تناظريًا.
- يقيس المتحكم الدقيق جهد الخرج.
- يطبق البرنامج علاقة المعايرة المناسبة لتحويل القراءة إلى قيمة تقديرية لـ TDS.
- تُعرض قيمة إجمالي المواد الصلبة الذائبة التقديرية أو تُسجَّل.
ومن المهم التمييز بين وظيفة المسبار ووظيفة الدائرة الإلكترونية؛ فالمسبار لا يُخرج قيمة رقمية مباشرة لتركيز المواد الذائبة، وإنما تنتج الدائرة الإلكترونية إشارة تناظرية تحتاج إلى تفسير باستخدام علاقة معايرة مناسبة للحصول على قراءة TDS التقديرية.
7. البنية الداخلية ومعالجة الإشارة
يوفر المخطط الإلكتروني الخاص بالوحدة V1.0، والصادر عن شركة Makers Electronics، معلومات مفيدة حول البنية الإلكترونية الداخلية للوحدة.
فعلى عكس الوصف العام الذي يكتفي بعرض مخطط وظيفي مبسط، يحدد المخطط المنشور عددًا من الدوائر المتكاملة الفعلية والمكونات الإلكترونية المساعدة المستخدمة في التصميم.

الدوائر المتكاملة الرئيسية
| المكوّن | الوظيفة الموضحة في ورقة البيانات | دوره في الدائرة المنشورة |
|---|---|---|
| CD4060BM | عداد ثنائي من 14 مرحلة مزود بمذبذب | دوائر التوقيت وتوليد الإشارات |
| LMV324 | مضخم عمليات رباعي | مراحل معالجة الإشارات التناظرية |
| ME6206A30M3G | منظم جهد | توليد مصدر تغذية داخلي منظم بجهد 3 فولت |
| TPS60400 | عاكس جهد يعمل بمضخة الشحن | توليد خط تغذية داخلي ذي جهد سالب |
تستند وظائف هذه المكونات إلى المخطط الإلكتروني ووثائق المكونات المرتبطة به.
أما الدور الدقيق لكل مرحلة من مراحل المعالجة التناظرية، فينبغي تحديده من خلال تحليل المخطط الإلكتروني كاملًا، بدلًا من استنتاجه اعتمادًا على اسم المكوّن وحده.
المذبذب والعداد CD4060
تُعد الشريحة CD4060 دائرة متكاملة بتقنية CMOS، وتحتوي على:
- قسم خاص بالمذبذب.
- أربع عشرة مرحلة من مراحل العداد الثنائي المتتابع.
- مدخل لإعادة الضبط.
- مخارج مؤقتة ومعزولة لإشارات الساعة والعد.
يمكن تهيئة هذه الشريحة باستخدام مكونات توقيت خارجية لتوليد إشارات الساعة والحصول على مخارج ذات ترددات مقسمة.
وفي المخطط الإلكتروني للوحة مستشعر TDS، أُدرجت هذه الشريحة ضمن دائرة التوقيت المرتبطة بنظام قياس المسبار.
مضخم العمليات LMV324
تحتوي الشريحة LMV324 على أربعة مضخمات عمليات مستقلة داخل حزمة واحدة.
تُستخدم مضخمات العمليات على نطاق واسع في دوائر المستشعرات لتنفيذ وظائف متعددة، منها:
- تضخيم الإشارات.
- عزل الإشارات ومطابقة الممانعة باستخدام دوائر التابع الجهدي.
- ترشيح الإشارات.
- تهيئة الإشارات قبل معالجتها.
- معالجة الجهود التناظرية.
يوضح المخطط الإلكتروني المنشور وجود عدة مراحل من الشريحة LMV324 متصلة بمقاومات ومكثفات ودايودات.
وتشكل هذه المكونات جزءًا من دائرة القياس والمعالجة التناظرية في الوحدة.
دائرة مصدر التغذية الداخلي
يحدد المخطط الإلكتروني مكونين مهمين مسؤولين عن تحويل الجهد وتوليد خطوط التغذية الداخلية:
- ME6206A30M3G: يوفر خط تغذية موجبًا منظمًا بجهد 3.0 V.
- TPS60400: يولّد خط جهد سالب باستخدام تقنية مضخة الشحن.
يشير المخطط إلى خطوط التغذية الداخلية بالقيمتين +3.0 V و−3.0 V.
تتيح هذه الدوائر الداخلية للقسم التناظري العمل باستخدام مستويات تغذية تختلف عن جهد مصدر الطاقة الخارجي.
ومن المهم عدم الخلط بين جهد الدخل الخارجي المحدد من 3.3 إلى 5.5 V وبين خطوط الجهد الداخلية التي تولدها الدائرة.
المسار الداخلي المبسط للإشارة
يمكن تمثيل التسلسل الوظيفي العام لعمل الوحدة بالشكل التالي:
External DC Supply
|
v
Internal Power Supply
|
v
Timing / Excitation Circuit
|
v
Two-Electrode TDS Probe
|
v
Analog Signal Processing
|
v
Output Conditioning
|
v
Analog Output (0–2.3 V)
يمثل هذا المخطط تصورًا وظيفيًا مبسطًا للتصميم المنشور، ولا يُعد بديلًا عن المخطط الإلكتروني الأصلي الصادر عن الشركة المصنعة.
مرجع الدائرة الأصلية: تنزيل المخطط الإلكتروني لمستشعر TDS V1.0.
8. المواصفات الفنية لمستشعر TDS من Makers Electronics
تم الحصول على المواصفات التالية من صفحة المنتج الرسمية لدى شركة Makers Electronics.

جدول مواصفات المنتج
| المعيار | المواصفات |
|---|---|
| اسم المنتج | مستشعر TDS مع لوحة التحكم V1.0 |
| جهد الدخل | 3.3–5.5 V DC |
| جهد الخرج التناظري | 0–2.3 V DC |
| تيار التشغيل | 3–6 mA |
| نطاق قياس TDS | 0–1000 ppm |
| دقة القياس | ±10% F.S. عند 25°C |
| أبعاد اللوحة | 42 × 32 mm |
| واجهة توصيل اللوحة | PH2.0-3P |
| واجهة توصيل الأقطاب | XH2.54-2P |
| طول المسبار | 60 cm |
| عدد أقطاب المسبار | 2 |
| لون المسبار | أبيض |
فهم جهد التغذية
تقبل الوحدة جهد دخل يتراوح بين 3.3 V و5.5 V DC.
يجعل هذا النطاق الوحدة مناسبة للاستخدام مع العديد من لوحات تطوير المتحكمات الدقيقة.
على سبيل المثال:
- Arduino Uno: يمكن استخدام مصدر تغذية منظم بجهد 5 V.
- ESP32: يمكن استخدام مصدر تغذية منظم بجهد 3.3 V.
- وحدات التحكم الأخرى: يجب أن يظل جهد التغذية ضمن نطاق الدخل المحدد للوحدة.
يُنصح باستخدام مصدر تغذية مستقر، لأن تغيرات الجهد والتشويش الكهربائي قد يؤثران في دقة القياسات التناظرية.
فهم نطاق جهد الخرج التناظري
- نطاق جهد الخرج المحدد هو 0–2.3 V DC.
- يجب أخذ هذا الجهد في الاعتبار عند اختيار وحدة التحكم، لأن حدود مداخل محول التناظري إلى رقمي (ADC) تختلف من متحكم دقيق إلى آخر.
يظل الحد الأقصى لجهد خرج المستشعر المحدد أقل من مستوى التغذية الاسمي البالغ 3.3 V في العديد من لوحات تطوير ESP32. ومع ذلك، يجب التحقق من نطاق دخل ADC الفعلي وإعدادات توهين الإشارة في الطراز المستخدم.
فهم دقة القياس
تحدد صفحة المنتج دقة القياس بالقيمة التالية:
±10% F.S. at 25°C
يشير الاختصار F.S. إلى المدى الكامل للقياس (Full Scale).
وبالنسبة إلى نطاق قياس أقصى يبلغ 1000 ppm:
\[ \text{Full-scale tolerance}=1000\times0.10 \]
\[ \boxed{\pm100\text{ ppm}} \]
تمثل هذه القيمة سماحية القياس عند المدى الكامل وفقًا للمواصفات التي أعلنتها الشركة المصنعة.
ولا ينبغي تفسيرها على أنها خطأ مضمون بنسبة ±10% بالنسبة إلى كل قراءة منفردة.
كما أن صفحة المنتج لا تقدم ميزانية تفصيلية لعدم اليقين في القياس، أو شروط اختبار كاملة، أو منحنى معايرة تم التحقق منه بصورة مستقلة على امتداد نطاق القياس بالكامل.
فهم الحد الأقصى لدرجة حرارة المسبار
تحدد الشركة المصنعة أن المسبار يجب ألا يُستخدم في مياه تزيد درجة حرارتها على 55°C.
ويمثل ذلك قيدًا مهمًا يجب مراعاته أثناء التشغيل.
لذلك، ينبغي استخدام المسبار ضمن حد درجة الحرارة المحدد، مع حماية الدوائر الإلكترونية الحساسة من التعرض للرطوبة.
فهم الأبعاد الميكانيكية
تبلغ أبعاد لوحة معالجة الإشارة:
- الطول: 42 mm.
- العرض: 32 mm.
- يبلغ طول كابل المسبار 60 cm وفقًا للمواصفات المنشورة للمنتج.
تساعد هذه الأبعاد في تحديد مساحة التركيب وتصميم الغلاف الخارجي المناسب للوحدة.
9. توزيع أطراف مستشعر TDS وواجهات التوصيل
يحتوي المنتج على واجهتي توصيل منفصلتين:
- واجهة توصيل ثلاثية الأطراف تربط لوحة معالجة الإشارة بوحدة التحكم الخارجية.
- واجهة توصيل ثنائية الأطراف تربط اللوحة بمسبار مستشعر TDS.
من المهم فهم الفرق بين هاتين الواجهتين لضمان إجراء التوصيلات الكهربائية بصورة صحيحة.

توزيع أطراف التوصيل بين اللوحة ووحدة التحكم
تحدد صفحة المنتج الرسمية واجهة التوصيل الخارجية على النحو التالي:
| رقم الطرف | العلامة المطبوعة على اللوحة | الوظيفة |
|---|---|---|
| 1 | – | الأرضي (Ground – 0 V) |
| 2 | + | مصدر التغذية الموجب (3.3–5.5 V DC) |
| 3 | A | الخرج التناظري (0–2.3 V) |
تم تحديد واجهة التوصيل ثلاثية الأطراف بالرمز PH2.0-3P.
استخدم العلامات المطبوعة على لوحة الدوائر الإلكترونية لتحديد أطراف التوصيل. ولا تعتمد على ألوان الأسلاك أو اتجاه الموصل وحدهما لتحديد وظيفة كل طرف.
التوصيل بين المسبار واللوحة
يستخدم المسبار موصلًا من النوع XH2.54-2P.
يتصل طرفا هذا الموصل بواجهة المسبار المطابقة الموجودة على لوحة معالجة الإشارة.
لتوصيل المسبار، اتبع الخطوات التالية:
- حدد موصل التوصيل ثنائي الأطراف.
- تحقق من تطابق هيكل الموصل مع الواجهة الموجودة على اللوحة.
- اضبط اتجاه الموصل بالشكل الصحيح.
- أدخل الموصل برفق، دون الضغط بقوة على نقاط التلامس.
- تجنب شد كابل المسبار أو ثنيه أو لفه بصورة تؤثر في سلامته.
يجب الانتباه إلى أن موصل المسبار منفصل عن واجهة التوصيل ثلاثية الأطراف المخصصة لوحدة التحكم الخارجية.
فهم كابل التوصيل ثلاثي الأطراف
يوفر الكابل المرفق والمكوّن من ثلاثة أطراف توصيلات الطاقة والإشارة الخارجية اللازمة لتشغيل الوحدة.
| طرف التوصيل | الوظيفة |
|---|---|
| الأرضي (Ground) | مرجع كهربائي مشترك |
| الموجب (Positive) | تغذية اللوحة بالطاقة |
| الإشارة التناظرية (Analog) | نقل إشارة خرج المستشعر |
لا ينبغي الاعتماد على ألوان الأسلاك وحدها لتحديد وظائفها. يجب التحقق من التطابق الفعلي بين أسلاك الكابل ونقاط التوصيل على لوحة الدوائر الإلكترونية قبل توصيل مصدر الطاقة.
احتياطات التوصيل الكهربائي
- تحقق من طرفي التغذية الموجب والأرضي قبل التشغيل.
- تجنب عكس قطبية مصدر التغذية.
- تحقق من صحة توصيل خرج الإشارة التناظرية.
- حافظ على جفاف لوحة معالجة الإشارة.
- احمِ الموصلات من التعرض للرطوبة.
- تجنب حدوث دوائر قصر كهربائية.
- افصل مصدر الطاقة قبل إجراء أي تغيير في التوصيلات.
10. توصيل مستشعر TDS بلوحة Arduino Uno
تُعد لوحة Arduino Uno منصة مناسبة وسهلة الاستخدام لتطوير نموذج أولي لنظام مراقبة إجمالي المواد الصلبة الذائبة في المياه.
ويمكن قياس إشارة الخرج التناظرية للمستشعر باستخدام محول التناظري إلى رقمي (ADC) المدمج في اللوحة.

توصيلات مستشعر TDS مع Arduino Uno
| طرف مستشعر TDS | طرف Arduino Uno |
|---|---|
| + | 5V |
| – | GND |
| A | A0 |
يجب توصيل مسبار الاستشعار ذي القطبين الكهربائيين باللوحة بصورة منفصلة، باستخدام موصل التوصيل الخاص به والمكوّن من طرفين.
فهم محول ADC في لوحة Arduino Uno
تستخدم لوحة Arduino Uno محولًا تناظريًا إلى رقمي بدقة 10 بت.
ويبلغ عدد مستويات التحويل المتاحة:
\[ 2^{10}=1024 \]
وبالتالي، تتراوح قراءة محول ADC من 0 إلى 1023.
عند استخدام جهد مرجعي اسمي قدره 5 V:
\[ \text{ADC voltage per count}=\frac{5}{1023} \]
\[ \boxed{4.89\text{ mV/count}} \]
يتوافق أقصى جهد خرج للمستشعر، والبالغ 2.3 V، مع قراءة تقريبية لمحول ADC تساوي:
\[ ADC=\frac{2.3}{5}\times1023 \]
\[ \boxed{ADC\approx471} \]
وبذلك يستخدم المستشعر ما يقارب 46% من نطاق القياس المتاح لمحول ADC في لوحة Uno.
كود Arduino لقراءة الجهد التناظري
يقرأ البرنامج التالي إشارة الخرج التناظرية، ويحسب متوسط عدة عينات، ثم يعرض الجهد المقاس.
const int TDS_PIN = A0;
const float ADC_REFERENCE = 5.0;
const int ADC_MAX = 1023;
void setup() {
Serial.begin(9600);
}
void loop() {
const int samples = 20;
long total = 0;
for (int i = 0; i < samples; i++) {
total += analogRead(TDS_PIN);
delay(20);
}
float averageADC = total / (float)samples;
float voltage =
averageADC * ADC_REFERENCE / ADC_MAX;
Serial.print("ADC Value: ");
Serial.println(averageADC);
Serial.print("Analog Voltage: ");
Serial.print(voltage, 3);
Serial.println(" V");
delay(1000);
}
شرح طريقة عمل البرنامج
ينفذ البرنامج العمليات التالية:
- تحديد المدخل التناظري A0 لقراءة إشارة المستشعر.
- قراءة خرج المستشعر 20 مرة.
- جمع جميع القراءات المسجلة.
- حساب متوسط قيمة القراءة الرقمية ADC.
- تحويل متوسط القراءة الرقمية إلى جهد كهربائي.
- عرض قيمة ADC والجهد المقاس عبر نافذة المراقبة التسلسلية (Serial Monitor).
يساعد حساب متوسط عدة عينات على تقليل التذبذبات العشوائية في القراءات، لكنه لا يلغي أخطاء المعايرة أو أخطاء القياس المنهجية.
11. توصيل مستشعر TDS مع ESP32 ووحدات تحكم دقيقة أخرى
يمكن أيضًا دمج وحدة مستشعر TDS مع منصات أخرى تعتمد على المتحكمات الدقيقة، وليس فقط مع لوحة Arduino Uno.

الدمج مع ESP32
يبلغ الحد الأقصى المحدد لجهد الخرج التناظري للوحدة 2.3 V.
يتوافق هذا الجهد عمومًا مع العديد من إعدادات محول ADC في وحدات ESP32، لكن حدود جهد الدخل الفعلية تعتمد على نوع شريحة ESP32 وتصميم لوحة التطوير المستخدمة.
قبل توصيل المستشعر، يجب مراعاة ما يلي:
- التحقق من طراز وحدة ESP32 المستخدمة.
- مراجعة حدود جهد الدخل المسموح بها لمحول ADC.
- ضبط مستوى توهين الإشارة المناسب لمحول ADC.
- توصيل أرضي المستشعر بأرضي وحدة التحكم.
- التحقق من جهد الخرج الفعلي للمستشعر.
- عدم افتراض أن جميع إصدارات ESP32 تمتلك خصائص متطابقة لمحول ADC.
الدمج مع STM32
يمكن قياس الجهد التناظري الخارج من المستشعر باستخدام أحد مداخل محول ADC في متحكم STM32.
يجب التحقق من أقصى جهد مسموح به على مدخل ADC في الطراز المختار، بالإضافة إلى الجهد المرجعي وخصائص التحويل الخاصة به.
الدمج مع Raspberry Pi
لا تحتوي معظم لوحات Raspberry Pi القياسية على مدخل تناظري عام مدمج.
لذلك، يلزم استخدام محول خارجي من تناظري إلى رقمي (ADC).
ينبغي اختيار محول ADC يدعم نطاق جهد خرج الوحدة، ويوفر واجهة اتصال رقمية مناسبة للعمل مع لوحة Raspberry Pi.
جدول توافق وحدات التحكم
| وحدة التحكم | طريقة التوصيل | أهم النقاط التي يجب مراعاتها |
|---|---|---|
| Arduino Uno | مدخل تناظري مباشر | الجهد المرجعي لمحول ADC |
| ESP32 | مدخل تناظري | توهين الإشارة وحدود جهد الدخل لمحول ADC |
| STM32 | مدخل تناظري | المواصفات الخاصة بمحول ADC في المتحكم المختار |
| Raspberry Pi | محول ADC خارجي | لا يتوفر مدخل تناظري مدمج في معظم اللوحات القياسية |
12. معايرة مستشعر TDS
تُعد المعايرة خطوة أساسية عند تحويل جهد الخرج التناظري للمستشعر إلى قراءة ذات معنى لتركيز إجمالي المواد الصلبة الذائبة في الماء.
فعلى الرغم من أن الوحدة تنتج جهدًا تناظريًا مرتبطًا بقيمة TDS، فإن العلاقة بين الجهد وتركيز المواد الصلبة الذائبة يجب تحديدها باستخدام محاليل مرجعية مناسبة ذات تركيز معلوم.

ما هو المحلول المرجعي لمعايرة TDS؟
المحلول المرجعي لمعايرة TDS هو محلول يحتوي على تركيز معلوم من المواد الصلبة الذائبة.
يمكن تحضير المحاليل المرجعية باستخدام تراكيز محددة ومعروفة من الأملاح الذائبة، أو الحصول عليها في صورة محاليل قياسية جاهزة للاستخدام من مصادر تجارية متخصصة.
من أمثلة التراكيز الاسمية الشائعة:
- 100 ppm.
- 342 ppm.
- 500 ppm.
- 1000 ppm.
ينبغي اختيار المحاليل المرجعية بحيث تغطي نطاق القياس المرتبط بالتطبيق المطلوب.
ومن المهم التمييز بين محاليل معايرة TDS ومحاليل معايرة التوصيلية الكهربائية (EC). فالمحلول القياسي للتوصيلية الكهربائية تكون له قيمة محددة للتوصيلية EC، بينما يكون لمحلول TDS تركيز محدد للمواد الذائبة، وفقًا لتركيبه أو طريقة تحضيره.
المعايرة باستخدام نقطة واحدة
تعتمد المعايرة أحادية النقطة على تحديد استجابة المستشعر عند تركيز مرجعي واحد معلوم.
يمكن تنفيذ الإجراء الأساسي باتباع الخطوات التالية:
- تجهيز وعاء نظيف لوضع العينة المرجعية.
- اختيار محلول مرجعي مناسب.
- توصيل المسبار بلوحة معالجة الإشارة.
- تشغيل الوحدة باستخدام مصدر تغذية منظم ومستقر.
- شطف المسبار بالطريقة المناسبة.
- غمر المسبار في المحلول المرجعي.
- إبعاد المسبار عن جدران الوعاء.
- الانتظار حتى تستقر القراءة.
- تسجيل جهد الخرج التناظري والتركيز المرجعي للمحلول.
- تكرار القياس لتقييم مدى قابلية النتائج للتكرار.
توفر المعايرة أحادية النقطة نقطة مرجعية واحدة، لكنها لا تكفي لتحديد العلاقة الكاملة بين جهد الخرج وتركيز المواد الذائبة.
المعايرة باستخدام نقطتين
تعتمد المعايرة ثنائية النقاط على استخدام محلولين مرجعيين بتركيزين معلومين، بهدف تحديد علاقة خطية تقريبية بين استجابة المستشعر وتركيز TDS.
يمكن تنفيذ هذه المعايرة باتباع الخطوات التالية:
- اختيار محلولين مرجعيين بتركيزين مختلفين ومعلومين.
- قياس المحلول المرجعي الأول.
- تسجيل التركيز المحدد للمحلول وجهد الخرج التناظري المقابل له.
- شطف المسبار بالطريقة المناسبة.
- قياس المحلول المرجعي الثاني.
- تسجيل تركيز المحلول الثاني وجهد الخرج المقابل له.
- حساب معاملات المعايرة.
- التحقق من العلاقة الناتجة باستخدام محلول مرجعي آخر.
تكون المعايرة ثنائية النقاط مفيدة عندما تكون استجابة المستشعر خطية بدرجة كافية ضمن النطاق المحدد بين النقطتين.
ومع ذلك، لا تثبت هذه الطريقة أن الاستجابة ستظل خطية على امتداد نطاق القياس الكامل من 0 إلى 1000 ppm.
المعايرة متعددة النقاط
تستخدم المعايرة متعددة النقاط عدة محاليل مرجعية موزعة على امتداد نطاق القياس المستهدف.
ويمكن أن تساعد هذه الطريقة على اكتشاف عدد من خصائص أداء المستشعر، مثل:
- عدم الخطية في الاستجابة.
- تشبع القياس.
- انخفاض حساسية المستشعر.
- انجراف القياسات بمرور الوقت.
- وجود اختلافات بين منحنى الاستجابة المفترض ومنحنى الاستجابة الفعلي.
ينبغي التحقق من صلاحية منحنى المعايرة باستخدام عينات مرجعية لم تُستخدم في حساب المنحنى الأصلي.
احتياطات المعايرة
- استخدم أوعية نظيفة للمحاليل المرجعية.
- تجنب تلويث محاليل المعايرة.
- اشطف المسبار بين المحاليل المختلفة.
- حافظ على عمق غمر ثابت للمسبار أثناء القياس.
- أبعد المسبار عن جدران الوعاء.
- تجنب تكون فقاعات الهواء حول الأقطاب الكهربائية.
- امنح المستشعر وقتًا كافيًا حتى تستقر القراءة.
- سجّل درجة حرارة العينة أثناء المعايرة.
- لا تغمر لوحة معالجة الإشارة الإلكترونية في الماء.
13. تحويل الجهد التناظري إلى قيمة TDS
بعد إجراء المعايرة، يمكن للمتحكم الدقيق استخدام الجهد التناظري المقاس لتقدير قيمة إجمالي المواد الصلبة الذائبة (TDS).
يجب أن تستند العلاقة الرياضية المستخدمة في هذا التحويل إلى الاستجابة الفعلية للمستشعر، وليس إلى معادلة عامة غير متحقق منها.

معادلة المعايرة الخطية باستخدام نقطتين
إذا كانت استجابة المستشعر خطية بصورة تقريبية بين نقطتي المعايرة، فيمكن استخدام المعادلة التالية:
\[ T=T_1+\frac{(V-V_1)(T_2-T_1)}{V_2-V_1} \]
حيث:
- T: التركيز التقديري لإجمالي المواد الصلبة الذائبة.
- T₁: تركيز TDS في المحلول المرجعي الأول.
- T₂: تركيز TDS في المحلول المرجعي الثاني.
- V: الجهد التناظري المقاس.
- V₁: الجهد المقاس عند استخدام المحلول المرجعي الأول.
- V₂: الجهد المقاس عند استخدام المحلول المرجعي الثاني.
تصلح هذه المعادلة سواء كان الجهد يزداد أو ينخفض مع زيادة تركيز TDS، بشرط أن تكون نقاط المعايرة قد قِيست بصورة صحيحة وأن تكون استجابة المستشعر خطية بدرجة كافية ضمن النطاق المستخدم.
مثال عملي على الحساب
لنفترض أننا حصلنا على قياسات المعايرة الافتراضية التالية:
| العينة المرجعية | تركيز TDS | الجهد المقاس |
|---|---|---|
| المحلول القياسي الأول | 200 ppm | 0.50 V |
| المحلول القياسي الثاني | 800 ppm | 1.50 V |
هذه القيم توضيحية وافتراضية فقط، وليست نقاط معايرة منشورة من الشركة المصنعة للوحدة V1.0.
لنفترض الآن أن عينة مياه مجهولة أعطت جهد خرج تناظريًا مقداره 1.00 V.
بالتعويض بالقيم في المعادلة:
\[ T=200+\frac{(1.00-0.50)(800-200)}{1.50-0.50} \]
\[ T=200+\frac{0.50\times600}{1.00} \]
\[ T=200+300 \]
\[ \boxed{T=500\text{ ppm}} \]
بناءً على افتراض خطية الاستجابة في هذا المثال الافتراضي، يكون التركيز التقديري للمواد الصلبة الذائبة في العينة هو 500 ppm.
كود Arduino للمعايرة باستخدام نقطتين
يقرأ المثال البرمجي التالي إشارة خرج المستشعر، ثم يطبق معادلة المعايرة الخطية باستخدام نقطتين.
يجب استبدال القيم التوضيحية في البرنامج بقياسات المعايرة الفعلية التي يتم الحصول عليها من المستشعر.
const int TDS_PIN = A0;
const float VREF = 5.0;
const int ADC_MAX = 1023;
// Illustrative calibration values only
const float V1 = 0.50;
const float T1 = 200.0;
const float V2 = 1.50;
const float T2 = 800.0;
void setup() {
Serial.begin(9600);
}
void loop() {
const int samples = 20;
long total = 0;
for (int i = 0; i < samples; i++) {
total += analogRead(TDS_PIN);
delay(20);
}
float averageADC = total / (float)samples;
float voltage =
averageADC * VREF / ADC_MAX;
Serial.print("Voltage: ");
Serial.print(voltage, 3);
Serial.println(" V");
if (V1 == V2) {
Serial.println("Invalid calibration points");
} else if (voltage < min(V1, V2) ||
voltage > max(V1, V2)) {
Serial.println("Outside calibration range");
} else {
float tds = T1 + ((voltage - V1) * (T2 - T1))
/ (V2 - V1);
Serial.print("Estimated TDS: ");
Serial.print(tds, 1);
Serial.println(" ppm");
}
delay(1000);
}
فهم طريقة الحساب
ينفذ البرنامج العمليات التالية:
- قراءة المدخل التناظري 20 مرة.
- حساب متوسط قراءة محول ADC.
- تحويل القراءة الرقمية إلى قيمة جهد كهربائي.
- التحقق مما إذا كان الجهد يقع ضمن نطاق المعايرة المحدد.
- تطبيق معادلة الاستيفاء الخطي باستخدام نقطتي المعايرة.
- عرض التركيز التقديري لإجمالي المواد الصلبة الذائبة.
يفترض هذا المثال أن الجهد المرجعي لمحول ADC معلوم ومستقر.
للحصول على قياسات أكثر موثوقية، يُفضّل قياس الجهد المرجعي الفعلي أو تحديد خصائصه عمليًا، بدلًا من افتراض أنه يساوي تمامًا 5.000 V.
لماذا لا ينبغي استخدام معادلة عامة لتحويل الجهد إلى TDS؟
قد تختلف مستشعرات TDS عن بعضها في ترتيب الأقطاب الكهربائية، ودوائر الإثارة، وخصائص دوائر معالجة الإشارة التناظرية.
لذلك، لا يعني الحصول على الجهد نفسه من مستشعرين مختلفين بالضرورة أن تركيز TDS في العينة متساوٍ في الحالتين.
إضافة إلى ذلك، تعتمد العلاقة بين التوصيلية الكهربائية (EC) وإجمالي المواد الصلبة الذائبة على التركيب الأيوني للمياه.
ومن العوامل المهمة التي تؤثر في القياس:
- التركيب المعدني للمواد الذائبة.
- درجة حرارة العينة.
- حالة المسبار.
- تلوث الأقطاب الكهربائية.
- المحاليل المرجعية المستخدمة في المعايرة.
- استقرار مصدر التغذية الكهربائية.
وبناءً على ذلك، لا ينبغي نسخ معادلة تحويل مستخدمة مع مستشعر آخر وتطبيقها مباشرةً على هذه الوحدة دون التحقق من صلاحيتها عمليًا.
14. تأثير درجة الحرارة والتعويض الحراري في القياس
تُعد درجة الحرارة من العوامل المهمة التي تؤثر في قياسات TDS المعتمدة على التوصيلية الكهربائية.
ففي معظم المحاليل الأيونية المائية، تزداد التوصيلية الكهربائية مع ارتفاع درجة الحرارة.
وبالتالي، قد تعطي عينة المياه نفسها قراءات مختلفة للتوصيلية الكهربائية عند قياسها في درجات حرارة متفاوتة.

كيف تؤثر درجة الحرارة في التوصيلية الكهربائية؟
مع ارتفاع درجة حرارة المياه، تزداد عادةً قدرة الأيونات على الحركة داخل المحلول.
ويؤدي ذلك إلى تغير التوصيلية الكهربائية للمحلول.
في كثير من أنواع المياه الطبيعية، يُستخدم معامل حراري قريب من 2% لكل درجة مئوية كتقدير تقريبي حول درجة حرارة الغرفة.
ومع ذلك، يعتمد المعامل الفعلي على التركيب الكيميائي للعينة.
ولهذا السبب، تُعبَّر قياسات التوصيلية الكهربائية عادةً عن قيم مرجعية عند درجة حرارة 25°C.
معادلة التعويض عن درجة الحرارة
من المعادلات التقريبية الشائعة لتصحيح تأثير درجة الحرارة، بافتراض علاقة خطية ضمن النطاق الحراري المناسب، المعادلة التالية:
\[ EC_{25}=\frac{EC_T}{1+\alpha(T-25)} \]
حيث:
- EC₂₅: قيمة التوصيلية الكهربائية المصححة إلى درجة حرارة 25°C.
- ECₜ: التوصيلية الكهربائية المقاسة عند درجة حرارة العينة T.
- α: معامل درجة الحرارة لكل درجة مئوية.
- T: درجة حرارة العينة بوحدة الدرجة المئوية.
مثال عملي على الحساب
لنفترض أن لدينا القيم التالية:
- التوصيلية الكهربائية المقاسة: 1000 µS/cm.
- درجة حرارة العينة: 30°C.
- معامل درجة الحرارة: 0.02/°C.
بالتعويض في المعادلة:
\[ EC_{25}=\frac{1000}{1+0.02(30-25)} \]
\[ EC_{25}=\frac{1000}{1.10} \]
\[ \boxed{EC_{25}\approx909.1\ \mu S/cm} \]
هذا مثال توضيحي لتصحيح قيمة التوصيلية الكهربائية وفقًا لدرجة الحرارة، وليس خوارزمية تعويض حراري تم التحقق من صلاحيتها للوحدة V1.0.
إضافة مستشعر خارجي لقياس درجة الحرارة
يمكن إضافة مستشعر مستقل لقياس درجة الحرارة إلى نظام مراقبة المياه.
ومن الخيارات الممكن استخدامها:
- مستشعر الحرارة الرقمي DS18B20.
- مقاومة حرارية من نوع NTC Thermistor.
- كاشف درجة الحرارة بالمقاومة من نوع PT100.
- كاشف درجة الحرارة بالمقاومة من نوع PT1000.
يمكن للمتحكم الدقيق تسجيل درجة حرارة العينة وتطبيق معادلة تصحيح مناسبة، بشرط تحديد نموذج التعويض الحراري والتحقق من ملاءمته للقياس المطلوب.
هل تحتوي وحدة V1.0 على خاصية التعويض الحراري؟
لا تحدد صفحة المنتج الرسمية وجود مستشعر حرارة مدمج أو وظيفة تعويض حراري تلقائي داخل الوحدة.
لذلك، لا ينبغي افتراض أن الوحدة تنفذ التعويض الحراري تلقائيًا.
يوفر البرنامج التعليمي المرتبط بالمنتج مواد مرجعية إضافية حول قياس TDS اعتمادًا على التوصيلية الكهربائية، وبرمجيات التعويض عن درجة الحرارة. ومع ذلك، يجب التحقق من أي خوارزمية خارجية ومطابقتها مع المكونات الفعلية للوحدة V1.0 والتركيب الكيميائي للعينة قبل استخدامها.
15. التطبيقات العملية للوحة مستشعر TDS
يمكن دمج وحدة TDS Meter Sensor Board Module V1.0 في مجموعة متنوعة من مشروعات مراقبة المياه والتطبيقات الإلكترونية.

مراقبة مياه الشرب
يمكن استخدام الوحدة لمتابعة التغيرات في تركيز المواد الصلبة الذائبة في عينات مياه الشرب.
كما يمكن أن تساعد على رصد التغيرات التي تطرأ على تركيب المياه بمرور الوقت.
ومع ذلك، لا تستطيع قراءة TDS تحديد الملوثات الفردية أو إثبات السلامة الميكروبيولوجية للمياه.
أحواض السمك وتربية الأسماك
يمكن أن تساعد مراقبة TDS على متابعة التغيرات في تركيز المواد الأيونية الذائبة داخل مياه أحواض السمك.
ويمكن دمج الوحدة مع مستشعرات أخرى، مثل:
- مستشعرات درجة الحرارة.
- مستشعرات الأس الهيدروجيني (pH).
- مستشعرات مستوى المياه.
- مستشعرات الأكسجين الذائب.
ولا ينبغي استخدام مستشعر TDS بديلًا عن مراقبة مؤشرات جودة المياه الأخرى اللازمة للحفاظ على الكائنات المائية.
الزراعة المائية والزراعة التقليدية
تتطلب أنظمة الزراعة المائية مراقبة العناصر الغذائية الذائبة في المياه.
ويمكن لمستشعر TDS تقدير تركيز المواد الأيونية الذائبة في المحاليل المغذية.
كما يمكنه المساعدة في متابعة التغيرات التي تطرأ على تركيز المحلول المغذي بمرور الوقت.
ومع ذلك، لا يستطيع المستشعر تحديد التركيز الفردي للنيتروجين أو الفوسفور أو البوتاسيوم أو غيرها من العناصر الغذائية المحددة.
أنظمة تنقية المياه
يمكن استخدام المستشعر لمقارنة قراءات المواد الصلبة الذائبة قبل عملية الترشيح وبعدها.
فعلى سبيل المثال، يمكن لنظام مراقبة قياس المياه عند مدخل نظام التناضح العكسي (Reverse Osmosis – RO) وعند مخرجه.
وقد يوفر التغير في قيمة TDS مؤشرًا يساعد على تقييم أداء عملية الترشيح.
ومع ذلك، لا تكفي قراءة TDS وحدها لتحديد السبب الدقيق لأي تغير أو تأكيد إزالة جميع الملوثات.
حمامات السباحة وأحواض الاستجمام المائي
يمكن استخدام الوحدة لمراقبة التغيرات في تركيز المواد الأيونية الذائبة في مياه حمامات السباحة.
وينبغي استخدامها إلى جانب القياسات المناسبة للأس الهيدروجيني، وتركيز مواد التطهير، وغيرها من مؤشرات جودة المياه ذات الصلة.
معالجة المياه الصناعية
يمكن أن تساعد مراقبة TDS على متابعة التغيرات في تركيز المواد الصلبة الذائبة داخل أنظمة المياه الصناعية.
ومن التطبيقات المحتملة:
- مراقبة مياه الغلايات الصناعية.
- مراقبة مياه أبراج التبريد.
- مراقبة مياه العمليات الصناعية.
- أنظمة معالجة المياه.
أما في تطبيقات التحكم بالعمليات الصناعية، فينبغي اختيار جهاز قياس تم التحقق من أدائه، ويتمتع بدقة مناسبة، وحماية بيئية ملائمة، وإجراءات معايرة موثوقة.
المشروعات البيئية والتجارب المعملية
يمكن استخدام الوحدة في المشروعات التعليمية والتجريبية المتعلقة بالموضوعات التالية:
- قياس التوصيلية الكهربائية للمياه.
- تقدير تركيز المعادن الذائبة.
- مقارنة خصائص عينات المياه المختلفة.
- اكتساب الإشارات التناظرية وقراءتها إلكترونيًا.
- تسجيل البيانات باستخدام المتحكمات الدقيقة.
- إجراء تجارب معايرة المستشعرات.
كما تشير صفحة المنتج لدى شركة Makers Electronics إلى تطبيقات محتملة في مجالات المشروبات، والأغذية، والطب، والمختبرات. لكن ذكر هذه المجالات لا يعني أن الوحدة حاصلة على اعتماد يجيز استخدامها في الاختبارات التحليلية الخاضعة للمتطلبات التنظيمية.
16. تصميم نظام متكامل لمراقبة إجمالي المواد الصلبة الذائبة (TDS)
تزداد فائدة مستشعر TDS عند دمجه ضمن نظام متكامل لمراقبة جودة المياه.
يمكن لنظام أساسي من هذا النوع قياس جهد الخرج التناظري، وحساب قيمة تقديرية لإجمالي المواد الصلبة الذائبة، وعرض النتيجة، بالإضافة إلى تسجيل بيانات القياس.

المكونات المطلوبة
| المكوّن | الوظيفة |
|---|---|
| مسبار TDS | الكشف عن الاستجابة الكهربائية للمياه |
| لوحة معالجة الإشارة | معالجة الاستجابة القادمة من المسبار |
| Arduino أو وحدة تحكم أخرى | قراءة الخرج التناظري ومعالجة البيانات |
| مستشعر درجة الحرارة | قياس درجة حرارة العينة |
| شاشة LCD أو OLED | عرض نتائج القياس |
| مصدر تغذية منظم | توفير طاقة كهربائية مستقرة |
| وحدة تسجيل البيانات | حفظ قراءات القياس |
| غلاف حماية | حماية المكونات الإلكترونية |
| إنذار أو جرس تنبيه | الإشارة إلى تجاوز حدود القياس المحددة |
المخطط الكتلي للنظام
يمكن تمثيل نظام مراقبة مبسط بالشكل التالي:
Water Sample
|
v
TDS Probe
|
v
Signal-Conditioning Board
|
v
Analog Output
|
v
Microcontroller
/ | \
v v v
Display Temperature Sensor Data Logger
يوفر مستشعر درجة الحرارة قراءة إضافية يمكن للبرنامج الاستفادة منها عند توفر طريقة تعويض حراري مناسبة تم التحقق من صلاحيتها.
آلية عمل النظام
يعمل النظام النموذجي وفق التسلسل التالي:
- غمر المسبار في عينة المياه المراد قياسها.
- تؤثر الأيونات الذائبة في الاستجابة الكهربائية بين القطبين.
- تعمل لوحة معالجة الإشارة على معالجة الاستجابة القادمة من المسبار.
- تنتج اللوحة إشارة خرج تناظرية.
- يقرأ المتحكم الدقيق الجهد باستخدام محول ADC.
- يعالج البرنامج القراءات ويطبق عمليات الترشيح المناسبة.
- يستخدم نموذج المعايرة لتقدير قيمة TDS.
- تعرض الشاشة التركيز التقديري للمواد الصلبة الذائبة.
- تُسجل درجة الحرارة عند تضمين مستشعر مخصص لها في النظام.
- تحفظ وحدة تسجيل البيانات نتائج القياس عند توفرها.
إضافة نظام إنذار تلقائي
يمكن للمتحكم الدقيق مقارنة قيمة TDS التقديرية بحد معين يتم تحديده برمجيًا.
على سبيل المثال:
const float TDS_LIMIT = 500.0;
if (tdsValue > TDS_LIMIT) {
Serial.println("TDS threshold exceeded");
}
يجب اختيار حد الإنذار وفقًا لطبيعة التطبيق والغرض من نظام المراقبة.
ويمكن إضافة ميزات أخرى إلى النظام، مثل:
- إمكانية ضبط حدود الإنذار.
- ترشيح قراءات القياس.
- اكتشاف انقطاع المستشعر.
- فترة استقرار عند بدء التشغيل.
- تطبيق خاصية الهسترة على الإنذار لمنع تكرار تشغيله وإيقافه بسرعة عند تذبذب القراءة حول الحد المحدد.
- تسجيل بيانات القياس.
- إمكانية إيقاف الإنذار يدويًا بعد التحقق من الحالة.
ينبغي أن يشير الإنذار إلى تجاوز قيمة القياس حدًا محددًا مسبقًا في البرنامج، ولا ينبغي اعتباره حكمًا تلقائيًا بأن المياه صالحة أو غير صالحة للاستهلاك.
17. أنواع أنظمة قياس TDS والمقارنة بينها
توجد تقنيات مختلفة يمكن استخدامها لتحديد تركيز المواد الصلبة الذائبة في المياه.
ويعتمد اختيار الطريقة المناسبة على الدقة المطلوبة، والتركيب الكيميائي للعينة، ونطاق القياس، وطبيعة التطبيق.

مستشعرات TDS المعتمدة على التوصيلية الكهربائية
تعتمد هذه الأنظمة على تقدير تركيز المواد الصلبة الذائبة من خلال قياس التوصيلية الكهربائية للمياه.
المميزات:
- سرعة إجراء القياس.
- سهولة الدمج مع الدوائر الإلكترونية.
- ملاءمتها للمراقبة المستمرة.
- انخفاض تكلفة التنفيذ.
- إمكانية استخدامها مع المتحكمات الدقيقة.
القيود:
- تعتمد النتائج على معامل التحويل المستخدم.
- تؤثر درجة الحرارة في التوصيلية الكهربائية.
- لا تُقاس المواد غير الأيونية الذائبة بصورة تتناسب مع تركيزها الفعلي.
- تعتمد المعايرة على التركيب الكيميائي للعينة.
قياس TDS بطريقة التحليل الوزني
تعتمد الطريقة الوزنية على تحديد تركيز المواد الصلبة الذائبة من خلال ترشيح حجم معلوم من المياه، ثم تبخير السائل الناتج عن الترشيح، وتجفيف الرواسب المتبقية وفق ظروف محددة، وبعد ذلك قياس كتلتها.
المميزات:
- تحدد كتلة المواد المتبقية بعد التبخير والتجفيف.
- لا تعتمد على معامل تحويل من التوصيلية الكهربائية إلى TDS.
- مناسبة للتحليل المعملي.
القيود:
- تتطلب معدات وتجهيزات معملية.
- تستغرق وقتًا أطول بكثير من القياس الإلكتروني.
- تحتاج إلى تحضير دقيق للعينة.
- تعتمد النتائج على إجراءات الترشيح والتجفيف المحددة في طريقة الاختبار.
تُعد الطريقة EPA Method 160.1 مثالًا على طرق القياس الوزني للمواد المتبقية القابلة للترشيح، حيث تُجفف الرواسب عند درجة حرارة 180°C.
أجهزة قياس التوصيلية الكهربائية وTDS الصناعية
قد تجمع الأجهزة الصناعية بين قياس التوصيلية الكهربائية، والتعويض الحراري، والمعالجة الرقمية، وواجهات الاتصال المستخدمة في الأنظمة الصناعية.
وبحسب طراز الجهاز، قد تتوفر فيه بعض الخصائص التالية:
- خرج تناظري من نوع 4–20 mA.
- واجهات اتصال رقمية.
- تعويض حراري تلقائي.
- إمكانية ضبط معاملات تحويل TDS.
- معلومات تشخيصية عن حالة الجهاز.
- حماية مناسبة لظروف التشغيل الصناعية.
تختلف هذه الإمكانات بحسب طراز جهاز القياس ومواصفاته.
جدول مقارنة بين طرق القياس
| خاصية المقارنة | وحدة TDS منخفضة التكلفة | الطريقة الوزنية المعملية | جهاز EC/TDS صناعي |
|---|---|---|---|
| مبدأ القياس | التوصيلية الكهربائية | كتلة الرواسب | غالبًا التوصيلية الكهربائية |
| نوع الخرج | جهد تناظري | نتيجة معملية | تناظري أو رقمي |
| سرعة القياس | سريعة | بطيئة | سريعة |
| المعايرة | تعتمد على التطبيق | إجراء تحليلي محدد | وفقًا لمواصفات الشركة المصنعة |
| تصحيح درجة الحرارة | خارجي أو حسب التطبيق | يعتمد على إجراءات الاختبار | غالبًا متاح |
| الاستخدام المعتاد | المتحكمات الدقيقة | المعدات المعملية | أنظمة PLC والمراقبة الصناعية |
| الغرض الرئيسي | النماذج الأولية والمراقبة | التحديد المعملي للتركيز | المراقبة المستمرة للعمليات |
الفرق بين TDS والتوصيلية الكهربائية EC
يرتبط إجمالي المواد الصلبة الذائبة (TDS) بالتوصيلية الكهربائية (EC)، لكنهما يمثلان كميتين مختلفتين.
تعبر قيمة TDS عن تركيز المواد الصلبة الذائبة في الماء.
أما قيمة EC فتعبر عن قدرة المحلول على توصيل التيار الكهربائي.
يمكن لمستشعر التوصيلية الكهربائية تقدير قيمة TDS، لكنه لا يستطيع تحديد الكتلة الفعلية أو الهوية الكيميائية لكل مادة ذائبة بصورة مباشرة.
لذلك، يجب اختيار معامل التحويل بما يتناسب مع طبيعة العينة المراد قياسها.
18. المشكلات الشائعة وطرق استكشاف الأعطال وإصلاحها
قد تتأثر قياسات TDS بعدة عوامل، منها التداخل الكهربائي، وتلوث المسبار، والتوصيلات غير الصحيحة، والتغيرات في درجة الحرارة، وأخطاء المعايرة.

عدم استقرار القراءات التناظرية
الأسباب المحتملة:
- وجود تشويش كهربائي.
- عدم استقرار مصدر التغذية.
- ارتخاء موصل المسبار.
- عدم ثبات موضع المسبار أثناء القياس.
- تغير درجة حرارة العينة.
- ضعف التوصيلات الكهربائية.
الحلول المقترحة:
- استخدم مصدر تغذية منظمًا ومستقرًا.
- افحص كابل المسبار والموصلات.
- حافظ على ثبات موضع المسبار أثناء القياس.
- حافظ على درجة حرارة ثابتة للعينة قدر الإمكان.
- احسب متوسط عدة قراءات من محول ADC.
- استخدم ترشيحًا تناظريًا مناسبًا عند الحاجة.
- أبعد أسلاك المستشعر عن دوائر التبديل ذات التيارات المرتفعة.
قراءات TDS غير صحيحة أو غير متوقعة
الأسباب المحتملة:
- إجراء المعايرة بطريقة غير صحيحة.
- استخدام معامل تحويل غير مناسب من EC إلى TDS.
- اتساخ الأقطاب الكهربائية.
- استخدام قيمة غير صحيحة للجهد المرجعي لمحول ADC.
- اختلاف درجة الحرارة.
- تلوث المحلول المرجعي المستخدم في المعايرة.
- اختلاف التركيب الأيوني بين عينات المعايرة والعينات المراد اختبارها.
الحلول المقترحة:
- نظّف المسبار باستخدام طريقة مناسبة.
- أعد المعايرة باستخدام محاليل مرجعية مناسبة.
- تحقق من جهد الخرج التناظري باستخدام جهاز قياس متعدد (Multimeter).
- تحقق من الجهد المرجعي لمحول ADC.
- تأكد من درجة حرارة العينة.
- قارن النتائج بجهاز مرجعي مناسب للقياس.
عدم وجود إشارة خرج تناظرية
الأسباب المحتملة:
- عدم وصول جهد التغذية إلى اللوحة.
- عكس قطبية مصدر التغذية.
- تركيب الموصل في اتجاه غير صحيح.
- تلف كابل المسبار.
- وجود عطل في لوحة معالجة الإشارة.
الحلول المقترحة:
- تحقق من جهد التغذية الواصل إلى اللوحة.
- تأكد من صحة توصيل الأرضي.
- افحص موصل المسبار.
- قس جهد الخرج التناظري بالنسبة إلى الأرضي.
- قارن قيمة الخرج بالنطاق المحدد في المواصفات.
- افحص اللوحة بحثًا عن أي تلف ظاهر.
تغير القراءات عند تحريك المسبار
الأسباب المحتملة:
- عدم ثبات عمق غمر الأقطاب في الماء.
- تغير المسافة بين المسبار وجدران الوعاء.
- وجود فقاعات هواء حول الأقطاب.
- حدوث تغيرات في التركيب الموضعي للعينة.
الحلول المقترحة:
- حافظ على عمق غمر ثابت للمسبار.
- أبعد المسبار عن جدران الوعاء.
- تجنب تكون فقاعات الهواء حول الأقطاب.
- اخلط العينة بطريقة متجانسة وثابتة.
- انتظر حتى تستقر القراءة قبل تسجيلها.
وتحذر الشركة المصنعة تحديدًا من وضع المسبار بالقرب الشديد من حافة الوعاء، لأن ذلك قد يؤثر في نتيجة القياس.
قراءات غير صحيحة عند استخدام ESP32
الأسباب المحتملة:
- ضبط توهين محول ADC بطريقة غير صحيحة.
- تفسير جهد محول ADC بصورة غير صحيحة.
- عدم وجود مرجع أرضي كهربائي مشترك ومستقر.
- وجود تشويش كهربائي.
- عدم كفاية المعايرة.
الحلول المقترحة:
- تحقق من طراز ESP32 وحدود مدخل ADC الخاصة به.
- تحقق من قيمة الجهد التناظري الفعلية.
- راجع إعدادات محول ADC.
- استخدم أرضيًا كهربائيًا مشتركًا بين المستشعر ووحدة التحكم.
- عاير نظام القياس بالكامل بعد التأكد من صحة التوصيلات والإعدادات.
19. الصيانة والقيود واعتبارات السلامة
يساعد التعامل الصحيح مع المسبار وإجراء الصيانة المناسبة على الحفاظ على حالته وتحسين ثبات نتائج القياس.

صيانة المسبار
تشمل الممارسات الموصى بها ما يلي:
- اشطف المسبار بعد الاستخدام عند الحاجة.
- أزل الترسبات باستخدام طريقة تنظيف تتوافق مع المواد المصنوع منها القطبان.
- تجنب خدش الأقطاب الكهربائية أو إتلافها.
- لا تستخدم مواد تنظيف كاشطة.
- افحص غلاف المسبار للتأكد من عدم وجود تشققات أو تلف.
- تحقق من خلو الكابل من القطوع أو علامات التلف والتآكل.
- تجنب شد الكابل أو لفه بصورة قد تؤدي إلى تلفه.
- اتبع تعليمات التنظيف الصادرة عن الشركة المصنعة.
يمكن أن يؤدي تلوث الأقطاب الكهربائية أو تراكم الرواسب عليها إلى تغيير الاستجابة الكهربائية، مما يتسبب في انحراف نتائج القياس بمرور الوقت.
موضع المسبار وعمق غمره
ينبغي وضع المسبار في موضع ثابت ومتكرر عند إجراء القياسات.
تجنب وضعه بالقرب الشديد من جدران الوعاء، لأن الشكل الهندسي للمساحة المحيطة بالمسبار قد يؤثر في نتيجة القياس.
وتشمل الاحتياطات الإضافية ما يلي:
- الحفاظ على عمق غمر ثابت للمسبار.
- تجنب تكون فقاعات الهواء حول الأقطاب الكهربائية.
- إبعاد المسبار عن قاع الوعاء.
- استخدام طريقة القياس نفسها أثناء المعايرة والاختبار.
- الانتظار حتى تستقر القراءة قبل تسجيلها.
حدود مقاومة الماء
توضح الشركة المصنعة أن رأس المسبار والكابل مقاومان للماء.
ومع ذلك، فإن موصل التوصيل ولوحة معالجة الإشارة الإلكترونية غير مقاومين للماء.
لذلك، يجب مراعاة ما يلي:
- غمر الجزء المخصص من المسبار فقط في الماء.
- الحفاظ على جفاف اللوحة الإلكترونية.
- حماية الموصلات من الماء والتكاثف.
- عدم غمر لوحة الدوائر المطبوعة الخاصة بمعالجة الإشارة في الماء.
- إبعاد وحدة التحكم والشاشة عن وعاء العينة.
لا تحدد صفحة المنتج تصنيفًا رسميًا لدرجة الحماية من دخول الماء والغبار (IP Rating). لذلك، لا ينبغي افتراض أن المسبار مناسب للتركيب الدائم تحت الماء أو للاستخدام في جميع البيئات الكيميائية.
حدود درجة الحرارة
تحدد الشركة المصنعة أن المسبار يجب ألا يُستخدم في مياه تزيد درجة حرارتها على 55°C.
قد يؤدي التشغيل خارج هذا الحد إلى إتلاف المسبار أو التأثير في أدائه.
كما يُنصح بتسجيل درجة الحرارة عند الحاجة إلى إجراء مقارنات دقيقة بين قياسات التوصيلية الكهربائية.
قيود القياس
تعتمد هذه الوحدة على تقدير تركيز المواد الصلبة الذائبة من خلال الاستجابة الكهربائية المرتبطة بالتوصيلية.
لكنها لا تقيس بصورة مباشرة ما يلي:
- المعادن الذائبة كلٌّ على حدة.
- الملوثات الكيميائية المحددة.
- الجسيمات العالقة.
- العكارة.
- الأس الهيدروجيني (pH).
- الأكسجين الذائب.
- التلوث الميكروبيولوجي.
- التركيزات الفردية للعناصر الغذائية.
عند الحاجة إلى تقييم هذه المؤشرات، يجب استخدام مستشعرات إضافية وطرق تحليل معملية مناسبة.
السلامة الكهربائية
- استخدم مصدر تغذية منظمًا ضمن النطاق المحدد من 3.3–5.5 V.
- تحقق من قطبية مصدر التغذية قبل تشغيل اللوحة.
- تجنب حدوث دوائر قصر كهربائية.
- حافظ على جفاف المكونات الإلكترونية.
- تحقق من توافق جهد الإشارة مع مدخل ADC في وحدة التحكم.
- تجنب وجود موصلات كهربائية مكشوفة بالقرب من المياه.
- استخدم عزلًا كهربائيًا مناسبًا عند التوصيل بمعدات تعمل بجهود أعلى.
- افصل مصدر الطاقة قبل تغيير التوصيلات الكهربائية.
قيد مهم عند اختيار التطبيق
لا ينبغي اعتبار وحدة TDS منخفضة التكلفة والمعتمدة على قياس التوصيلية الكهربائية بديلًا تلقائيًا عن أجهزة القياس المعملية.
عند استخدامها للتحقق من مطابقة مياه الشرب للمواصفات، أو في التحاليل الطبية، أو الاختبارات الخاضعة للمتطلبات التنظيمية، أو التحكم في العمليات الصناعية، يجب استخدام جهاز قياس وطريقة اختبار تم التحقق من صلاحيتهما، وبما يتناسب مع مستوى الدقة المطلوب.
20. الأسئلة الشائعة (FAQs)

ما هي وحدة مستشعر قياس TDS Meter Sensor Board Module V1.0؟
هي وحدة استشعار إلكترونية تستخدم مسبارًا مزودًا بقطبين كهربائيين ودائرة لمعالجة الإشارة، بهدف تقدير تركيز إجمالي المواد الصلبة الذائبة في الماء اعتمادًا على التوصيلية الكهربائية.
ما جهد التشغيل لمستشعر TDS من Makers Electronics؟
تحدد صفحة المنتج الرسمية نطاق جهد الدخل من 3.3 إلى 5.5 V DC.
ما نطاق جهد الخرج التناظري؟
يتراوح جهد الخرج التناظري المحدد بين 0 و2.3 V DC.
ما أقصى تيار تشغيل للمستشعر؟
تحدد الشركة المصنعة تيار التشغيل بقيمة تتراوح بين 3–6 mA.
ما نطاق قياس TDS؟
نطاق القياس المحدد من الشركة المصنعة هو 0–1000 ppm.
ما دقة القياس؟
تبلغ الدقة المحددة ±10% من المدى الكامل عند درجة حرارة 25°C.
وبالنسبة إلى نطاق قياس يبلغ 1000 ppm عند المدى الكامل، فإن ذلك يعادل سماحية معلنة قدرها ±100 ppm.
هل يمكن توصيل مستشعر TDS بلوحة Arduino Uno؟
نعم. يمكن توصيل خرجه التناظري بأحد المداخل التناظرية في لوحة Arduino Uno، بشرط توصيل مصدر التغذية بصورة صحيحة والتحقق من سلامة التوصيلات الكهربائية.
هل يمكن استخدام المستشعر مع ESP32؟
نعم. يبلغ أقصى جهد خرج محدد للمستشعر 2.3 V، ولكن يجب التحقق من حدود جهد مدخل ADC وإعدادات توهين الإشارة في طراز ESP32 المستخدم.
هل يقيس المستشعر قيمة TDS مباشرةً؟
لا. يقيس المستشعر استجابة كهربائية مرتبطة بالتوصيلية، ثم تتم معالجة هذه الاستجابة لتقدير تركيز إجمالي المواد الصلبة الذائبة.
هل يحتوي المستشعر على خرج تناظري؟
نعم. تحدد صفحة المنتج خرجًا تناظريًا يتراوح بين 0 و2.3 V.
ما الفرق بين TDS والتوصيلية الكهربائية؟
تقيس التوصيلية الكهربائية قدرة الماء على توصيل التيار الكهربائي نتيجة وجود الأيونات الذائبة فيه.
أما TDS فيعبّر عن تركيز المواد الذائبة.
يمكن استخدام التوصيلية الكهربائية لتقدير قيمة TDS، لكن عملية التحويل تعتمد على التركيب الكيميائي للمياه.
هل يحتوي المستشعر على خاصية التعويض الحراري التلقائي؟
لا تحدد صفحة المنتج الرسمية وجود مستشعر حرارة مدمج أو وظيفة تعويض حراري تلقائي.
ويمكن إضافة مستشعر منفصل لدرجة الحرارة إلى نظام المراقبة.
هل يمكن استخدام المستشعر في الزراعة المائية؟
نعم. يمكن استخدامه لمتابعة التغيرات في تركيز الأيونات الذائبة داخل المحاليل المغذية المستخدمة في أنظمة الزراعة المائية.
ومع ذلك، لا يستطيع المستشعر تحديد تركيز كل عنصر غذائي بصورة منفصلة.
هل يمكن استخدام المستشعر لمراقبة مياه الشرب؟
نعم، يمكن استخدامه في المراقبة الأولية لقيمة TDS وفي المشروعات التعليمية.
لكن قراءة TDS وحدها لا تكفي لإثبات أن مياه الشرب آمنة أو خالية من الملوثات والكائنات الدقيقة.
ما الفرق بين TDS والعكارة؟
تقدّر قيمة TDS تركيز المواد الذائبة اعتمادًا على التوصيلية الكهربائية.
أما العكارة، فتقيس التأثير البصري الناتج عن وجود الجسيمات العالقة في الماء.
وبالتالي، فإن كلًا منهما يقيس خاصية مختلفة من خصائص جودة المياه.
كم مرة يجب معايرة المستشعر؟
يعتمد معدل تكرار المعايرة على طبيعة التطبيق، وثبات القياسات، وتركيب العينة، ومستوى الدقة المطلوب.
ينبغي التحقق من القياسات المهمة باستخدام محاليل مرجعية مناسبة، وعلى فترات زمنية محددة وموثقة.
هل المستشعر بالكامل مقاوم للماء؟
لا. توضح الشركة المصنعة أن رأس المسبار والكابل مقاومان للماء، بينما موصل التوصيل ولوحة معالجة الإشارة غير مقاومين للماء.
هل يمكن استخدام المسبار في المياه الساخنة؟
تحدد الشركة المصنعة أن المسبار يجب ألا يُستخدم في مياه تزيد درجة حرارتها على 55°C.
ما الفرق بين ppm وmg/L؟
في المحاليل المائية المخففة نسبيًا، يُتعامل عادةً مع وحدتي ppm وmg/L على أنهما متقاربتان تقريبًا.
ومع ذلك، تعتمد العلاقة بينهما على كثافة المحلول وظروف القياس.
هل تعني قراءة TDS المرتفعة دائمًا أن المياه غير آمنة؟
لا. لا تحدد قيمة TDS هوية الملوثات الفردية أو الكائنات الدقيقة الموجودة في الماء.
ويتطلب تقييم سلامة المياه إجراء اختبارات كيميائية وفيزيائية وميكروبيولوجية مناسبة.
21. الخاتمة
تُعد وحدة TDS Meter Sensor Board Module V1.0 حلًا عمليًا يعتمد على قياس التوصيلية الكهربائية لتقدير تركيز المواد الصلبة الذائبة في المياه.
يستجيب المسبار المزود بقطبين كهربائيين للخصائص الكهربائية للعينة، بينما تتولى لوحة معالجة الإشارة تحليل هذه الاستجابة وإنتاج جهد تناظري يمكن قياسه باستخدام المتحكمات الدقيقة.

بفضل نطاق جهد التشغيل الذي يتراوح بين 3.3–5.5 V، وجهد الخرج التناظري الذي يتراوح بين 0–2.3 V، واستهلاك التيار المنخفض، والتوافق مع منصات المتحكمات الدقيقة الشائعة، توفر هذه الوحدة أساسًا مناسبًا لمشروعات الإلكترونيات المتعلقة بمراقبة جودة المياه، والزراعة المائية، وأحواض السمك، وتجارب أنظمة الترشيح.
كما يتيح المخطط الإلكتروني المنشور فرصة للتعرف على دوائر المذبذبات، ومضخمات العمليات، وتنظيم الجهد، وتحويل الجهد باستخدام مضخة الشحن، وتهيئة الإشارات التناظرية.
ومع ذلك، فإن الحصول على قياسات ذات معنى لقيمة TDS يتطلب إجراء معايرة مناسبة، والتعامل مع العينات بطريقة ثابتة، ومراعاة تأثير درجة الحرارة، والتحقق من التوافق الكهربائي بين المستشعر ووحدة التحكم.
ومن المهم أيضًا إدراك أن قياسات TDS المعتمدة على التوصيلية الكهربائية هي قيم تقديرية، وتعتمد دقتها على التركيب الكيميائي للعينة وعلاقة التحويل المستخدمة.
أما في القياسات المعملية الموثوقة، أو التحقق من مطابقة مياه الشرب للمواصفات، أو التطبيقات الصناعية، فينبغي استخدام أجهزة قياس تم التحقق من صلاحيتها وطرق تحليل مناسبة لمتطلبات القياس.





Leave a comment
You must be logged in to post a comment.