Skip to the content
4 layers100 × 50 mmPw meter, the printed circuit board in 3D

EMB_1 graduation project

Size
100 × 50 mm
Copper layers
4
Thickness
1.6 mm
Parts
71
Nets
69
Pads
234
Tracks, vias
349, 69
Pours
4
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
24 Apr 2026
Updated
5 Nov 2026

Overview

Pw meter is an open-source printed circuit board by denis-gz, from the denis-gz/pw-meter repository on GitHub. It is a 4-layer board of 100 × 50 mm with 71 parts on 69 nets, routed with 349 tracks and 69 vias.

It is built around the ESP32-S3-WROOM-1-N8, AP63205WU and AMS1117-3.3, with the USBLC6-2SC6, PEC11R-4215F-S0024 and KT-0603R among its other parts. Its parts include 23 resistors, 19 capacitors, 6 ICs, 4 connectors and 3 diodes. It belongs with the ESP32 boards of this library.

Main components

7

README

README.md

PW Meter - EMB_1 Graduation Project

Splash Screen

Power Meter - An appliance to measure and log AC power line parameters

Production sample

The Power Meter can be attached to the AC mains load to measure the following parameters:

  • AC Voltage (V, RMS)
  • AC Current (A, RMS)
  • Instantaneous active power (W)
  • Instantaneous apparent power (VA)
  • Accumulated energy (Wh)
  • Power factor (W/VA ratio)
  • AC frequency (Hz)

Quick Start

In case you have assembled the board using the schematic and components specified in the KiCad project, follow these steps to bring it to life:

  1. You may use the supplied firmware image or build your own. No credentials need to be compiled in: Wi-Fi and MQTT settings are entered at runtime (see step 9). If building from source, please verify settings in the sdkconfig to match actual hardware. Use usual idf.py menuconfig command to re-generate the sdkconfig. See also sdkconfig.defaults file for the minimal set of parameters that differ from ESP-IDF defaults (regenerate it with idf.py save-defconfig after changing the configuration).
  2. To build the firmware image, use standard ESP-IDF tools (CMake, idf.py, etc). Look here for a reference.
  3. Flash the firmware via USB Serial/JTAG interface (hold the BOOT key while powering on the board). The ESP32's UART0 interface is also available on the J3 header for flashing or serial console access (useful for adjusting parameters at runtime).
  4. Connect the AC voltage source to the Voltage Transformer module (U6 sub-board).
  5. Pass the Live wire of the AC load through the core of the Current Transformer (SCT013-100 or similar). For low-power loads, wrap the wire around the transformer core several times to amplify the signal. Alternatively, use a sensor with a lower current range. If your sensor includes an internal burden resistor, you may need to desolder the R3 resistor from the board. Connect the Current Transformer to the J2 socket. It is also possible to use the PW Meter without a load; in this case, set the I noise floor parameter high enough to prevent bogus readings.
  6. Connect a 7-30V DC power source to the J1 socket. The board itself should not consume more than 5 Watts.
  7. The Power Meter starts working immediately, displaying data on the OLED display.
  8. Use the Encoder to switch pages. Use the Encoder's push-button to pause/resume on the Mains page, or to enter the menu on the Settings page. Use a long press (> 0.35 sec) to return to the upper level; at the top level, it returns to the Mains page. Use the RES key for a hard reset.
  9. The Settings page is protected by a 4-digit hex PIN (0–F): the first four characters of the firmware's ELF SHA256. It is printed at every boot in the console line I (...) app_init: ELF file SHA256: 53ba1e2f1... (PIN 53BA in this example), or can be computed from the build output with sha256sum build/pw-meter.elf (certutil -hashfile build\pw-meter.elf SHA256 on Windows). The PIN changes with every build. Rotate the encoder to choose each digit and press to confirm it. Once unlocked, the settings stay accessible until the display goes to sleep (60 seconds without interaction). The menu covers Wi-Fi credentials, MQTT broker URI, credentials, topic and reporting period, noise floors, calibration coefficients and the energy counter. Text and numeric values are entered in the serial console (UART0 on J3, 921600 baud) when prompted. Settings are stored in NVS and survive reboots.

Project Structure

