This project is a combination of custom hardware and software that will allow you to monitor your unique power situation in real time, including accurate consumption, generation, and net-production. The data are stored to a database and displayed in a Grafana dashboard for monitoring and reporting purposes.
This project is derived from and inspired by the resources located at https://learn.openenergymonitor.org.
I am offering DIY kits, factory-assembled PCBs, and a variety of current transformers to use with this project.
Please see https://power-monitor.dalbrecht.tech/ for more information.
There are two main ways to install - either flash the custom OS image to your microSD card, or perform the manual installation process on your existing image. Both processes are documented here:
See Software Installation in the docs.
After installation, see the configuration section in the docs for further information on setting up the power monitor.
This code accompanies DIY circuitry that supports monitoring of up to 6 current transformers and one AC voltage reading. The individual readings are then used in calculations to provide real data on consumption and generation, including the following key metrics:
The code takes tens of thousands of samples per second, corrects for phase errors in the measurements, calculates the instantaneous power for the tens of thousands of sampled points, and uses the instantaneous power calculations to determine real power, apparent power, and power factor. This means the project is able to monitor any type of load, including reactive, capacitive, and resisitve loads.
https://david00.github.io/rpi-power-monitor/docs/general/index.html
Would you like to help out? Shoot me an email at github@dalbrecht.tech to see what items I currently have pending.
OpenEnergyMonitor and forum member Robert.Wall for guidance and support
The spidev
project on PyPi for providing the interface to read an analog to digital converter
BTC: 1Go1YKgdxAYUjwGM1u3JRXzdyRM938RQ95