Opensource Raspberry Pi Smartmeter

Opensource Raspberry Pi Smartmeter

I was missing the ability to measure and visualise the energy consumption in my smarthome. For this reason I developed a smartmeter / energymonitor as an extension for the Raspberry Pi, which I would like to share for rebuild / improvement / expansion. The piMeter.

The smartmeter can record the following data across 3 phases:

  • Current RMS
  • Voltage RMS
  • Active power
  • Apparent power
  • Reactive power
  • Accumulated active, apparent and reactive power

All smartmeter data is visualised on a web front-end. It shows consumption data for a given day, month or year, and can also display real-time data of actual consumption. The real-time data is stored in RAM — it keeps 10 minutes of data in a buffer and sends it to the browser when needed. The long-term data is stored in a MariaDB on my NAS. Storing this data directly on the Pi is not recommended due to the high read/write cycles on the SD card.

The smartmeter is based on the ADE9000 chip from Analog Devices, which communicates with the Raspberry Pi via SPI. For the current measurement I use SCT-013-000 current transformers from YHDC. They are cheap and can measure currents up to 100 A.

Web frontend

Dashboard

Smartmeter board

piMeter board

Case

Case

Case

Case

Resources

Disclaimer

Working with 230 V is dangerous. The board has no protection against accidental contact. I accept no liability for damage to persons or property resulting from the reproduction of the meter.