Skip to the content
2 layers79.5 × 79.5 mmEsp32-energymeter V2, the printed circuit board in 3D

The Elektor ESP32 Energy Meter project, featuring schematics, PCB designs, and ESPHome integration for advanced energy monitoring

Size
79.5 × 79.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
116
Nets
92
Pads
416
Tracks, vias
700, 67
Pours
1
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
15 May 2024
Updated
12 Jan 2025

Overview

Esp32-energymeter V2 is an open-source printed circuit board by ElektorLabs, from the ElektorLabs/esp32-energymeter repository on GitHub, published under the MIT licence. It is a 2-layer board of 79.5 × 79.5 mm with 116 parts on 92 nets, routed with 700 tracks and 67 vias.

It is built around the ESP32-S3-WROOM-1-N8, ATM90E32AS-AU-R and NJM2882F33-TE1, with the NCD0805R1, SZSMF4L5.0AT3G and B140HW-7-HXY among its other parts. Its parts include 39 resistors, 32 capacitors, 15 diodes, 6 switches and 3 ICs. It belongs with the ESP32 boards of this library.

Main components

12

README

README.md

ESP32 Energy Meter

Welcome to the official repository for the ESP32 Energy Meter, an energy monitoring project developed by Elektor Labs. This repository hosts all the necessary design files, code, and documentation to build and deploy a safe energy meter using the ESP32-S3 microcontroller.

Project Overview

The ESP32 Energy Meter utilizes the Espressif ESP32-S3 microcontroller and the ATM90E32AS IC from Microchip for precise energy measurement across single and three-phase systems. This version includes significant safety and functionality enhancements, including a transformer-based power supply and modularity for diverse applications.

Features

  • High Precision: Uses ATM90E32AS IC for accurate energy data.
  • Enhanced Safety: Transformer-based power reduces direct exposure to high voltages.
  • Flexible Configuration: Supports both single-phase and three-phase installations.
  • Smart Home Integration: Easily integrates with Home Assistant for advanced energy management.
  • Customizable Firmware: Includes ESPHome YAML configurations for easy adaptation and updates.

Repository Contents

  • /hardware - Electronic schematic files.
  • /hardware - PCB design files suitable for manufacturing.
  • /src/ESPHome - ESPHome YAML configuration files.

Getting Started

Prerequisites

Components used in this project are mention in the BOM list /hardware/production/BOM-esp32-energymeter-V2.xlsx, overview of the components and required tools are as follows:

  • ESP32-S3 module
  • ATM90E32AS IC
  • Step-down transformer (220V AC to 12V AC) - Preferably a bell transformer
  • Current Transfomers - YDHC SCT 013 100A 50mA
  • Passive components (resistors, capacitors)
  • Tools for PCB assembly and soldering

Setup Instructions

  1. Clone the repository:

    bash
    git clone https://github.com/ElektorLabs/esp32-energymeter.git
  2. PCB Assembly:

    • Refer to the /hardware directory and manufacture the PCB using the provided design files.
    • Solder the components onto the PCB as per the layout and schematic details in the /Schematics folder.
  3. Firmware Installation:

    • Navigate to the /src/ESPHome directory.
    • Update the YAML file with your specific network details and preferences.
    • Flash the firmware to the ESP32-S3 using ESPHome through the command line or ESPHome Dashboard.
  4. Integrate with Home Assistant:

    • Follow the integration guide in the article to connect the energy meter to Home Assistant.
    • Monitor and manage your energy consumption directly through the Home Assistant interface.

Calibration and Testing

  • After assembly, perform a calibration check as described in the article to ensure accuracy.
  • Test the device under different load conditions to verify the setup and adjust the calibration if necessary.

Contributing

Your contributions are welcome! If you have enhancements, fixes, or improvements, please fork this repository and submit a pull request with your changes. For substantial modifications or new features, please open an issue to discuss them first.

License

This project is distributed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Thanks to Espressif Systems for the ESP32 technology.
  • Thanks to Microchip for the energy measurement IC.
  • Gratitude to all community members who have contributed to refining this project.

Contact

For further inquiries or support, feel free to reach out through GitHub issues or the project discussion board.


Parts

