Skip to the content
2 layers100 × 100 mmMisuratore potenza, the printed circuit board in 3D

Three-phase energy meter (ESP32-C3 + ATM90E36A) with MQTT/Home Assistant integration

Size
100 × 100 mm
Copper layers
2
Thickness
1.6 mm
Parts
108
Nets
91
Pads
300
Tracks, vias
561, 88
Pours
4
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
6 Sep 2026
Updated
6 Sep 2026

Overview

Misuratore potenza is an open-source printed circuit board by PituePao, from the PituePao/three-phase-power-meter repository on GitHub, published under the MIT licence. It is a 2-layer board of 100 × 100 mm with 108 parts on 91 nets, routed with 561 tracks and 88 vias.

It is built around the ATM90E36A-AU-R, AMS1117-3.3 and XF2M-2015-1A. Its parts include 55 resistors, 29 capacitors, 5 diodes, 4 ICs and 3 connectors. It belongs with the home automation and IoT boards and the ESP32 and RISC-V boards of this library.

Main components

3

README

README.md

Three Phase Power Meter

A custom three-phase energy meter based on the ATM90E36A metering IC and ESP32-C3, designed for real-time monitoring and Home Assistant integration.


Overview

This project is a complete three-phase energy monitoring solution designed from scratch, including hardware, firmware and PCB development.

The system measures electrical parameters from a three-phase network and publishes the collected data over MQTT, allowing seamless integration with Home Assistant.

The project includes:

  • Custom PCB
  • Embedded firmware
  • Energy metering
  • WiFi connectivity
  • MQTT communication
  • TFT graphical interface
  • Home Assistant auto-discovery

Features

  • Three-phase voltage measurement
  • Three-phase current measurement
  • Active Power
  • Reactive Power
  • Apparent Power
  • Frequency
  • Power Factor
  • Energy Consumption
  • WiFi connectivity
  • MQTT publishing
  • Home Assistant integration
  • TFT display
  • OTA firmware update
  • SPI communication with ATM90E36A

Hardware

ComponentDescription
MCUESP32-C3 SuperMini
Metering ICATM90E36A
DisplayST7789 240x240 TFT
Current SensorsCurrent Transformers
Voltage MeasurementResistor Divider
CommunicationSPI
ConnectivityWiFi

Software

The firmware has been developed in C/C++ using the Arduino framework.

Main software modules:

  • Metering driver
  • Display manager
  • WiFi manager
  • MQTT client
  • Home Assistant Discovery
  • OTA Update
  • Configuration management

System Architecture

text
                   +-------------------------+
                   |      Three Phase Grid   |
                   +------------+------------+
                                |
                    Voltage & Current
                                |
                                ▼
                      +-----------------+
                      |   ATM90E36A     |
                      | Energy Meter IC |
                      +--------+--------+
                               |
                              SPI
                               |
                               ▼
                     +------------------+
                     |    ESP32-C3      |
                     +--------+---------+
                              |
          +-------------------+------------------+
          |                   |                  |
          ▼                   ▼                  ▼
     TFT Display          MQTT Broker        OTA Update
                               |
                               ▼
                        Home Assistant

PCB

The PCB has been entirely designed in KiCad.

Main design considerations:

  • Separate analog and digital grounds
  • Optimized routing for metering accuracy
  • SPI signal integrity
  • Compact PCB layout
  • Easy assembly
TopBottom

Firmware Architecture

text
main()

│

├── WiFi Manager

├── MQTT Manager

├── Display Manager

├── Meter Driver

├── Configuration

└── OTA Update

Home Assistant

The firmware automatically publishes MQTT Discovery messages.

Available sensors include:

  • Voltage (L1, L2, L3)
  • Current (L1, L2, L3)
  • Active Power
  • Reactive Power
  • Apparent Power
  • Frequency
  • Power Factor
  • Energy

Development Challenges

During development several technical challenges were addressed:

  • ATM90E36A calibration
  • Current transformer selection
  • Analog PCB layout optimization
  • SPI communication timing
  • WiFi reconnection strategy
  • MQTT reliability
  • TFT performance optimization

Project Status

Current status:

  • Hardware: Completed
  • PCB: Revision 2
  • Firmware: Stable
  • Home Assistant Integration: Completed
  • MQTT Discovery: Completed
  • OTA: In Progress

Future Improvements

  • Web configuration interface
  • Data logging on SD card
  • HTTPS support
  • Energy history
  • Power quality analysis

Repository Structure

text
.
├── datasheet/
├── libraries/
├── hardware/
├── firmware/
├── docs/
│   └── images/
└── README.md

License

This project is released under the MIT License.

Parts

