Skip to content
David Albrecht edited this page Apr 14, 2023 · 16 revisions

Introduction

The Raspberry Pi Power Monitor is a combination of custom hardware and software that will allow you to monitor your unique power situation in real time (<0.5 second intervals), including 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.


What does it do?

This code accompanies DIY circuitry (see the references above) 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:

  • Total home consumption
  • Total solar PV generation
  • Net home consumption
  • Net home generation
  • Total current, voltage, power, and power factor values
  • Individual current transformer readings

Where can I get it?

I am offering DIY kits, presoldered PCBs, and a variety of current transformers to use with my project.

Please see https://power-monitor.dalbrecht.tech/ for more information.


This Wiki serves to document my project in depth so that others can adapt it to meet their own personal needs. Throughout the Wiki, there are discussions of electrical theory, optional suggestions, and important requirements that must be followed. Before proposing a quick-start path through this project, a disclaimer is required:


DISCLAIMER:

This project (indirectly) interfaces with high voltage electrical systems and discusses working in and around a main electrical panel. I would recommend hiring a licensed electrician to install the CTs on your high voltage lines. Any processes outlined in this project are taken at your own risk and I cannot be held liable for personal injury or property damage.


Quick Start / Setup Guide

Current documentation has been moved to Github Pages for a better experience!

If you are looking for documentation for v0.2.0 instead, this Wiki is it. You can reference the steps in the following order to setup v0.2.0 of this project. (The sidebar on this page is for reference only and is in no particular order).

  1. Getting Started
  2. Acquire the Hardware
  3. Install the Software
  4. Assemble the PCB
  5. Set voltage and calibrate
  6. Setup Services
  7. Build your Dashboard
  8. Install in Your Panel

Feel free to jump right in to the Getting Started section linked above. The rest of the Introduction is not vitally important.

Dashboard

Background

I created this project for several reasons. First and foremost, the current data sources I have access to through my local energy utility company and solar PV inverter is not real time. I wanted something I could watch in real time and see the effects of turning on various appliances/systems. I was not impressed by any of the commercially available systems' "bang for the buck", and my searches for DIY projects found unanswered question after unanswered question.

I, too, had questions to ask throughout the project, and I was fortunate to stumble upon the OpenEnergyMonitor forum where I received guidance and support from generous electrical engineers. What was initially a distant and challenging goal of mine at the beginning of 2020 turned into a seemingly huge undertaking that I didn't quite expect. After months of prototyping, tweaking, and massive amounts of learning, I have something I feel comfortable about sharing. My forum post is here - and I think it serves as a great snapshot in time of the work that went into this project, along with discussions around the theory, design choices, and problems that came up in the process.

I hope that by sharing my work you will find the same fascination and inspiration that I did.