Skip to the content
4 layers182.8 × 68 mmPFM, the printed circuit board in 3D

An open-source power quality meter for AC installations. It measures voltage, current, power (active / reactive / apparent), frequency, power factors and THD, and exposes the results over Ethernet and Modbus, with PQDIF…

Size
182.8 × 68 mm
Copper layers
4
Thickness
1.6 mm
Parts
183
Nets
186
Pads
613
Tracks, vias
2,482, 758
Pours
27
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
15 Oct 2026
Updated
16 Oct 2026

Overview

PFM is an open-source printed circuit board by martinrybka2000, from the martinrybka2000/openacme-pfm repository on GitHub, published under the GPL-3.0 licence. It is a 4-layer board of 182.8 × 68 mm with 183 parts on 186 nets, routed with 2,482 tracks and 758 vias.

It is built around the LAN8740AI-EN-TR, AMC3336DWE and PS2802-1-F3-A, with the AMC3306M25DWER, DSC1001DI1-025.0000 and SN74LVC14APWRG3 among its other parts. Its parts include 75 resistors, 59 capacitors, 15 connectors, 11 ICs and 10 diodes. It belongs with the STM32 boards of this library.

Main components

12

README

README.md

OpenACME‑PFM

Open AC Mains Energy — PFM (Power Factor Meter).

An open-source power quality meter for AC installations. It measures voltage, current, power (active / reactive / apparent), frequency, power factors and THD, and exposes the results over Ethernet and Modbus, with PQDIF export for professional analysis tools.

⚠️ DANGER — MAINS VOLTAGE. This project connects directly to 230 V AC mains. Building, flashing, testing or using it can injure or kill you and can start a fire. Read docs/user-guide/safety.md before touching any hardware. You build and use everything here entirely at your own risk.


Status

🚧 V2.0 — under development.

