Skip to the content
2 layers175.3 × 86.4 mmNilm energy meter pcb, the printed circuit board in 3D

Nilm energy meter pcb

bishnt/nilm-energy-meter

A high-precision, IoT-enabled Non-Intrusive Load Monitoring (NILM) Smart Energy Meter hardware design built with KiCad. This board combines dedicated metering hardware with edge processing capability to analyze electrical loads and power metrics in real time.

Size
175.3 × 86.4 mm
Copper layers
2
Thickness
1.6 mm
Parts
111
Nets
140
Pads
416
Tracks, vias
947, 48
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
12 Aug 2026
Updated
12 Aug 2026

Overview

Nilm energy meter pcb is an open-source printed circuit board by bishnt, from the bishnt/nilm-energy-meter repository on GitHub. It is a 2-layer board of 175.3 × 86.4 mm with 111 parts on 140 nets, routed with 947 tracks and 48 vias.

It is built around the ESP32-S2-MINI-2-N4, STGF15M65DF2 and BTA06-600BWRG, with the CASR6-NP, MOC3052SM and DS3231M+ among its other parts. Its parts include 43 capacitors, 33 resistors, 9 ICs, 8 transistors and 3 diodes. It belongs with the home automation and IoT boards and the ESP32 boards of this library.

Main components

11

README

readme.md

NILM Energy Meter PCB

A high-precision, IoT-enabled Non-Intrusive Load Monitoring (NILM) Smart Energy Meter hardware design built with KiCad. This board combines dedicated metering hardware with edge processing capability to analyze electrical loads and power metrics in real time.


Technical Features

  • MCU & Connectivity: ESP32-S2-MINI-2-N4 microcontroller for local data acquisition, Wi-Fi telemetry, and edge inference.

  • Energy Metering AFE: STPM32TR dual-channel energy metering IC connected via SPI for accurate active/reactive power calculation.

  • Current & Voltage Sensing:

  • Primary sensing via CASR-6-NP closed-loop Hall effect current transducer.

  • Secondary precision shunt resistor input for differential AFE sampling.

  • Galvanically isolated voltage measurement channel.

  • Power & Protection:

  • Integrated AC/DC power supply stage (Mains input).

  • High-voltage surge protection featuring MOV (Metal Oxide Varistor) and input fuse protection.

  • Wide AC trace spacing with strict high-voltage isolation creepage barriers (rated up to 16A continuous).

  • Load Control & Peripherals:

  • TRIAC switching and relay control with optocoupler isolation (MOC3052SM).

  • On-board high-accuracy DS3231M real-time clock (RTC) with battery backup.

  • I2C header interface for monochrome OLED display module.


Schematic Architecture

The project uses a 8-sheet hierarchical schematic structure:

SheetName / Description
Top Levelnilm-energy-meter-pcb.kicad_sch – Main system hierarchy bus interconnect
Sheet 1sheet-1-nilm-energy-meter-pcb.kicad_sch – AC mains power input & surge protection
Sheet 2sheet-2-nilm-energy-meter-pcb.kicad_sch – STPM32 AFE & metering differential front-end
Sheet 3sheet-3-nilm-energy-meter-pcb.kicad_sch – ESP32-S2 MCU core system & programming interface
Sheet 4sheet-4-nilm-energy-meter-pcb.kicad_sch – Power regulation & 3.3V/5V buck converters
Sheet 5sheet-5-nilm-energy-meter-pcb.kicad_sch – Isolated current sensing module (CASR sensor)
Sheet 6sheet-6-nilm-energy-meter-pcb.kicad_sch – Isolated voltage sampling stage
Sheet 7sheet-7-nilm-energy-meter-pcb.kicad_sch – TRIAC phase switching & relay load control
Sheet 8sheet-8-nilm-energy-meter-pcb.kicad_sch – DS3231M RTC clock backup & OLED UI interface

Repository Structure

