Course Content
IoT Engineering Course using ESP32 with 12 Real-World Projects

πŸ’§ Introduction to TDS Sensor

A TDS Sensor (Total Dissolved Solids Sensor) is an electronic sensor used to measure the amount of dissolved substances in water.

These dissolved substances may include:

  • Salts

  • Minerals

  • Metals

  • Organic matter

  • Impurities

The sensor measures water purity and gives the result in:

PPM (Parts Per Million)


πŸ”¬ What is TDS?

TDS stands for:

Total Dissolved Solids

It represents the total concentration of dissolved particles in water.

Example:
If water contains 200 mg of dissolved solids in 1 liter of water,
then TDS = 200 ppm.


πŸ“Š TDS Water Quality Classification

TDS Value (PPM) Water Quality Usage
0 – 50 Very Pure RO / Distilled
50 – 150 Excellent Drinking
150 – 300 Good Drinking
300 – 500 Fair Acceptable
500 – 1000 Poor Not recommended
1000+ Unsafe Harmful

WHO recommended drinking water:
βœ” Below 300 ppm


βš™ Working Principle of TDS Sensor

https://m.media-amazon.com/images/I/51TxSRqbv3L._AC_UF1000%2C1000_QL80_.jpgΒ  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  https://cdn.globalso.com/chinatwinno/Online-Waterproof-Digital-RS485-Nitrate-Nitrogen-Sensor-NO3-N-Chloride-Ion-Compensation-21.jpg
https://www.researchgate.net/publication/361693735/figure/fig4/AS%3A11431281093243105%401667130400534/Block-diagram-of-the-TDS-signal-conditioning-circuit.png

TDS sensor works on the principle of:

Electrical Conductivity

Explanation:

1️⃣ Pure water conducts very little electricity
2️⃣ Dissolved salts and minerals increase conductivity
3️⃣ More dissolved solids β†’ More electrical conductivity
4️⃣ Sensor measures conductivity
5️⃣ Converts it into voltage
6️⃣ Microcontroller converts voltage into PPM value


πŸ”Œ Parts of Analog TDS Sensor Module

Most analog TDS modules consist of:

πŸ”Ή 1️⃣ TDS Probe

  • Two electrodes

  • Placed in water

  • Measures conductivity

πŸ”Ή 2️⃣ Signal Conditioning Board

  • Amplifies signal

  • Converts conductivity to analog voltage

  • Provides stable output


πŸ“Œ Pin Configuration

Pin Function
VCC Power (3.3V or 5V)
GND Ground
AO Analog Output

AO gives voltage proportional to TDS value.


🧠 How ESP32 Uses TDS Sensor

1️⃣ ESP32 reads analog voltage (0–3.3V)
2️⃣ Converts ADC value (0–4095)
3️⃣ Applies calibration formula
4️⃣ Calculates TDS value in PPM
5️⃣ Displays on Serial / IoT Dashboard


πŸ“ Basic TDS Calculation Formula

Typical formula used:

Β 
Β 
Voltage = ADC_Value Γ— (3.3 / 4095)

TDS = (133.42 Γ— VΒ³ – 255.86 Γ— VΒ² + 857.39 Γ— V) Γ— 0.5
Β 

Where:
V = Sensor output voltage

This formula converts voltage to TDS (ppm).


🌍 Applications of TDS Sensor

  • Drinking water monitoring

  • RO filter monitoring

  • Water purification plants

  • Aquarium water monitoring

  • Fish farming

  • River water testing

  • Smart city water systems


βš– Advantages of TDS Sensor

βœ” Easy to use
βœ” Low cost
βœ” Analog output
βœ” Compatible with ESP32
βœ” Real-time measurement


⚠ Limitations of TDS Sensor

⚠ Does not identify specific contaminants
⚠ Temperature affects reading
⚠ Needs calibration
⚠ Cannot detect bacteria

TDS measures quantity of dissolved solids,
not the type of impurity.


🎯 What Students Will Learn

After this lesson, students will understand:

  • What TDS means

  • How water purity is measured

  • Conductivity concept

  • Voltage to PPM conversion

  • Environmental monitoring systems


πŸ“Œ Lesson Summary

A TDS Sensor measures the total dissolved solids in water by detecting electrical conductivity.

Higher dissolved solids β†’ Higher conductivity β†’ Higher PPM value.

It is widely used in:

  • Water quality monitoring

  • RO plants

  • Environmental IoT systems

This sensor forms the foundation of our:

πŸ’§ Smart Water Quality Monitoring System (Module 8)

Scroll to Top