IoT Water Flow Meter using NodeMCU ESP8266 & Water Flow Sensor | Measure Water Flow Rate & Volume

Sdílet
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

Komentáře • 85

  • @adilrehman1806
    @adilrehman1806 Před 2 lety

    Thanks Sir, I was in a trouble for a long time. This video lead me to solution.
    👍👍👍

    • @ninaduranisaias8566
      @ninaduranisaias8566 Před 2 lety

      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

  • @LuongSon86
    @LuongSon86 Před 3 lety

    👏👏👏 Awesome Video, Love it 😍

  • @fidal007
    @fidal007 Před 4 měsíci

    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?

  • @charanpamuru1661
    @charanpamuru1661 Před měsícem

    Bro, I feel that if we place the sensor in vertical position we may get more accurate readings....
    What's your thought on this?

  • @vishalj29
    @vishalj29 Před rokem +3

    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.

  • @EvertvanIngen
    @EvertvanIngen Před 3 lety +2

    I was hoping to see the custom PCB from Nextpcb... ohh well

  • @josephus31
    @josephus31 Před 2 lety +1

    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

  • @electronic7979
    @electronic7979 Před 4 lety +1

    Very helpful video 👍

  • @conradocamilon5587
    @conradocamilon5587 Před 2 lety

    thank you very much but im planning to use esp32 sim800 because we dont have wifi in the area. Can you help me

  • @KhairulIkhwan-fq9oq
    @KhairulIkhwan-fq9oq Před 11 měsíci

    Want to know what software do u use to make that circuit plan

  • @tuanquang6349
    @tuanquang6349 Před 6 měsíci

    How does it work when the GPIO input of the esp only has 3.3V max. It will. Damages esp quickly

  • @itsheypumpkin
    @itsheypumpkin Před 3 lety +1

    awesome project!!!!!! good job sir!

  • @dilipsinghbhati3546
    @dilipsinghbhati3546 Před 2 lety

    if we use I2C 16×2 lcd display then what will be the change in code

  • @fede_lopez
    @fede_lopez Před 3 lety

    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.

  • @ninaduranisaias8566
    @ninaduranisaias8566 Před 2 lety

    Hello friend, I have a question, the EPS8266 module does not connect to thingsbeak. How can I solve it? please help me

  • @divyashree8659
    @divyashree8659 Před 9 měsíci

    What is the lcd which displays the rate and velecity

  • @chrisjako3404
    @chrisjako3404 Před 2 lety

    Can I use an ultrasonic flow sensor?

  • @mohammadmusa1230
    @mohammadmusa1230 Před 2 lety

    good morning sir please can this your system be applied in a borehole settings

  • @rahulr6393
    @rahulr6393 Před 2 lety

    While uploading this error showing ........ expected initializer before 'pulseCounter'
    .please resolve ASAP

  • @user-eo5ub5zl2y
    @user-eo5ub5zl2y Před rokem

    hello . you have how to reset meter by every day of time 23.59 ?

  • @mramzadg
    @mramzadg Před 4 lety

    Your awesome sir g

  • @kampermisajankovic9530
    @kampermisajankovic9530 Před 2 lety +2

    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?

    • @hasithadesilva1595
      @hasithadesilva1595 Před 2 lety

      if you get this error, update all include the libraries to newest version.

  • @naveenponneboina6453
    @naveenponneboina6453 Před 4 lety

    Good project

  • @jasshugarg01
    @jasshugarg01 Před rokem

    how to calibrate the sensor

  • @yash.s3321
    @yash.s3321 Před 3 lety

    how can i do the same using raspberry pi?

  • @adeshinaajibola5114
    @adeshinaajibola5114 Před rokem

    Admin pls kindly upload 220v a.c voltage stabilizer using atmega328

  • @yogeshitaliya473
    @yogeshitaliya473 Před 4 lety

    Nice one

  • @fede_lopez
    @fede_lopez Před 3 lety

    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.

    • @HowtoElectronics
      @HowtoElectronics  Před 3 lety

      Yes you can send it via mqtt. See my recent example video.

    • @LuongSon86
      @LuongSon86 Před 3 lety +1

      ​@@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

    • @ninaduranisaias8566
      @ninaduranisaias8566 Před 2 lety

      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

  • @DanielSanchezdsh8
    @DanielSanchezdsh8 Před 3 lety

    How can I do when I reset the ESP8266 if I want to conserve the last data of volume?

    • @HowtoElectronics
      @HowtoElectronics  Před 3 lety

      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.

  • @gxseah4163
    @gxseah4163 Před 3 lety +1

    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

  • @jhonydepp7734
    @jhonydepp7734 Před 3 lety

    Sir provide me flow chart and block diagram

  • @mdshayed8548
    @mdshayed8548 Před 4 lety +1

    Thanks for any video.... i like your all video...
    how many volt water pamp ?

  • @motom2234
    @motom2234 Před 2 lety

    Not connecting to ThingSpeak.

  • @shunemann
    @shunemann Před 3 měsíci

    void IRAM_ATTR pulseCounter()
    {
    pulseCount++;
    }
    WiFiClient client;
    void setup()
    {
    Compilation error: a function-definition is not allowed here before '{' token
    What wrong?

  • @hasithadesilva1595
    @hasithadesilva1595 Před 2 lety

    this measurements are wrong. how to fix correct letters. anyone know

  • @mikel7821
    @mikel7821 Před rokem

    My friend
    can I use this tool to command an oil boiler to open an electric valve?

  • @APCreationStatusVideos
    @APCreationStatusVideos Před 4 lety +1

    Send code
    Nice work

  • @nidhimishra4137
    @nidhimishra4137 Před 2 lety

    Cost ??

  • @prantanadiul4874
    @prantanadiul4874 Před 3 lety +1

    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?

    • @motom2234
      @motom2234 Před 2 lety

      Hello bro did you able to connect to ThingSpeak. I am facing the same problem.

    • @ninaduranisaias8566
      @ninaduranisaias8566 Před 2 lety

      Hola amigo. Pudistes conectarte ? Tengo mismo problema.

  • @ced3063
    @ced3063 Před 3 lety

    hello can i use the ESP32 on this project with these exact codes?

    • @HowtoElectronics
      @HowtoElectronics  Před 3 lety +2

      May be not. Need a little bit modification

    • @Uglybob2012
      @Uglybob2012 Před 3 lety

      the code doesnt work. get too many errors an no support at all from this channel.

    • @bigpickles
      @bigpickles Před 2 lety +1

      @@Uglybob2012 the channel is not here for your support. Better to learn how to program ESP.

  • @trotyl84
    @trotyl84 Před 3 lety +1

    I would like to use it to measure petrol consumption (95), but it seems to dissolve :(

  • @siyaramswitchgears5830

    I want to develop a customised water flow system. can you give me online support ?

  • @davelodia9157
    @davelodia9157 Před 3 lety +3

    sir can download your code?

  • @hasithadesilva1595
    @hasithadesilva1595 Před 2 lety

    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).

    • @hasithadesilva1595
      @hasithadesilva1595 Před 2 lety

      if you get this error, update all include the libraries to newest version.

  • @yogeshitaliya473
    @yogeshitaliya473 Před 4 lety

    Kese ho bhai
    Corona me sambhal ke rhiyo

    • @HowtoElectronics
      @HowtoElectronics  Před 4 lety +1

      Haha thik hu bhai😁. Aap vi samhal k rahiyo bhai. Take care and thanks 😍

  • @viditsharma3929
    @viditsharma3929 Před 3 lety +2

    hello how are you using NodeMCU? its operating voltage is 3.3V while the water flow meter requires 5V.

    • @HowtoElectronics
      @HowtoElectronics  Před 3 lety

      Vin pin of nodemcu gives 5V

    • @alexandergraef8940
      @alexandergraef8940 Před 2 lety +1

      @@HowtoElectronics But does the DATA Out not provide 5V then and possible fry the ESP?

    • @adrianrivas8960
      @adrianrivas8960 Před 2 lety +3

      ​@@alexandergraef8940 I came here looking for the same answer

    • @bigpickles
      @bigpickles Před 2 lety +1

      @@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.

    • @todortodorov940
      @todortodorov940 Před 11 měsíci +1

      @@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.

  • @TheDiverJim
    @TheDiverJim Před 3 lety

    Your site is broken. Would really like to see your code in detail.

    • @HowtoElectronics
      @HowtoElectronics  Před 3 lety +1

      I got it fixed now

    • @TheDiverJim
      @TheDiverJim Před 3 lety

      @@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.

  • @user-dw1km4rx3v
    @user-dw1km4rx3v Před rokem +3

    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. 🐈😿😸

  • @vikkiakhsanudin331
    @vikkiakhsanudin331 Před 2 lety

    i want program arduino :v

  • @robertluikart9497
    @robertluikart9497 Před rokem

    Could have been helpful, but to hard to understand, coupled with talking to fast.