text
├── nilm-energy-meter-pcb.kicad_pro    # KiCad project file
├── nilm-energy-meter-pcb.kicad_sch    # Main top-level schematic
├── sheet-1-*.kicad_sch                # Hierarchical schematic sheets 1-8
├── ...
├── nilm-energy-meter-pcb.kicad_pcb    # KiCad PCB layout
├── CELUS.kicad_sym                    # Project-specific symbol library
├── CELUS.pretty/                      # Project-specific footprint library
├── sym-lib-table                      # Symbol library table
├── fp-lib-table                       # Footprint library table
├── schematic-frame.kicad_wks          # Custom schematic worksheet template
└── layout-frame.kicad_wks             # Custom PCB layout worksheet template

PCB Fabrication Specifications

  • Board Type: Double-sided PCB (Top & Bottom Ground Pours)
  • Minimum Trace Width: 0.2 mm (Signal lines) / 2.5 mm (16A Mains power lines)
  • Minimum Clearance: 0.3 mm (Edge clearance) / Isolation creepage distance maintained across HV barrier
  • Via Specifications: Standard 0.3 mm drill / 0.6 mm annular ring (Stitching vias added throughout ground plane)
  • Assembly Requirements: Standard SMD assembly with SMT components down to 0402 footprint size

Getting Started

Prerequisites

  • KiCad EDA v7.0 or v8.0+

Opening the Project

  1. Clone or download this repository into your local workspace.
  2. Open KiCad and navigate to File -> Open Project.
  3. Select nilm-energy-meter-pcb.kicad_pro.
  4. Open the Schematic Editor or PCB Editor to view or edit the project design files.

Safety Warning

HIGH VOLTAGE WARNING: This circuit interfaces directly with AC mains voltage (110V–240V AC). Exposed traces and uninsulated components carry live mains electricity. Ensure proper safety equipment and isolation transformers are used when testing under live power conditions.

Parts

111
QtyValueFootprintReferences
70.1uFCELUS:GCM155R71E104KE02DC19, C20, C21, C38, C39, C40, C41
647kCELUS:ERJ-2RKF4702XR25, R26, R29, R30, R31, R32
6STGF15M65DF2CELUS:STGF15M65DF2Q3, Q4, Q5, Q6, Q7, Q8
40.1 uFCELUS:KGM05AR51E104KHC9, C12, C15, C18
41 uFCELUS:CL05A105KA5NNNCC1, C2, C3, C5
41 uFCELUS:KGM05AR51E105KHC7, C8, C13, C14
42200pFCELUS:GRM31BR72J222KW01LC25, C26, C27, C28
310kCELUS:ERJ2GEJ103XR10, R11, R12
20.01uFCELUS:CL05B103KB5NNNCC30, C32
21.62mHCELUS:PH9455.155NLFL1, FL2
2100CELUS:ERJ-2RKF1000XR3, R6
2100kCELUS:ERJ-2RKF1003XR27, R28
210kCELUS:ERJ-2GEJ103X-v2R8, R9
2110CELUS:ERJ-2RKF1100XR5, R13
2150 pFCELUS:CL10C151JB8NNNCC11, C17
216MHzCELUS:CSTNE16M0V53C000R0Y1, Y2
21MCELUS:ERJ-2RKD1004XR4, R7
21kCELUS:ERJ-2RKF1001XR16, R23
21uFCELUS:GRM155R61E105KA12DC42, C43
2220CELUS:ERJ-2GEJ221XR15, R21
233CELUS:ERJ-2RKF33R0XR18, R19
2330CELUS:ERJ-2RKF3300XR14, R20
2330uFCELUS:EEF-KX0E331REC36, C37
24.7 uFCELUS:KGM15CR51E475KTC10, C16
24.7uFCELUS:GRM155C61E475ME15D-v2C29, C31
25.1kCELUS:ERJ-2RKF5101XR17, R22
2691216710002CELUS:691216710002J2, J3
29pFCELUS:04025A9R0CAT2AC23, C24
2BSS138LT1GCELUS:BSS138LT1GQ1, Q2
2BTA06-600BWRGCELUS:BTA06-600BWRGTR1, TR2
2CASR_6-NPCELUS:CASR-6-NPU6, U7
2MOC3052SMCELUS:MOC3052SMU8, U9
2ORANGECELUS:LOQ976-PS-25LED1, LED2
2STPM32TRCELUS:STPM32TRU2, U3
10.15 uFCELUS:CL10B154KA8VPNCC35
10.22uFCELUS:GRM155R71C224KA12DC22
110kCELUS:ERJ-2GEJ103X-v1R1
12.2uFCELUS:GRM188R61H225KE11DC6
12.2uFCELUS:GRM155R61C225KE11DC33
120mCELUS:ERJ-3BWFR020VR24
1220pFCELUS:CL10B221KC8WPNCC34
1270uHCELUS:LQH32NZ271J23LL2
132.768 kHzCELUS:ABS05-32.768KHZ-9TY3
13220-10-0100-00CELUS:3220-10-0100-00J1
1390kCELUS:ERJ-2RKF3903XR2
14.4mHCELUS:CMT3-4.4-15LL1
14.7uFCELUS:GRM155C61E475ME15D-v1C4
1470CELUS:ERA-2AED471XR33
1B3U-1000PCELUS:B3U-1000PS1
1B72220S0271K151CELUS:B72220S0271K151RV1
1DS3231M+CELUS:DS3231M-U4
1ESP32-S2-MINI-2-N4CELUS:ESP32-S2-MINI-2-N4U5
1MAX803LEXR+TCELUS:MAX803LEXR-TU1
1O12832A-GW-TW3CELUS:O12832A-GW-TW3LCD1
1S1M-13-FCELUS:S1M-13-FD1

