ESP8266 with TDS Sensor or EC Sensor or Electrical Conductivity Sensor for Water Quality Monitoring

preview_player
Показать описание
Altium Designer:

Altium 365:

Octopart, components search engine:

Download Circuit diagram and programming:

Subscribe to my New YouTube Channel, if you want to watch my videos in Hindi/Urdu

DFrobot TDS meter official product page:

Related Videos:
Blynk V2.0 with ESP32:

Blynk V2.0 with ESP8266 Nodemcu:

Support me on Patreon and get access to hundreds of projects:

Project Description:
********************
I have made several videos on the DFRobot TDS or EC Sensor or Electrical Conductivity Sensor. I have used it with Arduino for water quality monitoring and I explained in detail what is TDS or total dissolved solids and I also explained what is EC or Electrical Conductivity, and how to calculate the TDS and EC values.

I have also used the same TDS or EC sensor along with a pH sensor and DS18B20 Waterproof digital temperature sensor for building a Hydroponics system.

I have also used the same TDS sensor in an IoT based water quality monitoring system using ESP32 WiFi + Bluetooth module and the Blynk application.

Now, you might be thinking, if I have already used this sensor in some basic and advanced-level projects then why am I making this video? Well there are some reasons

1. I have never used this TDS sensor with ESP8266. And moreover, lots of guys have been asking me if they can use this sensor with the Nodemcu ESP8266 instead of using ESP32. So, today I will be using Nodemcu ESP8266 WiFi module.
2. The 2nd reason I am making this video is that the older version of the Blynk or Blynk legacy is now closed for new user registrations and its going to be completely shutdown on December 31, 2022 and you will no longer be able to use the older version of the Blynk application. So, in this video, I will be using the new Blynk 2.0. If you are a beginner and you have never used the Blynk application then I highly recommend you should watch my getting started video on the new Blynk 2.0. I will add a link in the description.
3. Previously, I used 16x2 LCD while this time I will be using this I2C supported SSD1306 Oled display Module.

Anyway, after watching this video, you will be able to use your EC or TDS sensor with the Nodemcu ESP8266 WiFi module along with the DS18b20 waterproof temperature sensor and the new Blynk V2.0.

********************

Amazon Purchase links:
*****************
DFRobot Gravity TDS Sensor

Nodemcu ESP8266 WiFi module

DS18B20 waterproof temperature sensor

SSD1306 Oled Display Module

Other must-have Tools and Components:

Arduino Uno, Nano, Mega, Micro "All types of Arduino Boards":

Top Arduino Sensors:

Super Starter kit for Beginners

Top Oscilloscopes

Variable Supply:

Digital Multimeter:

Top Soldering iron kits: "best"

Top Portable drill machines:

Jumper Wires:

3D printers:

CNC Machines:

Electronics Accessories:

Hardware Tools:

DISCLAIMER: This video and description contain affiliate links, which means that if you click on one of the product links, I will receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for your support!
****************

For more Projects and tutorials visit my Websites

Electronic Clinic:

Programming Digest:

Follow me on Instagram:

Follow my Facebook Page Electronic Clinic:

Follow my Facebook Group, Arduino Projects:

Email:

About the Electronic Clinic:
Electronic Clinic helps the students and other professionals to learn electronics, designing, and programming. Electronic Clinic has tutorials on Arduino, Arduino Nano, Raspberry PI, image processing, gsm based projects, Bluetooth based projects, esp8266 projects, Nodemcu projects, robotics, desktop application designing and programming, PLC, SCADA, RC Planes, Electronics, Power Generation, HMI, and much more. Check my Playlists.

#esp8266project #TDSorEC #altiumdesigner
Рекомендации по теме
Комментарии
Автор

How are you getting more than 1000ppm? The sensor is specified at max 1000ppm or did i miss there something?

HummelBuds
Автор

What do you use in creating the series scheme??

siskahandayani
Автор

hi did you measure the tds and ec values from the same ds sensor ?

abdelrazekshamma
Автор

I don't get it. Do you need two different sensors for TDS and EC?

edfx
Автор

can I calculate ppm in the range of 1200 - 1800 using this tds sensor?? if not, what sensor should I use to calculate the ppm with that range??

aldiprasetyo
Автор

What is the largest ppm the sensor can measure?

guitarquynhon
Автор

How did you manage to raise the sensor range more than 1000ppm??

harazembounhar
Автор

What software you use for drawing your circuit? Fritzing?

dj_pop
Автор

What is the max ppm value of the tds sensor?

ardhyocha
Автор

Excellent work, I would like to know if you performed the tests with the probe constantly submerged in the liquid. I have carried out some tests with the "TDS meter v1.0" module, with the probe constantly submerged in the liquid, and after a period of time, the values begin to drop, after which it begins to send inconsistent values. To get correct measurements again, you have to wash the probe in distilled water and clean it. Is it possible that the module I have is defective?

jesusmanuelllaiquiflorez
Автор

Great project. What about adding sensors for measuring the acidity of the water and the chlorine content ?

PhG
Автор

great project. may I know what is the code for the programming

theriverkid
Автор

Because I think the formula for temperature coefficient factor is : Changes of EC between two temperature / (EC1(EC value at temperature T1)*(T2-T1))

theriverkid
Автор

where did the constant value (133.42, 255.86 and 857.39) come from?

theriverkid
Автор

Electrical Conductivity (EC) and Total Dissolved Solids (TDS) are related but not the same thing. EC measures the ability of a solution to conduct electricity, primarily due to the presence of ions, while TDS represents the total concentration of all inorganic and organic substances in a liquid, typically measured in parts per million (ppm). Then why use( pin::tds_sensor ) in the coding: float rawEc = analogRead(pin::tds_sensor) * device::aref / 1024.0;

theriverkid
Автор

in this part of the code i change 1024 to 4095 and used it on esp32 what else shoud i change in the code in formula inorder for me to have a more accurate reading can anyone please help?

float rawEc = analogRead(pin::tds_sensor) * device::aref / 1024.0; // read the analog value more stable by the median filtering algorithm, and convert to voltage value
float temperatureCoefficient = 1.0 + 0.02 * (sensor::waterTemp - 25.0); // temperature compensation formula: fFinalResult(25^C) =
sensor::ec = (rawEc / temperatureCoefficient) * sensor::ecCalibration; // temperature and calibration compensation
sensor::tds = (133.42 * pow(sensor::ec, 3) - 255.86 * sensor::ec * sensor::ec + 857.39 * sensor::ec) * 0.5; //convert voltage value to tds value

jonasnazareno
Автор

where did this equation come from? sensor::tds = (133.42 * pow(sensor::ec, 3) - 255.86 * sensor::ec * sensor::ec + 857.39 * sensor::ec) * 0.5;

theriverkid
Автор

Is this formula correct? float temperatureCoefficient = 1.0 + 0.02 * (sensor::waterTemp - 25.0); // temperature compensation formula: fFinalResult(25^C) =

theriverkid