Skip to the content
2 layers120.5 × 86.5 mmMetering, the printed circuit board in 3D

A device for capturing energy consumption at home by reading energy meters.

Size
120.5 × 86.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
4
Nets
18
Pads
20
Tracks, vias
0, 0
Pours
11
Routed
Not yet
KiCad
KiCad 10.0 (file 20260206)
Created
11 Jun 2025
Updated
8 Oct 2026

Overview

Metering is an open-source printed circuit board by zargony, from the zargony/smarthome-metering repository on GitHub, published under the EUPL-1.2 licence. It is a 2-layer board of 120.5 × 86.5 mm with 4 parts on 18 nets.

README

README.md

Smart Home Metering

A device for capturing energy consumption at home by reading energy meters.

This device, built around an ESP32-C3, collects data from electricity, gas, and water meters and provides it to smart home systems like Home Assistant for automation and long-term analysis. Housed in a DIN rail enclosure, it fits seamlessly into a standard European meter cabinet.

Rendering of PCB in enclosure Fully assembled device

Hardware

The standard DIN rail enclosure can be mounted onto a DIN rail and shows status and activity LEDs when installed in a meter cabinet. Power supply and sensor connections are exposed via screw terminals. An external antenna can be connected to the SMA socket and is best mounted outside the cabinet for good Wifi connection. A USB-C socket exposes the ESP32-C3 Serial/JTAG port for easy programming/debugging (e.g. if OTA failed).

Empty PCBs Assembled main PCB Main PCB mounted onto base PCB Enclosure and PCB assembled Wiring of device in meter cabinet Device installed in meter cabinet

Sensor connections

This device provides a 3.3V bidirectional UART for reading a serial data stream, e.g. an electric meter's infrared interface. Additionally 3 debounced impulse contacts can be used to capture simple count impulses, e.g. from reed contacts on water and gas meters (or electric meters without IR interface but impulse LEDs).

GPIODirectionUsage
GPIO3Input, Pull-Up, DebouncedContact 1 (gas meter)
GPIO4Input, Pull-Up, DebouncedContact 2 (water meter)
GPIO5Input, Pull-Up, DebouncedContact 3
GPIO6InputUART Rx (electrical meter)
GPIO7OutputUART Tx
GPIO8OutputStatus LED (active low)
GPIO9Input, Pull-UpBoot button

Firmware

There's a variety of ESP32 firmwares available that can be used. Most popular are ESPHome and Tasmota. With proper configuration, it captures energy meters readings and can submit readings to Home Assistant or an MQTT broker where they can be picked up by various tools like Node-RED or Telegraf.

See esphome/ for example ESPHome configurations of this device which is auto-discovered with all metrics in Home Assistant.

Home Assistant showing energy metering sensors Home Assistant showing device diagnostics Home Assistant showing energy usage graphs

My Setup (Example)

I use this device with sensors described below. It's tailored to my specific environment and some links reference German websites, as they relate to the energy meters installed in my home. However, you may still find parts of it useful for your own setup.

Electrical

The eBZ DD3 electrical meter has an infrared UART interface that continuously provides information about voltage, current, power and total consumption. Several DIY IR sensors (and schematics) are available online, e.g. I got a Hichi IR (the simple TTL variant, no Wifi or USB). It works fine with 3.3V and is connected directly to this device. It continuously receives metering information in OBIS D0 format (D0 is ASCII based, unlike SML).

Gas

A Honeywell IN-Z61 impulse sensor is attached to my GMT BK-G4 gas meter. One impulse is sent every 0.01 m³ (10 liters). Impulses are counted and summed up in software.

Water

The water meter is similar to a Sensus 420 water meter and allows to attach a Sensus HRI sensor. Several variants exist. HRI-A is a simple pulse emitter while HRI-B has an additional M-Bus data interface. While HRI-A would be sufficient, they don't seem to be available anymore nowadays. The pulse emitter is a trivial interface, similar to the gas meter. One impulse is sent every 0.001 m³ (1 liter). Impulses are counted and summed up in software.

Contribution

Feel free to get in touch and discuss ideas, improvements or your experiences with it.

License

Hardware licensed under the CERN Open Hardware License (Strongly Reciprocal). Software licensed under the European Union Public License (EUPL). Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.

History

An early prototype was built using a NodeMCU V2 dev kit (ESP8266) on perfboard and used to dangle loosely next to the meter cabinet for way too long.

Prototype on perfboard

Parts

4
QtyValueFootprintReferences
2MountingHoleMountingHole:MountingHole_4.3mm_M4H1, H2
2Screw_Terminal_01x06TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-9-5.08_1x09_P5.08mm_HorizontalX1, X2

Similar boards

  • 2 layers18.5 × 26 mm24g2usb rp2350zero, the printed circuit board in 3D

    24g2usb rp2350zero

    joypad-ai/joypad-os

    Universal controller firmware for building adapters, dongles, and custom controllers.

    4 parts1.7kApache-2.0
  • 2 layers116 × 33 mm966595-1 and 963356-1, the printed circuit board in 3D

    966595-1 and 963356-1

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    4 parts1.2k
  • 2 layers19 × 18 mmDaughter board, the printed circuit board in 3D

    Daughter board

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    4 parts915
  • 2 layers24.8 × 24.8 mmNrf24 breakout, the printed circuit board in 3D

    Nrf24 breakout

    tardate/LittleArduinoProjects

    a collection of "Little Electronic & Arduino Projects", most involving electronics or an Arduino in one way or another!

    4 parts803MIT
  • 2 layers26 × 20 mmCap chain, the printed circuit board in 3D

    Cap chain

    drandyhaas/KiCadRoutingTools

    A set of Python/Rust tools to aid routing in KiCad

    4 parts744MIT
  • 2 layers34.7 × 20 mmXG Station Power MSI, the printed circuit board in 3D

    XG Station Power MSI

    osy/XG_Mobile_Station

    Open source eGPU dock for ROG Ally and ROG Flow

    4 parts712CC-BY-4.0
  • 2 layers20.3 × 24.5 mmJack power input, the printed circuit board in 3D

    Jack power input

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    4 parts546MIT

Questions

How big is the Metering PCB?

It measures 120.5 × 86.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Metering use?

4 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Metering KiCad files?

From the zargony/smarthome-metering repository on GitHub, at the commit this page was made from: the board is metering.kicad_pcb and its schematic analog-in.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Metering design in my own project?

Its repository publishes it under the EUPL-1.2 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).