Coder Social home page Coder Social logo

lipov3cz3k / bthome-watermeter Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 51 KB

An ESP-IDF project which counts pulses in ULP unit and sends data encoded in the BTHome format over BLE

License: Mozilla Public License 2.0

CMake 2.55% C++ 79.61% C 0.62% Assembly 10.56% Python 6.66%

bthome-watermeter's Introduction

BTHome water meter

An ESP-IDF project which counts pulses in ULP unit and sends data encoded in the BTHome format over BLE.

Pulses are counted in Ultra Low Power coprocessor in deep-sleep mode with consumption about 0.00016A. When counter reach 5 pulses, it wakes up main ESP unit, add recently counted pulses to NVS memory and start broadcasting BLE signal (in BTHome standard), after that, it goes deep-sleep again.

Instructions

  1. Set up platform.io project (you can use VSCode with platform.io extension)
  2. Run build and upload to your board
  3. Connect GPIO 4 and GND with your pulse generator
  • port GPIO4 is set up as pull-up, so you can connect any pulse generator with high-impedance state
  1. New BTHome device should appear in home-assistant automatically

References

  1. BTHome Weather Station
  2. ULP Pulse Counting Example
  3. BTHome

Improvements

  1. Battery monitoring
  2. Solve how to setup initial state

bthome-watermeter's People

Contributors

lipov3cz3k avatar

Stargazers

Alexey Pristavkin avatar Andrew Kennedy avatar Alexandre Thomazo avatar  avatar

Watchers

 avatar Daniel Glaser avatar

Forkers

szczepanleon

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.