Skip to the content
2 layers75 × 50 mmSTPM34 Breakout, the printed circuit board in 3D

KiCad 10 breakout boards for the STPM32, STPM33, and STPM34 energy metering ICs

Size
75 × 50 mm
Copper layers
2
Thickness
1.6 mm
Parts
55
Nets
47
Pads
157
Tracks, vias
415, 51
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
4 Oct 2026
Updated
10 Oct 2026

Overview

STPM34 Breakout is an open-source printed circuit board by whatnick, from the whatnick/STPM3x_Breakout repository on GitHub. It is a 2-layer board of 75 × 50 mm with 55 parts on 47 nets, routed with 415 tracks and 51 vias.

It is built around the STPM34. Its parts include 22 resistors, 15 capacitors, 2 connectors, 1 IC and 1 switch. It belongs with the interfaces and adapters boards of this library.

Main components

1

README

hardware/STPM33_Breakout/README.md

STPM33 Breakout

KiCad 10 open-hardware breakout for the STMicroelectronics STPM33 metering ASIC. It measures one isolated voltage channel and two current-transformer channels, making it useful for phase/neutral comparison, tamper detection, and two-current experiments sharing one voltage reference.

Top render

Bottom render

Front end

  • Supply: 3.3 V.
  • Voltage input: isolated 9 VAC transformer secondary only.
  • Current inputs: two 100 A:50 mA CTs.
  • Current burdens: 2.4 ohm differential, giving 120 mV RMS at 100 A.
  • Current filters: 100 ohm series resistors and 330 nF capacitors.
  • Voltage divider: symmetric 200 kohm / 2.49 kohm legs.
  • Voltage filters: 1 kohm series resistors and 33 nF capacitors.
  • Clock: 16 MHz crystal.
  • Grounding: separate GNDA and DGND pours joined through NT1. NT1 is a copper net tie; no component is fitted there.

This is not an isolated mains-input board. Connect only isolated low-voltage sources and follow applicable electrical-safety practices.

J1 pin map

PinSignalPinSignal
1+3V38CT2_N
2DGND9SCS
3VAC_P10SCL
4VAC_N11MOSI/RXD
5CT1_P12MISO/TXD
6CT1_N13SYN
7CT2_P14EN

Underside pads expose INT1, INT2, LED1, LED2, and CLKOUT/ZCR.

SPI/UART selector

STPM33 supports SPI or UART, not I2C. SJ1 biases SCS through R14 at power-up:

  • Pads 1-2 are closed by default, selecting SPI with a DGND bias.
  • For UART, cut pads 1-2 and bridge pads 2-3 to bias SCS to +3V3.
  • Press SW1 after changing SJ1 so EN is asserted low and the interface mode is sampled again.

Rebuilding

Run the scripts from the repository root:

powershell
python .\scripts\build_stpm33_schematic.py
python .\scripts\apply_stpm33_bom.py
& "C:\Program Files\KiCad\10.0\bin\python.exe" .\scripts\build_stpm33_pcb.py

Routing uses Freerouting with Java 25:

powershell
$env:JAVA25 = "C:\Program Files\Eclipse Adoptium\jre-25.0.4.101-hotspot\bin\java.exe"
$env:FREEROUTING_JAR = "C:\path\to\freerouting-2.4.1.jar"
& "C:\Program Files\KiCad\10.0\bin\python.exe" .\scripts\route_stpm33.py
& "C:\Program Files\KiCad\10.0\bin\python.exe" .\scripts\finalize_stpm33_pcb.py

The checked-in routed PCB is the production source. Reconstruction scripts capture the schematic, mechanical envelope, placement, routing workflow, ground pours, markings, and project-local 3D/logo assets.

Manufacturing outputs

powershell
python .\scripts\apply_stpm33_bom.py
python .\scripts\render_stpm33.py
python .\scripts\generate_stpm33_gerbers.py

The Elecrow BOM is written to manufacturing. Gerbers, separate PTH/NPTH drills, Gerber job data, front/rear position CSVs, and the upload ZIP are written to gerber. The BOM contains 16 grouped unique parts and 33 fitted components.

Validation

KiCad 10 ERC and DRC are mandatory before fabrication export. The Gerber generator enforces zero ERC/DRC violations and zero unconnected items before creating the package.

Parts

