

Pw meter
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
7ESP32-S3-WROOM-1-N8
SMD,25.5x18mm-40℃~+85℃ -98.2dBm 2.4GHz 20.5dBm 355mA 3V~3.6V 95mA Bluetooth5.0 ESP32-S3 Chip On-board PCB Antenna UART、SPI、I2C、I2S、USB SMD,25.5x18mm WiFi Modules ROHSEspressif SystemsWiFi ModulesAP63205WU
TSOT-23-6-40℃~+85℃@(TA) 1 1.1MHz 22uA 2A 3.8V~32V 5V Buck Built-in Fixed Overcurrent Protection、Light load efficient mode、Cycle-by-cycle current limiting、Hiccup current limiting、EMI optimization (spread spectrum) Step-down type Yes TSOT-23-6 DC-DC Converters ROHSDiodes IncorporatedDC-DC ConvertersAMS1117-3.3
SOT-223-40℃~+125℃ 0.003%Vout 1 1.1V@(800mA) 15V 1A 3.3V 5mA 72dB@(120Hz) Fixed Over Current Protection、Short Circuit Protection、Thermal shutdown Positive SOT-223 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSAdvanced Monolithic SystemsVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsUSBLC6-2SC6
SOT-23-60.35pF、0.8pF 100nA 150W@8/20us 15V 2 5V 6A@8/20us 6V ESD SOT-23-6 ESD and Surge Protection (TVS/ESD) ROHSUMWESD And Surge Protection (TVS/ESD)PEC11R-4215F-S0024
插件-30℃~+70℃ 10mA 24/24 5V Incremental Straight Two-phase output 插件 Rotary Encoders ROHSBournsRotary EncodersKT-0603R
0603-40℃~+85℃ 1.6mm x 0.8mm square LED 1.8V~2.4V 120° 20mA 300mcd 40mW 615nm~630nm 645nm Discrete Diode Red Water Clear 0603 LED Indication - Discrete ROHSHubei KENTO ElecLED Indication - DiscreteSS34
SMA(DO-214AC)-55℃~+125℃ 3A 40V 500uA@40V 550mV@3A Independent SMA(DO-214AC) Schottky Diodes ROHSMDDSchottky Diodes
README
README.mdPW Meter - EMB_1 Graduation Project

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

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:
- 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
sdkconfigto match actual hardware. Use usualidf.py menuconfigcommand to re-generate thesdkconfig. See also sdkconfig.defaults file for the minimal set of parameters that differ from ESP-IDF defaults (regenerate it withidf.py save-defconfigafter changing the configuration). - To build the firmware image, use standard ESP-IDF tools (CMake, idf.py, etc). Look here for a reference.
- 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).
- Connect the AC voltage source to the Voltage Transformer module (U6 sub-board).
- 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 floorparameter high enough to prevent bogus readings. - Connect a 7-30V DC power source to the J1 socket. The board itself should not consume more than 5 Watts.
- The Power Meter starts working immediately, displaying data on the OLED display.
- 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.
- 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 lineI (...) app_init: ELF file SHA256: 53ba1e2f1...(PIN53BAin this example), or can be computed from the build output withsha256sum build/pw-meter.elf(certutil -hashfile build\pw-meter.elf SHA256on 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/powerand<topic>/metrics/devicesub-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

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

Author
Copyright © Denys Zavorotnyi, 2026
License
Parts
71| Qty | Value | Footprint | References |
|---|---|---|---|
| 12 | 10k | Resistor_SMD:R_0805_2012Metric | R1, R2, R4, R5, R6, R8, R10, R15, R16, R17, R18, R19 |
| 7 | 100 nF | Capacitor_SMD:C_0805_2012Metric | C3, C5, C11, C15, C16, C17, C18 |
| 4 | 1k | Resistor_SMD:R_0603_1608Metric | R20, R21, R22, R23 |
| 3 | 10 uF | Capacitor_SMD:C_0805_2012Metric | C2, C4, C19 |
| 2 | 1 uF | Capacitor_SMD:C_0805_2012Metric | C8, C14 |
| 2 | 22 uF | Capacitor_SMD:C_0805_2012Metric | C12, C13 |
| 2 | 4.7k | Resistor_SMD:R_0805_2012Metric | R13, R14 |
| 2 | 5.1k | Resistor_SMD:R_0805_2012Metric | R11, R12 |
| 1 | 100k | Resistor_SMD:R_0805_2012Metric | R9 |
| 1 | 100nF 50V | Capacitor_SMD:C_0805_2012Metric | C10 |
| 1 | 100uF 50V | Capacitor_SMD:CP_Elec_8x10.5 | C6 |
| 1 | 10uF 50V | Capacitor_SMD:C_0805_2012Metric | C9 |
| 1 | 15 | Resistor_SMD:R_0805_2012Metric | R3 |
| 1 | 1k | Resistor_SMD:R_0805_2012Metric | R7 |
| 1 | 22 nF | Capacitor_SMD:C_0805_2012Metric | C1 |
| 1 | 22 uF | Capacitor_Tantalum_SMD:CP_EIA-3528-21_Kemet-B | C7 |
| 1 | 4.7uH | footprints:L_SXN-SDRH5D28 | L1 |
| 1 | AC current input | PJ-325C5-G:XKB_PJ-325C5-G | J2 |
| 1 | AMS1117-3.3 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U3 |
| 1 | AP63205WU | Package_TO_SOT_SMD:TSOT-23-6 | U4 |
| 1 | BLM18PG121SH1D | digikey-footprints:0603 | FB1 |
| 1 | BOOT | Button_Switch_SMD:SW_SPST_B3U-1000P | SW2 |
| 1 | DC 7-30V | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J1 |
| 1 | ESP32-S3-WROOM-1 | RF_Module:ESP32-S3-WROOM-1 | U1 |
| 1 | GM009605v4.3 | footprints:MODULE_GM009605v4.3 | U5 |
| 1 | Green | LED_SMD:LED_0603_1608Metric | D2 |
| 1 | LC_Tech_HW697_Module | footprints:LC_Tech_HW697_Module | U6 |
| 1 | PEC11R | digikey-footprints:Rotary_Encoder_Switched_PEC11R | S1 |
| 1 | RESET | Button_Switch_SMD:SW_SPST_B3U-1000P | SW1 |
| 1 | Red | LED_SMD:LED_0603_1608Metric | D3 |
| 1 | SS34 | Diode_SMD:D_SMA | D1 |
| 1 | UART | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J3 |
| 1 | USB JTAG/Serial | Connector_USB:USB_C_Receptacle_G-Switch_GT-USB-7051x | J5 |
| 1 | USBLC6-2SC6 | Package_TO_SOT_SMD:SOT-23-6 | U2 |
The 60 most common of 71 parts.
Similar boards
- 2 layers78 × 58 mm

- 4 layers100 × 80 mm

Lamp rev a
laminarforge/laminarforge-cad
Parametric CAD models (Rust + vcad) for LaminarForge open-source LAMP diagnostics device
107 parts - 4 layers130 × 105 mm

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 mm

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 mm

Console a
jmcpheron/pico-quorum
Several people, several keys, one Safe. Hardware approvals for Safe multisig wallets.
38 partsMIT - 2 layers200 × 200 mm

- 6 layers84 × 98 mm

FujiNet-5200-Rev0
FujiNetWIFI/fujinet-hardware
Schematics and design files for FujiNet hardware
145 parts142 - 2 layers100 × 73.9 mm

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.