Giter Site home page Giter Site logo

flowmeterdiy's Introduction

"# FlowMeterDIY"

This uses a flow meter such as this: https://www.banggood.com/DN20-G34-Copper-Water-Flow-Sensor-Pulse-Output-1_75Mpa-245Lmin-Flowmeter-p-1266296.html?rmmds=buy&cur_warehouse=CN It measures the current flow rate and publishes, via mqtt, the flow rate in litres/minute. There is a calibration value at the top of the code called calibrationFactor. This needs adjusting to compensate for your meter.

This is all run on a Wemos Mini with a soldering board backpack.

  1. Get everything hooked up and running.
  2. Ensure #define _DEBUG is set.
  3. Connect the flow meter up to a hose and get a measuring jug.
  4. Slowly open the tap and measure out 500mL of water and compare that to what you're seeing in the debug.
  5. Compare the difference and adjust the 8.0 up or down to suit.

The temperature measurements are done using the Dallas one-wire sensors and also published. At startup it polls the number of sensors and runs through them. The published topic is configurable (in code) and the sensors will publish to that + serialnumber. If you do not put any sensors in it will use find them and not publish. No harm, no foul.

Pins: One-wire Sensor pins on are D2 Flow hall-Effect is on pin zero (Sorry, don't know what pin mapping that is)

Original OpenHAB discussion thread: https://community.openhab.org/t/water-meter-another-one/88418

flowmeterdiy's People

Contributors

crappytan avatar

Stargazers

 avatar  avatar

Watchers

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