The V1.0 single-board prototype (the basis of my master's thesis) is preserved as-is in v1.0/ for reference only — no cleanup, no support.

What it measures

  • RMS voltage and current (total and fundamental)
  • Active P, reactive Q, non-active N and apparent S power
  • Fundamental components P1, Q1, S1
  • Power factors: PF (true), DPF (displacement), DF (distortion)
  • THD of voltage and current
  • Frequency and phase angle (SOGI-PLL grid synchronisation)
  • 10-cycle aggregation window (IEC 61000-4-7), loosely aligned with IEC 61000-4-30 Class S (best-effort, not a certification target)

Planned architecture (V2.0)

  • Two boards: a reusable control board (MCU, power, Ethernet/Modbus, HMI, SD) + swappable measurement board (1-phase or 3-phase; shunt, CT or Rogowski). Exact KiCad split is TBD.
  • Isolated sigma-delta acquisition at high sample rates.
  • Comms: Modbus TCP, Modbus RTU/RS485, PQDIF (IEEE 1159.3). WiFi is a separate board variant with an ESP instead of the STM32.
  • Power: 24 V DC on the control board, USB-C for configuration, or transformer-fed from the measured phase (option).
  • Mechanical: DIN-rail enclosure.
  • Measurements: FFT and other power-quality parameters (voltage dips/swells, flicker).

Repository layout

text
docs/          Requirements, architecture (ADRs), protocol specs, user guide
hardware/      KiCad projects (control-board, measurement-board) + enclosure
firmware/      Embedded C (STM32 via CubeMX/CMake; ESP32 WiFi variant)
software/      Desktop configuration app (Modbus)
tools/         Calibration and data-processing scripts
v1.0/          Legacy V1.0 prototype + master's thesis (reference dump)

Getting started

See docs/user-guide/building.md for build/flash instructions and docs/requirements/requirements.md for the current feature set.

Documentation

License

This project uses strong copyleft licences — if you use it, you must keep your derivatives open:

ComponentLicenceFile
Firmware & softwareGPL-3.0LICENSE
Hardware (KiCad, Gerbers, enclosure)CERN-OHL-S-2.0hardware/LICENSE
DocumentationCC-BY-SA-4.0docs/LICENSE

See CONTRIBUTING.md and SECURITY.md.

Parts

183
QtyValueFootprintReferences
22100nCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC1, C2, C3, C4, C5, C10, C11, C12, C24, C27, C36, C38, C47, C55, C56, C57 +6
11100Resistor_SMD:R_0402_1005MetricR42, R43, R44, R45, R46, R47, R48, R56, R57, R58, R59
1110kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR20, R27, R28, R31, R41, R69, R70, R71, R72, R73, R80
6100Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR50, R51, R52, R53, R54, R55
649.9Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR8, R9, R10, R37, R64, R65
6680Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR26, R29, R30, R32, R33, R34
51uCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC21, C35, C37, C40, C51
5715kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR11, R12, R14, R15, R21
410pCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC18, C42, C43, C44
4150Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR67, R74, R75, R76
41nCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC28, C30, C33, C34
42.2uCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC39, C41, C49, C50
447kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR18, R24, R25, R35
475Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR3, R4, R5, R6
3100nCapacitor_SMD:C_0402_1005MetricC45, C46, C48
31nCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC29, C31, C32
3MountingHoleMountingHole:MountingHole_4mmH2, H3, H4
3VaristorResistor_SMD:R_4020_10251Metric_Pad1.65x5.30mm_HandSolderRV1, RV2, RV3
20Resistor_SMD:R_0402_1005MetricR1, R2
20Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR62, R63
21.5kResistor_SMD:R_0402_1005MetricR49, R61
210Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR22, R23
21000OhmInductor_SMD:L_0603_1608Metric_Pad1.05x0.95mm_HandSolderFB1, FB2
2100nCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC20, C25
21kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR19, R36
21n, 2KVCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC13, C14
21uCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC23, C26
233Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR39, R40
25nCapacitor_SMD:C_0805_2012MetricC53, C54
294,2Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR16, R17
2ESDA5V3LPackage_TO_SOT_SMD:SOT-23-3D9, D10
2PS2802-1-F3-APS_opto:SOIC127P700X210-4NIC3, IC4
110k, 0.1%Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR13
110nCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC19
112.1kCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderR38
11MResistor_SMD:R_2512_6332Metric_Pad1.40x3.35mm_HandSolderR7
122nCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC16
122uCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC22
125mResistor_SMD:R_2512_6332MetricR_SHUNT2
14.7kResistor_SMD:R_0402_1005MetricR60
14.7n, 2kVCapacitor_SMD:C_1210_3225Metric_Pad1.33x2.70mm_HandSolderC17
14.7uCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC6
1470pCapacitor_SMD:C_0402_1005MetricC52
15V_termTerminalBlock:TerminalBlock_Altech_AK300-2_P5.00mmJ4
1ADC_EXT_CONNConnector:FanPinHeader_1x03_P2.54mm_VerticalJ10
1ALANL100X1-DE12DTETH_MAG:SOIC12_ALANL100X1_ABRT1
1AMC3306M25DWEAMC:DWE0016A-IPC_AU3
1AMC3336Package_SO:SOIC-16W_7.5x10.3mm_P1.27mmU5
1BootConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ1
1Butts_connConnector_JST:JST_XH_B8B-XH-AM_1x08_P2.50mm_VerticalJ17
1DSC1001DI1-025.000025MHz:CDFN4_2P5X2_MCHU2
1D_TVSDiode_SMD:D_0402_1005Metric_Pad0.77x0.64mm_HandSolderD4
1D_TVSDiode_SMD:D_0603_1608Metric_Pad1.05x0.95mm_HandSolderD3
1Free_pinsConnector_JST:JST_XH_B8B-XH-AM_1x08_P2.50mm_VerticalJ15
1GRID_termTerminalBlock:TerminalBlock_Altech_AK300-3_P5.00mmJ3
1LAN8740AI-EN-TRETH_PHY:QFN50P500X500X100-33N-DIC1
1LED_3V3LED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD7
1LED_5VLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD1
1LED_EFAULTLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD8
1LED_GRLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD5
1LED_REDLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD2
1LED_USB_PWLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD6
1MountingHole_PadMountingHole:MountingHole_4.3mm_M4_DIN965_Pad_TopBottomH1
1OLED_I2CConnector_JST:JST_XH_B4B-XH-AM_1x04_P2.50mm_VerticalJ9
1OUT_1TerminalBlock:TerminalBlock_Altech_AK300-2_P5.00mmJ12
1OUT_2TerminalBlock:TerminalBlock_Altech_AK300-2_P5.00mmJ13
1OUT_termTerminalBlock:TerminalBlock_Altech_AK300-3_P5.00mmJ5
1PROG_DEBUGConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ6
1RESET_SWButton_Switch_SMD:SW_DIP_SPSTx01_Slide_9.78x4.72mm_W8.61mm_P2.54mmRESET
1RJHSE-5380Connector_RJ:RJ45_HALO_HFJ11-x2450HRL_HorizontalJ7
1SI3493DDV-T1-GE3SI3493DDV-T1-GE3:SOT95P284X110-6NQ2
1SN74LVC14APWRG3Schmitt:SOP65P640X120-14NIC2
1SPI_EXTConnector_JST:JST_XH_B5B-XH-AM_1x05_P2.50mm_VerticalJ11
1STM32H750VBTxPackage_QFP:LQFP-100_14x14mm_P0.5mmU1
1TLV1117-33Package_TO_SOT_SMD:SOT-223-3_TabPin2U7
1TPS259620DDARTI_TPS:SOIC_20DDAR_TEXU4
1UART_DEBUGConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ8
1USBLC6-4SC6Package_TO_SOT_SMD:SOT-23-6U6
1USB_OTGConnector_USB:USB_Micro-AB_Molex_47590-0001J2

Similar boards

  • 4 layers41.4 × 14 mmSolarCharger, the printed circuit board in 3D

    SolarCharger

    makingdevices/SolarCharger

    Small PCB that charges a Li-Ion battery from a solar panel and gives an output of 5V - 0.6A

    38 parts10
  • 4 layers52 × 74 mmFRC Sensor CAN, the printed circuit board in 3D

    FRC Sensor CAN

    barkinvar/sugerCANe

    A compact interface for three NPN, PNP or logic sensors on an FRC robot. Each port has a removable 5 V / 12 V power jumper; input type is configured in software.

    144 parts1
  • 2 layers48.2 × 20.3 mmPmod 100base tx, the printed circuit board in 3D

    Pmod 100base tx

    ciniml/fpga_samples

    FPGA samples

    48 parts31BSL-1.0
  • 2 layers40 × 60 mmJoint controller board rev d power, the printed circuit board in 3D

    Joint controller board rev d power

    aliahumanoid/alia-humanoid-core

    Humanoid research project (Phase 0): firmware, host software, STL files and electronics for tendon-driven joints inside real human proportions. GPLv3 software, CC BY-NC-ND hardware files.

    40 parts12GPL-3.0
  • 4 layers55.1 × 58 mmLINC, the printed circuit board in 3D

    LINC

    noahhusby/LINC

    The Laboratory Instrument Network Controller (LINC) is a modern network GPIB interface for test equipment

    39 parts1CERN-OHL-P-2.0
  • 2 layers135 × 95 mmDawn dock, the printed circuit board in 3D

    Dawn dock

    rwrife/dawn-dock

    USB-powered ESP32-S3 bedside clock that keeps alarms offline, syncs user-approved schedules from a phone or PC, dims for sleep, and remains useful without internet.

    73 parts

Questions

How big is the PFM PCB?

It measures 182.8 × 68 mm and has 4 copper layers, 1.6 mm thick.

What parts does the PFM use?

183 parts, built around the LAN8740AI-EN-TR, AMC3336DWE, PS2802-1-F3-A and AMC3306M25DWER. 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 PFM KiCad files?

From the martinrybka2000/openacme-pfm repository on GitHub, at the commit this page was made from: the board is v1.0/PCB/PFM_9/PFM/PFM.kicad_pcb and its schematic v1.0/PCB/PFM_9/PFM/Buttons.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the PFM design in my own project?

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