TDS sensor based Safe Water Quality Meter with Mew Blynk2.0
Vložit
- čas přidán 14. 10. 2021
- In this video, we will show you how we can make a TDS Water Monitor System for Safe drinking water with Blynk2.0 IoT Cloud. All the related material for this video available at the below video description.
Key Moments of this Video:
0:55 - List of components for TDS water meter
1:05 - Circuit diagram TDS water meter
2:34 - Blynk2.0 cloud/ Blynk.cloud
2:47 - how to create new template in blynk2.0
3:37 - How to add virtual pins in Datastream blynk2.0
5:00 - how to add label in Web dashboard blynk 2.0
5:54 - Programming code for TDS Sensor blynk2.0/ download
6:28 - Program explanation of TDS sensor
6:39 - Blynk2.0 template ID Device Name / how to replace
10:15 - How to add blynk2.0 library to arduino IDE
10:52 - How to add NodeMCU board to Arduino IDE
11:30 - blynk2.0 mobile app download and configure
12:12 - How to add new device to blynk IoT mobile app
12:32 - what to do if blynk app didn’t find new device NodeMCU
13:25 - how to configure widgets in blynk 2.0
14:39 - hardware connection with TDS sensor and DS18B20
15:43 - Live testing of TDS Sensor
16:10 - TDS sensor data to blynk 2.0
For this project, we use following components -
🟢 NuttyFi Wifi: www.nuttyengineer.com/product...
🟢 NodeMCU Module: www.electronicscomp.com/nodem...
🟢 TDS Sensor: www.amazon.in/xcluma-Meter-V1...
🟢 DS18B20 Waterproof water temperature sensor : www.electronicscomp.com/ds18b...
🟢 connecting wires: robu.in/product/10-cm-40-pin-...
🟢 Breadboard: www.amazon.in/Robo-India-MB-1...
Important Links:
Github Link for Programming Code: github.com/itsbhupendrasingh/...
Google Drive link for Programming code (NodeMCU ESP8266): drive.google.com/file/d/1LySt...
Google Drive link for Programming code (ESP32): drive.google.com/file/d/1RhCT...
How to install wifi board ESPxx series to Arduino IDE: www.nuttyengineer.com/nuttyfi...
Blynk 2.0 Library: drive.google.com/file/d/1dzvt...
Blynk cloud server: blynk.cloud/
Proteus Software: www.labcenter.com/downloads/
Arduino IDE Software: www.arduino.cc/en/software
Atmel AVR Studio: www.microchip.com/mplab/avr-s...
NuttyFi Wifi Development board: www.nuttyengineer.com/product...
Link to download winzip: www.winzip.com/en/download/wi...
Link to download WinRAR: www.win-rar.com/download.html...
Contact link for Nutty Engineer Company: www.nuttyengineer.com/contact...
Contact link for SME: www.smedehradun.com/contact/
Our Other Video on NodeMCU ESP8266 & ESP32 boards:
Stay tuned with our channel for more videos at
/ smedehradun
How to start with Arduino IoT cloud ESP32 & NodeMCU board DIY- • How to Start with Ardu...
How to start your first project with Blynk 2.0- with Web & Mobile Dashboard- LED control: • How to Start with New ...
Home Automation with Blynk 2.0: • Home Automation using ...
Home Automation with manual control: • Home Automation using ...
DHT11 sensor interfacing with blynk2.0: • DHT11 Sensor Data to N...
Smart Dustbin with Blynk2.0 - ESP32 & NodeMCU: • Smart Dustbin with New...
For any query, you can comment on comment box below.
Join us at Social Platform:
Twitter: / itsbhupendra
LinkedIn: / schematics-micro-elect...
Facebook: / schematicslab
Instagram: / itsbhupendrasingh
Blog: schematicslab.blogspot.com/
Website: www.smedehradun.com
#blynk2 #nuttyfi #esp8266 #TDS #DS18b20 #innovation #smedehradun
#newblynk #esp32 #nodemcu #water #cleanwater #trending - Věda a technologie
Thank you so much brother, very nice video
Welcome @Syed Danish
hello guys,
if anyone want to add Gauge or Graph in the blynk for any analog or float data, then follow below instructions:
To add Graphical chart in blynk,then you can select the superchart. For that, you need to go to blynk mobile dahsboard, then go to the blynk widget by clicking on + sign. scroll below and you will get the super chart. click on that. it will be added to your template dashboard. now click on it and in the property, you will get the datastream. we can add only 1 chart on free version. click on the sign that is lookalike music visual adjuster. once clicked, you will get the option to select datastream. select the virtual pin of
tds value and its done. back to dashboard and you can get your values on super chart.
Same process, you can follow for the Gauge.
Hi. What if i use 5V instead of 3.3V? What will be the other things should I change on the code?
But sensor will work with 5V
Hello Sir, can i connect pH sensor and soil moisture sensor to A0 pin at nodemcu? I mean 2 sensors using the same pin which is A0, can i?
You can’t directly read 2 sensor in A0 pin. So, You need to add multiplexer like CD4051 with NodeMCU so that you can read multiple analog sensor on A0 pin.
Hello sir Good day I'm done with my connection using NodeMCU. In your circuit there is a resistor.. Do I need to use resistor also using NodeMCU in replacement to NuttyFi? Thanks for your response
To u can use NodeMCU in the place of NuttyFi.
video not available in description for:
How to install wifi board ESPxx series to Arduino IDE,Sir.
Video is not available for Thai but web tutorials are available here www.nuttyengineer.com/knowledge-blog/nuttyfi-iot-board-in-arduino-ide/
Sir I brought a tds sensor from xcluma. But after placing it in brine solution, it is showing a value of 0ppm. Sir what should I do and is there any way to calibrate it. If so please help me, I have mini project tomorrow
Hi, use below code to make Ts meter with Arduino. Connect TDS sensor data pin to A0 and Vcc to 5V.
#define TdsSensorPin A0
#define VREF 5.0 // analog reference voltage(Volt) of the ADC
#define SCOUNT 30 // sum of sample point
int analogBuffer[SCOUNT]; // store the analog value in the array, read from ADC
int analogBufferTemp[SCOUNT];
int analogBufferIndex = 0,copyIndex = 0;
float averageVoltage = 0,tdsValue = 0,temperature = 25;
void setup()
{
Serial.begin(9600);
pinMode(TdsSensorPin,INPUT);
}
void loop()
{
static unsigned long analogSampleTimepoint = millis();
if(millis()-analogSampleTimepoint > 40U) //every 40 milliseconds,read the analog value from the ADC
{
analogSampleTimepoint = millis();
analogBuffer[analogBufferIndex] = analogRead(TdsSensorPin); //read the analog value and store into the buffer
analogBufferIndex++;
if(analogBufferIndex == SCOUNT)
analogBufferIndex = 0;
}
static unsigned long printTimepoint = millis();
if(millis()-printTimepoint > 800U)
{
printTimepoint = millis();
for(copyIndex=0;copyIndex 0)
bTemp = bTab[(iFilterLen - 1) / 2];
else
bTemp = (bTab[iFilterLen / 2] + bTab[iFilterLen / 2 - 1]) / 2;
return bTemp;
}
Good day sir, this video is great! Can I add the ph sensor with this sir? I will be using Arduino uno and nodemcu so that I can use the two analog sensors. But I dont know the codes sir. Can you help me?
Hi,
I have already made a video, how you can use Arduino & NodeMCU to access the data.
Check it out here at Heart Beat Monitoring with New Blynk IoT App- Pulse Sensor with IoT
czcams.com/video/V7l2ZWmMOQY/video.html
Hello Guys,
I have made few changes in the NodeMCU code to connect with New Blynk. you can download from the video description.
Also added the programming Code for ESP32 As well. link is available in the video description.
#esp32 #nodemcu #esp8266 #TDS
Sir, are the connections same for node mcu?
Yes.
Hi sir, do I need to use any resistor for both TDS and Temperature sensor if I want to connect it with my esp32 board?
No.
@@SMEDehradun Hello sir I can I ask again in the blnyk cloud it use BLYNK_TEMPLATE_NAME and your code use BLYNK_DEVICE_NAME and when I compile the code it have an error. what should I do?
Por favor necesuito mostrar temperatura de dallas ds18b20 con Blynkl 2.0 y arduino, muchas gracias.
@Diego Quintero
can you ask it in English?
Hola, acabo de hacer un video con el sensor dallas Ds18b20. amablemente lea este video czcams.com/video/L0HqU-NiGgw/video.html. Este video puede ayudarte. Aún enfrenta el problema, comente en el cuadro de comentarios.
Sir, at the end of the video, shows that we need to connect the USB cable to nuttyfi and connect it to the computer's USB right. So why do we need to that? or it is because we want to power up the nuttyfi?
After this,, if we want to check the temp. or pH again, do we need to connect the sensor to the coding or we can just only use the blynk apps? and how to check it? do we need to connect it with the coding again?
We use the usb for 2 purpose basically- one for uploading the program & another is to provide power. Right.
And once we upload the program to out any board, then that program stored in the memory of that board. We don’t need to upload it again and again. Once program uploading done, then just provide the power to your board and it will work all the time as per your code.
@@SMEDehradun thank you so much sir,, it is very clear now
Welcome
@@SMEDehradun Sir to provide the power,, we just need to connect the board with the computer's USB right? Or we need to use other bateries or something else?
You can use computer USB port for power or you can also use 5V 2A mobile charger to provide power to NodeMCU.
Good day sir. I already done making with this project with the use of NodeMCU I'm glad it really works. Is it possibly sir that after I stored the program in NodeMCU it can directly connect to the wifi network of Blynk?. When I stored the program and did not use a computer to run the program again it can't connect to the WiFi network Blynk. Thanks for response
Once you upload the program to NodeMCU, it’s permanently stored it in NodeMCU. Once you power the NodeMCU, it will be automatically connect to blynk. If not, then there can be power problem in your circuit. Verify your connection & program again.
Ok sir I understand..thank you
Good day sir.. I try it to different location and different WiFi network I powered the module NodeMCU the WiFi blynk not appear in wifi network. Can I try other option like scan QR code to connect the WiFi blynk network? Thanks for response
Yes. You can use QR code for it but for that you need to be upgrade your account to prime & hire the blynk services for it. You can use different wifi for your board but you need to follow the same process for all boards
I already create other template sir for new WiFi network but the blynk WiFi network didn't appear. Do I really need to set up again sir like in the beginning deleting all the save files and set up again for the new WiFi network?
Good day sir, is the code still the same even if i am not using a temperature sensor?
Can i ask for the code sir?
Yes you can. It’s also batter if you disable or delete all the data commands used to store & send the temperature to the blynk server.
Code is available in the video description.
Hi sir , why are you connect the pin of the TDS sensor with 5 volt and you just put 3.3 as voltage ref in the code ? please i need help !
Because esp8266 pins works on 3.3V.
@@SMEDehradunthanks and why in the code chose 1024 as resolution and you don't use 4096 ??
Coz we are using it in 10 bit mode.
Please make a video on esp8266 internet and manual control home automation with blynk2.0
@Sandeep Sandy
Next week we will post the video on manual & automatic control.
@@SMEDehradun tq
Sir how to display in dashboard whether the water is good or excellent or poor and turn on water purifier (use dc motor to demonstrate)
You can display the information in the virtual lcd widget.
@@SMEDehradun for displaying could you provide me the code sir?
@@SMEDehradun and also I need to demonstrate that water purifier will get turn on when the water quality is poor with dc motor or any other output, I need code for this too sir.
Hello sir I just want to ask if the connection with NodeMCU module and NuttyFi WiFi is the same. I want to use NodeMCU in this project. Thank you for your answer..
You can use NodeMCU in the place of NuttyFi. Both are the same but having different firmwware.
What's the device I need to use sir if I used NodeMCU instead of NuttyFi WiFi?
NodeMCU will wok fine
OK sir. The connecting of the wiring sir is still the same? Even if I used NodeMCU instead of NuttyFi WiFi?
Yes.
Can I continuous monitor tds on bylnk and when the tds will go high then it will send a led blink
Hi Ratul,
Yes you can continuously monitor the TDS value in blynk.
For led status for tds, you need to modify the code for this.
@@SMEDehradun can you help me to modify it
K.
@@SMEDehradun How can i reach you any contact or link
Drop a mail at schematicslab@gmail.com
Is the code given in the description for esp 32 module
The code is for NodeMCU Esp82666
@@SMEDehradun is there a one for esp 32
K try to do it.
Sir , I didn't find the code for esp8266 and when I run the code it's showing as tempread is not defined in the scope. What should I do sir ?
Sir , can u please help
Sir
Hi,
Link for the Code of NodeMCU ESP8266 available in the video description.
Also add the library as shown in the video description. This will resolve your problem.
If still find any error, let us know.
sir
extern "C" {
#include "user_interface.h"
void app_loop();
}
Compilation error: user_interface.h: No such file or directory this error occured in this part of the code
Hi
Add the header files in your program folder.
See this video to remove the errors…
czcams.com/video/EPhY_hDozeo/video.html
@@SMEDehradun how to add the header file
Go to video link that I have just shared in comment
❌The nodemcu has 3v output will it work,
What resistor I have to use sir? ❌
Hi,
The Vin pin if the NodeMCU has 5V output. & Resistor value is mentioned in the circuit diagram.
@@SMEDehradun thank you sir
❌Sir how to fix Port option not showing in arduino ide? ❌
Install the Arduino board driver in your computer. It will shown you the com port.
I will make the video in this soon. Stay connected.
Sir give me idea to present this project neatly,without soldering.
Use breadboard to connect all the wires without soldering.
I have already used bread board sir, I want present all the components in single board like thing sir.
Then design your own pcb or use general size pcb to connect all with one another.
Sir im getting this error:
user_interface.h: No such file or directory
Hi,
Need all the supporting fuel inside the programming folder.
Watch this video ti fix the problem in blynkedgent program
czcams.com/video/EPhY_hDozeo/video.html
@@SMEDehradun tq sir
🙏
Hello sir, can I get the reading of tds sensor without temperature sensor?
Yes. You can assume the value of temperature.
@@SMEDehradunhow about the codes that you gave sir? Can I still use that? Or I will have to edit some code
You need to change the code little bit.
You need to remove the code that’s read the temperature & define the static temperature that you want to assume.
That will work.
@@SMEDehradun Thank you sir. Can I ask for your help with the codes sir?
It’s batter it you do it by yourself.
Need Circuit diagram for nodemcu !
Hi Rahul,
Connect the NodeMCU with the similar pins as shown with NuttyFi board in the video. Connections are the same for NodeMCU & NuttyFi.
@@SMEDehradun thank you sir
Most Welcome
I completed this project sir.Still I have to add few modules like:
1)widget to display the quality(good,fair,poor)
2) turn on led(demonstrate that water purifier is on if tds is high)
3) gmail alert if tds is high
Hi,
That’s great that you have done your project 👏.
You can display the TDS level or quality, then you can use virtual LCD display to display it. This video will help you setup the virtual lcd in the blynk IoT app.
czcams.com/video/xfSH1bzQFX8/video.html
And if you want to add email alert then I have already made a video on how to set email alert. Below is the link to guide you.
czcams.com/video/T8vPXUrAfco/video.html
@@SMEDehradun tq sir✨💫
🙏
@@SMEDehradun fully completed this project.Thank you so much sir,it's impossible without your videos.I feel great.✨💫
Thanks Rahul.
Sir
In the programme TempRead function is not decleared
Put all the headers in the programming code and you will get it compiled.
@@SMEDehradun Please tell me: where is TempRead function. What additional libraries do I need?
It’s in the code. Read the code properly.
No additional library required.
@@SMEDehradun thanks bro, i have seen it
Untuk dapat sensor tds fritzing bagaimana?
Plz write your comment in English.
@@SMEDehradun How to get a fritzing tds sensor?
You can get the Fritzing tds sensor library at this link github.com/DFRobot/Fritzing-library
hi sir, when i try to verify, it said that no file for BlynkEdgent. I already upload the libraries :(
@Aina Safiqa
Check that you have selected the board as NodeMCU as described in the video.
It will work.
This problem occur while we have not selected the appropriate board or some time new blynk library not supported due to old blynk library.
I suggest, you once again see the video, follow all the instruction, install blynk library once again.
And run our code without changes.
It must work.
If still problem will remain, then comment, then we will check your code.
Can you copy- paste your code in the comment box?
@@SMEDehradun tomorrow i will try again and will update here. thank you so much :)
@@ainasafiqa6108 k. We are waiting the update from your side. Wish you a good luck 🤞.
Did you use a resistor here
Yes, resistor with Temperature sensor. Check the circuit diagram for details
@@SMEDehradun but in the video you did not show them putting together
I have covered that with the cello tape. Connect the hardware as per the circuit diagram.
@@SMEDehradun will it work without resistor
Really. But will not provide the accurate data.
According your steps can we say
We have to put wifi credentials in app for blynk 2.0
But in earlier version we used to put in code in the form of SSID and pasward
And keep changing in code if our WiFi networks is changing like WiFi router to mobile hotspot
Now,
Hi,
Blynk2.0 have changed its communication methods. We can add wifi credentials only through the app.
@@SMEDehradun
Okay
Thank you so much
Good luck 🤞
@@SMEDehradun
Thank you
Hello sir, is the code applicable for ESP8266?
Code is available for both Esp8266 as well as ESP32.
You can download it from the video description.
@@SMEDehradun Sir is it okay if I don't use any temperature sensor? will it greatly affect ppm readings?
Yes. But if your remove the e code for Temperature sensor. Then it will work
❌how many times we can dump code into nodemcu sir? ❌
10,000 times
@@SMEDehradun tq sir
🙏
Compilation error: #error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_DEVICE_NAME" please help
Plz watch the video properly. I have clarify all the instructions. Go through that.
Hi, Will it work with 3V , because the node mcu only contains 3V pin
You need to provide 5V .
@@SMEDehradun how to do that?
Provide it externally.