Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hagronnestad/mbus-han-kaifa
⚡🔌💻 DIY electronics and code to read data from my KAIFA MA105H2E AMS smart meter.
https://github.com/hagronnestad/mbus-han-kaifa
ams arduino electronics han han-kaifa iot m-bus mbus smart-meter
Last synced: 15 days ago
JSON representation
⚡🔌💻 DIY electronics and code to read data from my KAIFA MA105H2E AMS smart meter.
- Host: GitHub
- URL: https://github.com/hagronnestad/mbus-han-kaifa
- Owner: hagronnestad
- License: mit
- Created: 2018-09-22T23:17:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-13T23:10:37.000Z (over 2 years ago)
- Last Synced: 2024-10-04T17:25:43.102Z (about 1 month ago)
- Topics: ams, arduino, electronics, han, han-kaifa, iot, m-bus, mbus, smart-meter
- Language: C#
- Homepage:
- Size: 2.08 MB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# mbus-han-kaifa
DIY electronics and code to read data from my KAIFA MA105H2E electricity meter.## Code
This library aims to read and decode all packet types from the Norwegian M-Bus smart electricity meters. The screenshot below shows a test application outputting data from the various packet types. Not all packet types have been implemented yet.![](Screenshots/01.png)
## Electronics
### Simple Circuit Diagram - Arduino Analog Input -> TTLThis circuit uses a simple voltage divider and an Arduino to convert the resulting 2.2V-3.3V signal to a 5V TTL signal.
![](Electronics/mbus-han-kaifa-simple-circuit.png)
### Arduino Sketch
[Electronics/Arduino/A0_to_TTL/A0_to_TTL.ino](Electronics/Arduino/A0_to_TTL/A0_to_TTL.ino)
Threshold value needs to be tuned based on the voltage divider. Write `val` to serial to find the min and max value and choose a fitting threshold.
```arduino
void setup()
{
pinMode(12, OUTPUT);
}int val = 0;
void loop()
{
val = analogRead(0);
digitalWrite(12, val > 400);
}
```