Interface Water Flow Sensor Using ESP32 Board

Interface Water Flow Sensor Using ESP32 Board

Introduction

There have several case where water usage can suddenly spike, just because of water pipe broken under the ground. The sad thing is you only noticed after you get the latest water bill. So in this tutorial I will share with you on how to interface water flow sensor with ESP32 board. Later we will develop notification system if the water usage exceeds certain value.

Video

This video is show on how to interface water flow sensor with ESP32 board.

Hardware Preparation

This is the list of items used in the video.

Sample Program

This is the sample program to measure water flow rate and the total water flow through the sensor.

https://gist.github.com/IdrisCytron/1b23265ede09577c19ef6acc27ee848d

Thank You

References:

  1. G 1/2 Water Flow Sensor Datasheet
  2. Working with Water Flow Sensors & Arduino
  3. ESP32 with PIR Motion Sensor using Interrupts and Timers

Thanks for reading this tutorial. If you have any technical inquiry, please post at Cytron Technical Forum.

สินค้าที่เกี่ยวข้อง

40-Way 20cm Dupont Jumper Wire

ไม่สามารถใช้ได้

x 1 หน่วย

NODEMCU ESP32

ไม่สามารถใช้ได้

x 1 หน่วย