116
QtyValueFootprintReferences
918nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC2, C3, C4, C6, C9, C11, C14, C15, C16
91kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R4, R5, R8, R9, R12, R23, R24, R25
880RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR26, R27, R33, R34, R35, R36, R38, R40
62R4Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR2, R3, R6, R7, R10, R11
50.1uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC5, C12, C17, C18, C19
5100nF 50VCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C8, C10, C28, C32
510kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR18, R19, R20, R21, R22
4100kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR28, R29, R30, R37
4MountingHole_PadMountingHole:MountingHole_2.7mm_Pad_ViaH1, H2, H3, H4
3100nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC20, C24, C31
318nF 50VCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC21, C22, C23
31KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR13, R14, R15
3NCD0805R1LED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderLED1, LED7, LED8
3SZSMF4L5.0AT3GSamacSys_Parts:SODFL3824X140ND3, D4, D5
3SolderJumper_3_OpenJumper:SolderJumper-3_P1.3mm_Open_RoundedPad1.0x1.5mm_NumberLabelsJP8, PM1, PM2
2220uFSamacSys_Parts:CAPAE830X1050NC29, C30
222uFSamacSys_Parts:CAPAE530X550NC25, C26
24.7kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR31, R32
2B140HW-7Diode_SMD:D_SMAD6, D7
2Conn_01x08Connector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_VerticalJP5, JP6
2LOGOLibrary:elektor-labs-KiCAD-Silkscreen-20x5.1mmG***, G***
2PTS526_SM15_SMTR2_LFSSamacSys_Parts:PTS526SM15SMTR2LFSS1, S2
2Screw_Terminal_01x06TerminalBlock_RND:TerminalBlock_RND_205-00236_1x06_P5.08mm_HorizontalK1, K4
10.01uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC27
10RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR39
110 uFSamacSys_Parts:CAPAE430X550NC13
110KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR16
110uF 10VCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC7
1150080AS75000SamacSys_Parts:LEDM2012X80NLED6
1150080BS75000SamacSys_Parts:LEDM2012X80NLED5
1150080GS75000SamacSys_Parts:LEDM2012X80NLED4
1150080RS75000SamacSys_Parts:LEDM2012X80NLED3
11N5819HW-7-FSamacSys_Parts:SOD3716X145ND2
1ABM8G-16.384MHZ-B4Y-TSamacSys_Parts:ABM8GX1
1AP63203WU-7SamacSys_Parts:SOT95P280X100-6NIC3
1ATM90E32AS-AU-RATM90E32AS-AU-R:QFP50P900X900X120-48NIC1
1BAT760-7SamacSys_Parts:SOD2513X120ND1
1BOOTJumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmBOOT1
1Conn_01x03Connector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_VerticalJP7
1Conn_01x06Connector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalJP2
1ENJumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmEN1
1ESP32-S3-WROOM-1PCM_Espressif:ESP32-S3-WROOM-1MOD1
1GSB1C41110SSHRSamacSys_Parts:GSB1C41110SSHRK2
1JUMPERConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJP1
1NCD0805G1LED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderLED2
1NJM2882F33-TE1SamacSys_Parts:SOT95P280X130-5NIC2
1OLED-AConnector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJP3
1OLED-BConnector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJP4
1QwiicConnector_JST:JST_SH_SM04B-SRSS-TB_1x04-1MP_P1.00mm_HorizontalK3
1SRN6028C-3R9MSamacSys_Parts:SRN6028C3R9ML1

Similar boards

  • 4 layers127 × 76.2 mmPayload pcb, the printed circuit board in 3D

    Payload pcb

    austindriggs/urc-payload-pcb

    All-purpose control and interface board designed to manage mission-critical sensors and electronics for University Rover Challenge at WVU.

    114 partsMIT
  • 4 layersBig board, the printed circuit board in 3D

    Big board

    meyerAurelius/telemetry-pcb

    First iteration of the telemetry PCB for UCalgary BAJA

    16 parts
  • 4 layers152.4 × 76.2 mmMotherboard, the printed circuit board in 3D

    Motherboard

    mikegoelzer/Homebrew-ECP5-SBC

    Kicad files for homebrew hobbyist computer with custom RISC-V CPU

    160 parts
  • 4 layers100 × 90 mmOSBAMS Rev2 RC1, the printed circuit board in 3D

    OSBAMS Rev2 RC1

    hle12345/OSBAMS

    Moved here on 2026-10-01. The Rev.1 80x80 mm carrier PCB is a proven-prototype reference (circuits and interfaces that worked), not a design to revise or manufacture.

    149 partsMIT
  • 2 layers68.4 × 51.1 mmPb Monitor v2, the printed circuit board in 3D

    Pb Monitor v2

    ElektorLabs/Pb-Monitor-v2

    PbMonitor v2.0

    79 parts1GPL-3.0
  • 4 layers134 × 84.7 mmHomectrl rB, the printed circuit board in 3D

    Homectrl rB

    jeevan9s/homectrl-sys

    home automation controller

    136 parts2
  • 2 layers138.4 × 96.5 mmMaster Board, the printed circuit board in 3D

    Master Board

    koson/bms-HW

    222 parts
  • 2 layers10.3 × 17 mmWatchy scd40, the printed circuit board in 3D

    Watchy scd40

    cscott/watchy-co2-pcb

    Simple PCB to mount the Sensirion SCD40 CO2 sensor next to Watchy

    12 parts13

Questions

How big is the Esp32-energymeter V2 PCB?

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

What parts does the Esp32-energymeter V2 use?

116 parts, built around the ESP32-S3-WROOM-1-N8, ATM90E32AS-AU-R, NJM2882F33-TE1 and NCD0805R1. 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 Esp32-energymeter V2 KiCad files?

From the ElektorLabs/esp32-energymeter repository on GitHub, at the commit this page was made from: the board is hardware/KiCAD/esp32-energymeter-V2/esp32-energymeter-V2.kicad_pcb and its schematic hardware/KiCAD/esp32-energymeter-V2/esp32-energymeter-V2.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Esp32-energymeter V2 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).