Git Product home page Git Product logo

hwhardsoft / arduino-mbus-meter Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 1.0 41 KB

This demo program shows how to create your own consumption meter with an MBUS slave wing for feather boards or slave shield for Arduino MKR.

Home Page: https://www.zihatec.de

License: GNU General Public License v3.0

C++ 85.61% C 14.39%
arduino arduino-mkr consumption esp32 feathers mbus mbus-slave meter smartmeter pipico

arduino-mbus-meter's Introduction

Arduino-MBUS-Meter

This is an example for Arduino IDE how to create an own MBUS consumption meter (MBUS Slave) for Arduino MKR boards, Raspberry Pi Pico and Feather Boards (including ESP32, RP2040, nRF52840, Cortex M0 ....).

Data output of the simulated meter in Lorusfree

Hardware

I've used our MBUS Slave boards:

MBUS Slave Wing MBUS Slave shield for Arduino MKR Raspberry Pi Pico HAT

MBUS Slave Raspberry Pi Pico HAT: https://www.hwhardsoft.de/english/projects/m-bus-pico-hat/

MBUS Slave Feather Wing: https://www.hwhardsoft.de/english/projects/m-bus-featherwing/

MBUS Slave Arduino MKR Shield: https://www.hwhardsoft.de/english/projects/m-bus-mkr-shield/

The code was tested with the following boards:

  • Arduino MKR Wifi 1010
  • Adafruit Feather Huzzah32
  • Adafruit Feather nRF52840
  • Adafruit Feather M0 Express
  • Sparkfun ESP32 Thing Plus
  • Sparkfun Thing Plus RP2040
  • Raspberry Pi Pico

Furthermore, an MBUS master is required to supply the MBUS and to be able to exchange data with the slave. For example, you can use a Raspberry Pi with libmbus and our MBUS Master HAT....

Remarks

The default baud rate, default bus address and id of the device can be adjusted in mbusslave.h.

Consumption values ​​can be added or edited in the Encode_Payload() function. Be careful with MBUS codes of the "Device" domain. This code does not work or is already contained in the header of the protocol.

You can view the structure of the header in mbusslave.cpp and change parameters, e.g. the manufacturer ID, if necessary.

Libraries

Install the following library through Arduino Library Manager

MBUSPayload Library MBUSPayload Library

Credits

Based on the awesome work of OpenEnergyMonitor code by Trystan Lea, Glyn Hudson, and others

https://github.com/openenergymonitor/HeatpumpMonitor

and Bryan McLellan [email protected]

https://github.com/btm/emonMbus

License

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU

arduino-mbus-meter's People

Contributors

hwhardsoft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

anandeshwar

arduino-mbus-meter's Issues

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.