Giter VIP home page Giter VIP logo

water_flow_sensor_mqtt's Introduction

Water flow sensor based on WEMOS D1 Pro with a hall sensor MQTT connected

The problem

Many block of flats in Mallorca have only one water mater. Obviously, not all residents consume the same amount of water.
So the contribution to expenses is not fair.

Deployed idea

I have developed my own home automation architecture. The archetype for any sensor includes a microcontroller based on ESP8266 and connectivity though a MQTT broker.

Another server with Node-RED make the orchestration and integration of all the sensors and services.

The best implementation for this use case is WEMOS D1 mini PRO, since a large WiFi range required. And it provides a 5v supplier pinout on board needed for the water flow sensor.

Things used in this project

Hardware components

Software apps and online services

How does it Work?

This sensor sits in line with your water line that you want to measure and contains a pinwheel sensor to measure how much liquid has moved through it. There's an integrated magnetic hall effect sensor that outputs an electrical pulse with every revolution. The hall effect sensor is sealed from the water pipe and allows the sensor to stay safe and dry. The sensor comes with three wires: red (5-24VDC power), black (ground) and yellow (Hall effect pulse output). By counting the pulses from the output of the sensor, you can easily calculate water flow. Each pulse is approximately 2.25 milliliters. Note this isn't a precision sensor, and the pulse rate does vary a bit depending on the flow rate, fluid pressure and sensor orientation. It will need careful calibration if better than 10% precision is required. However, its great for basic measurement tasks!

Development

I have used prototyping material. What is working is proof of concept for the use case of the system control of my garden irrigation.

Schematics

Node-RED flow It´s integrated on my home automatization dashboard as a independent flow.

The dashboard includes an alarm and an indicator of daily consumption with a chart showing the historical data of the last three days.

water_flow_sensor_mqtt's People

Contributors

mcorts avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.