ESP8266 with TDS Sensor or EC Sensor or Electrical Conductivity Sensor for Water Quality Monitoring
Vložit
- čas přidán 3. 12. 2022
- Altium Designer:
www.altium.com/yt/electronicl...
Altium 365:
www.altium.com/altium-365
Octopart, components search engine:
octopart.com/
Download Circuit diagram and programming:
www.electroniclinic.com/tds-s...
Subscribe to my New CZcams Channel, if you want to watch my videos in Hindi/Urdu
/ @letsgetstartedd
DFrobot TDS meter official product page:
www.dfrobot.com/product-1662....
Related Videos:
Blynk V2.0 with ESP32:
• Blynk 2.0 Getting Star...
Blynk V2.0 with ESP8266 Nodemcu:
• Blynk 2.0 and ESP8266 ...
Support me on Patreon and get access to hundreds of projects:
/ electroniclinic
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
amzn.to/3EL2VY1
Nodemcu ESP8266 WiFi module
amzn.to/3AsMpJN
DS18B20 waterproof temperature sensor
amzn.to/3tP0dKB
SSD1306 Oled Display Module
amzn.to/3TSP7yT
Other must-have Tools and Components:
Arduino Uno, Nano, Mega, Micro "All types of Arduino Boards":
amzn.to/3fk5OTi
Top Arduino Sensors:
amzn.to/3vZbnfM
Super Starter kit for Beginners
amzn.to/3cq56C5
Top Oscilloscopes
amzn.to/3ctF3d8
Variable Supply:
amzn.to/2PEAqE7
Digital Multimeter:
amzn.to/2QGRPg1
Top Soldering iron kits: "best"
amzn.to/39nqDtb
Top Portable drill machines:
amzn.to/3suQMh7
Jumper Wires:
amzn.to/2NYPEDA
3D printers:
amzn.to/3ruG1dt
CNC Machines:
amzn.to/3cuZWVv
Electronics Accessories:
amzn.to/3sueV7z
Hardware Tools:
amzn.to/3m9UhaN
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:
www.electroniclinic.com/
Programming Digest:
programmingdigest.com/
Follow me on Instagram:
/ electroniclinic
Follow my Facebook Page Electronic Clinic:
web. profile.php?...
Follow my Facebook Group, Arduino Projects:
/ 190031841821771
Email:
stu_engineering@yahoo.com
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 - Věda a technologie
Excellent project
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??
hi did you measure the tds and ec values from the same ds sensor ?
What software you use for drawing your circuit? Fritzing?
What do you use in creating the series scheme??
Because I think the formula for temperature coefficient factor is : Changes of EC between two temperature / (EC1(EC value at temperature T1)*(T2-T1))
What is the max ppm value of the tds sensor?
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) = fFinalResult(current)/(1.0+0.02*(fTP-25.0));
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
great project. may I know what is the code for the programming
What is the largest ppm the sensor can measure?
where did the constant value (133.42, 255.86 and 857.39) come from?
Great project. What about adding sensors for measuring the acidity of the water and the chlorine content ?
It's a nice idea. I will add these sensors too.
@@ElectroniClinic can you do a video of the adding pH sensor to this project including the code and schematic diagram. it will be really useful for everyone watching to edit the previous code and the schematic diagram
@@muhdzahid6205 I have done it check playlist. I have made several videos on pH sensor
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?
This is the main issue, these are need to be cleaned and re-calibrated. The expensive ones work for months.
@@ElectroniClinic Could you tell me which are the expensive ones you mention?
@@ElectroniClinic hoe to calibrate sir
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;
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;
Is this formula correct? float temperatureCoefficient = 1.0 + 0.02 * (sensor::waterTemp - 25.0); // temperature compensation formula: fFinalResult(25^C) = fFinalResult(current)/(1.0+0.02*(fTP-25.0));
Baiya code for tds
dear, code is available on website. Check link in the description.