Similar boards

  • 4 layers96 × 70 mmTradewind, the printed circuit board in 3D

    Tradewind

    binaryBeachLLC/tradewind

    Tradewind TW-1: solar LoRaWAN field sensor. KiCad 9 board, CadQuery enclosure, RUI3 firmware, simulations, test data, report and datasheet.

    85 parts
  • 4 layers100 × 100 mmEc30-tee, the printed circuit board in 3D

    Ec30-tee

    justinpirie/ec30

    Onan EC30 Tee Board with ESP32 Control

    167 partsApache-2.0
  • 4 layers148 × 78 mmHub, the printed circuit board in 3D

    Hub

    Bruhdows/klink

    Klink is a magnetic tile system for building programmable machines. First up: a marble run with sensors, buttons, lights, gates, splitters and an elevator.

    85 parts
  • 4 layers39 × 40 mmKicad keybridge v2, the printed circuit board in 3D

    Kicad keybridge v2

    abdalrahimnaser/keybridge-pcb

    USB adapter board for Home Assistant

    33 parts28
  • 2 layers134.4 × 99.6 mmLine sensor, the printed circuit board in 3D

    Line sensor

    Potato-eater/Legacy2026

    github repo for Robocup Junior Australia lightweight soccer team

    79 parts2
  • 2 layers70 × 65 mmZenalert node, the printed circuit board in 3D

    Zenalert node

    priyanshubishtme/zen-alert

    Custom 2-layer PCB designed in KiCad for the ZenAlert environmental monitoring and early-warning node.

    10 parts1
  • 2 layers56.8 × 66.2 mmHackapet v4, the printed circuit board in 3D

    Hackapet v4

    acornitum/hackapet-v4

    wip, hackapet pcb v4

    51 parts

Questions

How big is the Nilm energy meter pcb PCB?

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

What parts does the Nilm energy meter pcb use?

111 parts, built around the ESP32-S2-MINI-2-N4, STGF15M65DF2, BTA06-600BWRG and CASR6-NP. 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 Nilm energy meter pcb KiCad files?

From the bishnt/nilm-energy-meter repository on GitHub, at the commit this page was made from: the board is nilm-energy-meter-pcb.kicad_pcb and its schematic nilm-energy-meter-pcb.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Nilm energy meter pcb design in my own project?

Its repository states no licence, so its author keeps all rights: ask bishnt before reusing the design.