Hardware

The project consists of a main board and two sub-boards:

  • Voltage Transformer: HW-697 Single-phase AC Active Output Voltage Transformer by LC Technology.
  • Display: SSD1315 128x64 monochrome I2C OLED (GM009605). Any other SSD1306 I2C compatible display should also work (check the module's address in idf.py menuconfig).

Sampling of AC voltage and current channels occur in DMA continuous mode, the rate is 4 kHz per channel, with 12 bit resolution and 12 dB attenuation. The samples are then adjusted for non-linearity using pre-calibrated curves, centered at 0 level, and processed using DSP capabilities of ESP32-S3 chip. Employing hardware acceleration helps keep CPU usage reasonably low (~10% on Core 1, or only 5% without display output).

Please find further details on project's Schematic, and PCB board views (Top Layer, Inner 1, Inner 2, Bottom Layer and 3D View).

Software

The software consists of 6 tasks:

  • reader_task: ADC sampling task. Performs reading, parsing and adjustment of analog data. Outputs raw values in mV to a ring buffer for the Compute Task.
  • compute_task: Processes data in 10-cycle chunks. Performs all mathematical calculations and outputs results to the queue for the Interface Task.
  • interface_task: Applies filtering, updates the OLED display, handles user input from the rotary encoder and console. Sends a copy of the UI data to the Telemetry Task.
  • telemetry_task: Maintains Wi-Fi and MQTT connections and publishes data to the MQTT broker as JSON, to the <topic>/metrics/power and <topic>/metrics/device sub-topics.
  • indicator_task: Drives the status LED (Wi-Fi searching, connected, MQTT transmit and error blinks).
  • console_input_task: A service task created by the console event loop that handles prompts and waits for user input from the UART console.

The PowerMeterApp class represents the main class which initializes all tasks and waits for a stop event. It handles task shutdown, and the app_main() function recreates the instance if needed.

Signal Path

Signal Path

Data Flow

Data Flow

Technology

  • MCU: Espressif ESP32-S3-WROOM-1 N16R2 module
  • AC Voltage Input: HW-697 module by LC Tech (ZMPT101B transformer paired with an LM358 op-amp)
  • AC Current Input: SCT013-100 Split-core current transformer (100A, 2000:1 ratio)
  • Display: GM009605 OLED module based on SSD1306 controller (I2C bus) (or similar)
  • Input: EC11 rotary encoder
  • Debugging: BOOT and RESET buttons, UART, and USB Type-C JTAG/Serial ports
  • Software: ESP-IDF v5.5.6-based CMake project, developed with QtCreator v18.0.2
  • Third-party components:
    • nopnop2002/ssd1306: OLED display support
  • PCB: 4-layer FR-4 PCB (100x50 mm), developed in KiCad 9.0.7. Mostly uses SMT components (0805 and 0603).

Example Output

Splash Screen Mains Page Device Page Network Page Settings Page Parameter Page Log Page About Page

Author

Copyright © Denys Zavorotnyi, 2026

License

MIT License

Parts

71
QtyValueFootprintReferences
1210kResistor_SMD:R_0805_2012MetricR1, R2, R4, R5, R6, R8, R10, R15, R16, R17, R18, R19
7100 nFCapacitor_SMD:C_0805_2012MetricC3, C5, C11, C15, C16, C17, C18
41kResistor_SMD:R_0603_1608MetricR20, R21, R22, R23
310 uFCapacitor_SMD:C_0805_2012MetricC2, C4, C19
21 uFCapacitor_SMD:C_0805_2012MetricC8, C14
222 uFCapacitor_SMD:C_0805_2012MetricC12, C13
24.7kResistor_SMD:R_0805_2012MetricR13, R14
25.1kResistor_SMD:R_0805_2012MetricR11, R12
1100kResistor_SMD:R_0805_2012MetricR9
1100nF 50VCapacitor_SMD:C_0805_2012MetricC10
1100uF 50VCapacitor_SMD:CP_Elec_8x10.5C6
110uF 50VCapacitor_SMD:C_0805_2012MetricC9
115Resistor_SMD:R_0805_2012MetricR3
11kResistor_SMD:R_0805_2012MetricR7
122 nFCapacitor_SMD:C_0805_2012MetricC1
122 uFCapacitor_Tantalum_SMD:CP_EIA-3528-21_Kemet-BC7
14.7uHfootprints:L_SXN-SDRH5D28L1
1AC current inputPJ-325C5-G:XKB_PJ-325C5-GJ2
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U3
1AP63205WUPackage_TO_SOT_SMD:TSOT-23-6U4
1BLM18PG121SH1Ddigikey-footprints:0603FB1
1BOOTButton_Switch_SMD:SW_SPST_B3U-1000PSW2
1DC 7-30VTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalJ1
1ESP32-S3-WROOM-1RF_Module:ESP32-S3-WROOM-1U1
1GM009605v4.3footprints:MODULE_GM009605v4.3U5
1GreenLED_SMD:LED_0603_1608MetricD2
1LC_Tech_HW697_Modulefootprints:LC_Tech_HW697_ModuleU6
1PEC11Rdigikey-footprints:Rotary_Encoder_Switched_PEC11RS1
1RESETButton_Switch_SMD:SW_SPST_B3U-1000PSW1
1RedLED_SMD:LED_0603_1608MetricD3
1SS34Diode_SMD:D_SMAD1
1UARTConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ3
1USB JTAG/SerialConnector_USB:USB_C_Receptacle_G-Switch_GT-USB-7051xJ5
1USBLC6-2SC6Package_TO_SOT_SMD:SOT-23-6U2

The 60 most common of 71 parts.

Similar boards

  • 2 layers78 × 58 mmDick mouse, the printed circuit board in 3D

    Dick mouse

    segfau-yama/dxxk_mouse

    ESP32-S3 上で動作する Rust 製 USB 入力デバイスの実験用リポジトリです。

    51 partsMIT
  • 4 layers100 × 80 mmLamp rev a, the printed circuit board in 3D

    Lamp rev a

    laminarforge/laminarforge-cad

    Parametric CAD models (Rust + vcad) for LaminarForge open-source LAMP diagnostics device

    107 parts
  • 4 layers130 × 105 mmHomeDeck, the printed circuit board in 3D

    HomeDeck

    Kilan777/HomeDeck

    Jarvis HomeDeck: a Raspberry Pi CM4 carrier board and voice-assistant software for a 7-inch smart display (KiCad hardware, generated from Python, plus the Python/JS assistant)

    228 parts1
  • 4 layers82.1 × 80.2 mmSeguidor de linhas 4camada2-2026-1, the printed circuit board in 3D

    Seguidor de linhas 4camada2-2026-1

    wvianna/mcp-kicad-vscode

    Workspace que combina um servidor MCP para automação de design de PCB com KiCad e o projeto de hardware (placa de circuito impresso) desenvolvido com ele.

    97 parts
  • 2 layers160 × 51 mmConsole a, the printed circuit board in 3D

    Console a

    jmcpheron/pico-quorum

    Several people, several keys, one Safe. Hardware approvals for Safe multisig wallets.

    38 partsMIT
  • 2 layers200 × 200 mmSignalFLowLab, the printed circuit board in 3D

    SignalFLowLab

    Serpant4632/SignalFLowLab

    130 parts
  • 6 layers84 × 98 mmFujiNet-5200-Rev0, the printed circuit board in 3D

    FujiNet-5200-Rev0

    FujiNetWIFI/fujinet-hardware

    Schematics and design files for FujiNet hardware

    145 parts142
  • 2 layers100 × 73.9 mmSecurity Alarm Panel, the printed circuit board in 3D

    Security Alarm Panel

    Matyas604/Security-Alarm-Panel

    Home Assistant Smart Home Alarm Control Panel with fingerprint reader, NFC/RFID card reader, motion radar, and touchscreen TFT display. It can control your smart home, not just your home security system.

    132 parts1GPL-3.0

Questions

How big is the Pw meter PCB?

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

What parts does the Pw meter use?

71 parts, built around the ESP32-S3-WROOM-1-N8, AP63205WU, AMS1117-3.3 and USBLC6-2SC6. 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 Pw meter KiCad files?

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

Can I use the Pw meter design in my own project?

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