108
QtyValueFootprintReferences
21220kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR21, R22, R23, R24, R25, R26, R27, R28, R29, R30, R31, R32, R33, R34, R35, R36 +5
141kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R2, R3, R4, R5, R6, R7, R8, R42, R43, R44, R50, R51, R52
1118nCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC5, C6, C7, C8, C9, C10, C11, C12, C13, C14, C15
810RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR9, R10, R11, R12, R13, R14, R15, R16
6TestPointTestPoint:TestPoint_Pad_D1.5mmTP1, TP2, TP3, TP4, TP5, TP6
50.1uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC16, C17, C24, C26, C27
4150RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR57, R58, R62, R63
418nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC22, C29, C30, C34
4510RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR53, R54, R55, R56
4LEDLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD1, D2, D3, D4
3100nCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C19, C21
310KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR46, R47, R64
310uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC23, C25, C28
310uFCapacitor_THT:CP_Radial_D5.0mm_P2.50mmC2, C18, C20
3MountingHoleMountingHole:MountingHole_2.2mm_M2H1, H2, H3
110kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR45
1AMS1117-3.3Package_TO_SOT_THT:TO-220-3_VerticalU2
1ATM90E36A-AU-RATM90E36A:QFP50P900X900X120-48NU1
1Crystal_GND24Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm_HandSolderingY2
1D_SchottkyDiode_SMD:D_0805_2012Metric_Pad1.15x1.40mm_HandSolderD5
1ESP32-C3_SUPERMINI_THESP32-C3_SUPERMINI_TH:MODULE_ESP32-C3_SUPERMINI_THU5
1NetTie_2NetTie:NetTie-2_SMD_Pad2.0mmNT1
1SW_PushButton_Switch_THT:SW_PUSH_6mmSW1
1Screw_Terminal_01x02TerminalBlock_MetzConnect:TerminalBlock_MetzConnect_Type011_RT05502HBWC_1x02_P5.00mm_HorizontalJ3
1Screw_Terminal_01x04TerminalBlock:TerminalBlock_Xinya_XY308-2.54-4P_1x04_P2.54mm_HorizontalJ2
1Screw_Terminal_01x08TerminalBlock:TerminalBlock_Xinya_XY308-2.54-8P_1x08_P2.54mm_HorizontalJ1
1XF2M-2015-1AXF2M-2015-1A:OMRON_XF2M-2015-1AU3

Similar boards

  • 2 layers84.3 × 57.5 mmATM90E36A V1, the printed circuit board in 3D

    ATM90E36A V1

    ClaudioSeda/ATM90EEnergy

    Atm EnergyMeter

    80 parts
  • 4 layers35 × 45 mmEspip boy rev2, the printed circuit board in 3D

    Espip boy rev2

    maxgohren/ESPip-Boy

    A smart watch based on the ESP32

    111 parts2
  • 2 layers290.1 × 130 mmPro V2, the printed circuit board in 3D

    Pro V2

    kata0510/Lily58

    6×4+4keys column-staggered split keyboard.

    312 parts2.3k
  • 2 layers26.2 × 45.5 mmPL18 multiprotocol, the printed circuit board in 3D

    PL18 multiprotocol

    pascallanger/DIY-Multiprotocol-TX-Module

    Multiprotocol TX Module (or MULTI-Module) is a 2.4GHz transmitter module which controls many different receivers and models.

    24 parts1.9kGPL-3.0
  • 4 layers99 × 53.3 mmPSLab, the printed circuit board in 3D

    PSLab

    fossasia/pslab-hardware

    PSLab Hardware Design and Schematics https://pslab.io

    199 parts1.7kApache-2.0
  • 4 layers85 × 56 mmPslab mini, the printed circuit board in 3D

    Pslab mini

    fossasia/pslab-mini-hardware

    PSLab Mini Hardware https://pslab.io

    182 parts1.2kApache-2.0
  • 4 layers100 × 54 mm32Bit shift register, the printed circuit board in 3D

    32Bit shift register

    MaltWhiskey/Mega-Cube

    16x16x16 PL9823 Cube with Teensy 4.0 and FlexIO driver

    64 parts766
  • 2 layers44.2 × 29.3 mmI2c tiny usb, the printed circuit board in 3D

    I2c tiny usb

    harbaum/I2C-Tiny-USB

    Cheap and simple I²C to USB interface

    27 parts454

Questions

How big is the Misuratore potenza PCB?

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

What parts does the Misuratore potenza use?

108 parts, built around the ATM90E36A-AU-R, AMS1117-3.3 and XF2M-2015-1A. 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 Misuratore potenza KiCad files?

From the PituePao/three-phase-power-meter repository on GitHub, at the commit this page was made from: the board is hardware/misuratore_potenza.kicad_pcb and its schematic hardware/input_output.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Misuratore potenza design in my own project?

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