IoT Water Flow Meter using NodeMCU ESP8266 & Water Flow Sensor | Measure Water Flow Rate & Volume
Vložit
- čas přidán 23. 07. 2024
- NextPCB offers first 2-layer 100 X 100 mm PCB with 0$ : www.nextpcb.com/?code=Htoeletric
4-layer PCB - 12$ : www.nextpcb.com/?code=Htoeletric
....................................................................................................................................................................................................................................
In this project, we will learn how to make IoT Based Water Flow Meter using ESP8266 & Water Flow Sensor. We will interface YFS201 Hall Effect Water Flow Sensor with NodeMCU ESP8266 Board. We will display the water flow rate & Total Volume in 0.96″ OLED Display. We will then integrate the hardware with IoT Server. For IoT Server, we will use Thingspeak App. The water flow rate & volume data can be uploaded to Thingspeak Server & can be viewed/monitored from any part of the world.
Water Management System is an important part of City Management. Water management involves supplying water according to the real requirement & without wasting Water. Therefore it is very important to measure water flow rate and volume. Without measuring these parameters, Water Management is almost impossible. Also monitoring the Water Volume, Flow Rate & Water Quality remotely using Internet Connectivity has become very essential. Therefore there is a need for Monitoring Water Management System Online.
There are so many Water Flow Sensors available in the market but are too expensive to use and afford. As a result, a low-cost water flow meter is required. So we will use YFS201 Hall Effect Water Flow Sensor with ESP8266 & design simple IoT Based Water Flow Meter.
Source Code & Details: how2electronics.com/iot-water...
....................................................................................................................................................................................................................................
Drop a like if you liked this video.
Don't forget to subscribe to our channel for more Electronics projects and tutorials.
Website: www.how2electronics.com
Facebook: / electronicsbyalex - Věda a technologie
Thanks Sir, I was in a trouble for a long time. This video lead me to solution.
👍👍👍
Hola amigo, me podrias ayudar como soluciono los datos no me manda thingSpeak puse mi API keys y mis ssid pass
Me puede ayudar amigo xfavor
👏👏👏 Awesome Video, Love it 😍
Good evening, on your thingspeak page, you've got a flow rate and volume graph. How do I get the volume graph to show total liters passed through the sensor?
Bro, I feel that if we place the sensor in vertical position we may get more accurate readings....
What's your thought on this?
Amazing, Thanks for such an informative video. Can you tell me if I can connect 4 flow sensors to a single NodeMCU and get the 4 different values at the same time? also how can the water volume data can be stored for future trend analysis.
I was hoping to see the custom PCB from Nextpcb... ohh well
please tell me why this error is occurring during compile: error: expected initializer before 'pulseCounter'
void IRAM_ATTR pulseCounter() others mentioned getting this error but it has not been addressed in the tutorial link. thank you
addendum: for anyone else with this issue, fixed by updating esp8266 to version 3.0.2 in IDE board manager
Very helpful video 👍
thank you very much but im planning to use esp32 sim800 because we dont have wifi in the area. Can you help me
Want to know what software do u use to make that circuit plan
How does it work when the GPIO input of the esp only has 3.3V max. It will. Damages esp quickly
awesome project!!!!!! good job sir!
he is wasting water
if we use I2C 16×2 lcd display then what will be the change in code
Hello, i have noticed that the device some hours later reset to zero. no power issues was detected, i test it with mobile power bank. and the issue persists. do you known how to fix it? Thank you. (not hardware issue, I have replaced it) thank you.
Hello friend, I have a question, the EPS8266 module does not connect to thingsbeak. How can I solve it? please help me
What is the lcd which displays the rate and velecity
Can I use an ultrasonic flow sensor?
good morning sir please can this your system be applied in a borehole settings
While uploading this error showing ........ expected initializer before 'pulseCounter'
.please resolve ASAP
hello . you have how to reset meter by every day of time 23.59 ?
Your awesome sir g
I did everything according to the instructions. I'm getting an error:
compilation terminated.
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
Does anyone know how to solve the problem?
if you get this error, update all include the libraries to newest version.
Good project
how to calibrate the sensor
how can i do the same using raspberry pi?
Admin pls kindly upload 220v a.c voltage stabilizer using atmega328
Nice one
Hello, i done and works perfectly! one question, have you any way to sent via mqtt ONLY the differences to avoid send the same data continuously?
Thank you.
Yes you can send it via mqtt. See my recent example video.
@@HowtoElectronics
p/s: but why 5V on GPIO pins input will not destroy ESP8266???
"The ESP8266 is a 3.3V microcontroller, so its I/O operates at 3.3V as well. The pins are not 5V tolerant, applying more than 3.6V on any pin will kill the chip."
source: tttapa.github.io/ESP8266/Chap04%20-%20Microcontroller.html
Hola amigo me ayudas no envian datos ami plataforma thingerbeak. Utilize mi Api Key todo eso no me aparece los datos como ago amigo ayudame xfavor
How can I do when I reset the ESP8266 if I want to conserve the last data of volume?
Connect the rst pin to any digital pin of nodemcu and make it high for automatic reset after defining a certain period. You can save the last data into rtc memory or eeprom.
I follow the exact same step, the water flow rate doesn't upload to the thingspeak,
I also tried to add: WiFi.begin(ssid, pass);
It still the same
Same for me..did u crt it?? If yes how??
Sir provide me flow chart and block diagram
Thanks for any video.... i like your all video...
how many volt water pamp ?
5v
Not connecting to ThingSpeak.
void IRAM_ATTR pulseCounter()
{
pulseCount++;
}
WiFiClient client;
void setup()
{
Compilation error: a function-definition is not allowed here before '{' token
What wrong?
this measurements are wrong. how to fix correct letters. anyone know
My friend
can I use this tool to command an oil boiler to open an electric valve?
No i wont recommend this
@@HowtoElectronics ok thanks
Send code
Nice work
Cost ??
Hello , I am upload this code properly ,I am use my own api key, own ssid,password but this data is not send in "ThingSpeak Server" why?
Hello bro did you able to connect to ThingSpeak. I am facing the same problem.
Hola amigo. Pudistes conectarte ? Tengo mismo problema.
hello can i use the ESP32 on this project with these exact codes?
May be not. Need a little bit modification
the code doesnt work. get too many errors an no support at all from this channel.
@@Uglybob2012 the channel is not here for your support. Better to learn how to program ESP.
I would like to use it to measure petrol consumption (95), but it seems to dissolve :(
I want to develop a customised water flow system. can you give me online support ?
sir can download your code?
See description link
@@HowtoElectronics it's possible to link to firebase or thinger.oi
How to fix this
C:\Users\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:21:25: fatal error: util/delay.h: No such file or directory
-> candidates: []
#include
compilation terminated.
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
if you get this error, update all include the libraries to newest version.
Kese ho bhai
Corona me sambhal ke rhiyo
Haha thik hu bhai😁. Aap vi samhal k rahiyo bhai. Take care and thanks 😍
hello how are you using NodeMCU? its operating voltage is 3.3V while the water flow meter requires 5V.
Vin pin of nodemcu gives 5V
@@HowtoElectronics But does the DATA Out not provide 5V then and possible fry the ESP?
@@alexandergraef8940 I came here looking for the same answer
@@alexandergraef8940 ESP GPIO are indeed 5V tolerant and always have been. They officially announced it several years ago too. Problems arise when reading analog signals on the pins as 3.3v is used as a reference. Use a LLS in that case. Digital use is absolutely fine and I myself use a range of 5V devices on ESP32 boards and have done for years. There's plenty of decent (modern and correct) write-ups online, including links to the comments made by Espressif.
@@bigpickles Thank you. Can you post a link to some official documentation. I am very confused, as some say man 3,3V on input pins, others says 5V will do as well.
Your site is broken. Would really like to see your code in detail.
I got it fixed now
@@HowtoElectronics if you’re interested, you can get more precise time by using timer1. I took your code and ran the calculations in a timer isr which reads the pulse counter at the defined period. Using the 5mhz timer and sampling every .5s.
Good project, but one thing I've noticed is that you wasted the water you measured. Please stop wasting water as water is precious and scarce. So please utilize it carefully. Thank you and wish you a great day ahead and a healthy day ahead. 🐈😿😸
i want program arduino :v
Could have been helpful, but to hard to understand, coupled with talking to fast.