55
QtyValueFootprintReferences
8100kR_0603_1608MetricR5, R6, R8, R9, R15, R16, R18, R19
4100RR_0603_1608MetricR1, R2, R3, R4
41kR_0603_1608MetricR11, R12, R21, R22
42.49kR_0603_1608MetricR7, R10, R17, R20
4330nC_0603_1608MetricC1, C2, C3, C4
433nC_0603_1608MetricC5, C6, C7, C8
4MountingHole_2.2mm_M2MountingHole_2.2mm_M2H1, H2, H3, H4
2100nC_0603_1608MetricC12, C15
210kR_0603_1608MetricR13, R14
215pC_0603_1608MetricC13, C14
21uC_0805_2012MetricC9, C10
22.4RR_0603_1608MetricRB1, RB2
116MHzCrystal_SMD_3225-4Pin_3.2x2.5mmY1
14.7uC_0805_2012MetricC11
1ANALOG I/OPinHeader_1x08_P2.54mm_VerticalJ1
1ANALOG/DIGITAL STARNetTie-3_SMD_Pad0.5mmNT1
1CLKOUT_ZCRTestPoint_Pad_D1.5mmTP3
1HOST I/OPinHeader_1x10_P2.54mm_VerticalJ2
1LED1TestPoint_Pad_D1.5mmTP1
1LED2TestPoint_Pad_D1.5mmTP2
1OSHW_LogoOSHW_LogoLOGO_OSHW
1RESETSW_SPST_CK_RS282G05A3SW1
1SPI / UARTSolderJumper-3_P1.3mm_Bridged12_Pad1.0x1.5mmSJ1
1STPM34QFN-32-1EP_5x5mm_P0.5mm_EP3.45x3.45mmU1
1Whatnick_LogoWhatnick_LogoLOGO_W

More from whatnick/STPM3x_Breakout

2
  • 2 layers55 × 40 mmSTPM33 Breakout, the printed circuit board in 3D

    STPM33 Breakout

    whatnick/STPM3x_Breakout

    KiCad 10 breakout boards for the STPM32, STPM33, and STPM34 energy metering ICs

    46 parts
  • 2 layers38.2 × 28 mmSTPM32 Breakout, the printed circuit board in 3D

    STPM32 Breakout

    whatnick/STPM3x_Breakout

    KiCad 10 breakout boards for the STPM32, STPM33, and STPM34 energy metering ICs

    35 parts

Similar boards

  • 2 layers229.5 × 95.1 mmSweep high, the printed circuit board in 3D

    Sweep high

    davidphilipbarr/Sweep

    Sweep - a small promicro based keyboard inspired by the Ferris.

    55 parts2.1k
  • 2 layers370 × 11 mmDaylight Disco XXL, the printed circuit board in 3D

    Daylight Disco XXL

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    55 parts1.1kGPL-3.0
  • 2 layers370 × 10 mmE3NGLEDstick, the printed circuit board in 3D

    E3NGLEDstick

    hackclub/OnBoard

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

    55 parts915
  • 2 layers139.3 × 94.8 mmFlake, the printed circuit board in 3D

    Flake

    lever-tech/flake

    An open-source, wireless, split ergonomic keyboard designed to be productive, healthy, and enjoyable. [formerly Anywhy Flake]

    55 parts531CERN-OHL-W-2.0
  • 2 layers237.5 × 102.9 mmMemory, the printed circuit board in 3D

    Memory

    jes/scamp-cpu

    A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system.

    55 parts301Unlicense
  • 2 layers60.6 × 24.1 mmBlep hackerboard, the printed circuit board in 3D

    Blep hackerboard

    CRImier/MyKiCad

    My KiCad boards. Can't be bothered uploading individually anymore, so here you go.

    55 parts253GPL-3.0
  • 2 layers100 × 96.5 mmKeyboard ch552-36-lhs, the printed circuit board in 3D

    Keyboard ch552-36-lhs

    rgoulter/keyboard-labs

    Repo with my PCB designs and keyboard firmware

    55 parts236
  • 2 layers190.5 × 85.7 mmDissatisfaction30, the printed circuit board in 3D

    Dissatisfaction30

    dcpedit/dissatisfaction30

    To get the PCB manufactured, upload dissat-pcb.zip to JLCPCB, select your desired PCB color while keeping all the other default options, and place your order (minimum 5).

    55 parts147CC-BY-4.0

Questions

How big is the STPM34 Breakout PCB?

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

What parts does the STPM34 Breakout use?

55 parts, built around the STPM34. 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 STPM34 Breakout KiCad files?

From the whatnick/STPM3x_Breakout repository on GitHub, at the commit this page was made from: the board is hardware/STPM34_Breakout/STPM34_Breakout.kicad_pcb and its schematic hardware/STPM32_Breakout/STPM32_Breakout.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the STPM34 Breakout design in my own project?

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