Skip to the content
4 layers41 × 77.8 mmEsp32 F103 PowerMeter V1.0, the printed circuit board in 3D

Esp32 F103 PowerMeter V1.0

Emrecanbl/ESP32_Power_Meter

ESP32-S3 based three-channel power meter with INA3221, 2.8" ILI9341 + XPT2046 LVGL UI, USB-C pass-through (power-only), TP4056 charging. FreeRTOS.

Size
41 × 77.8 mm
Copper layers
4
Thickness
1.6 mm
Parts
47
Nets
70
Pads
227
Tracks, vias
471, 61
Pours
4
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
2 Nov 2025
Updated
18 Nov 2025

Overview

Esp32 F103 PowerMeter V1.0 is an open-source printed circuit board by Emrecanbl, from the Emrecanbl/ESP32_Power_Meter repository on GitHub. It is a 4-layer board of 41 × 77.8 mm with 47 parts on 70 nets, routed with 471 tracks and 61 vias.

It is built around the ESP32-S3-WROOM-1-N8, AMS1117-3.3 and TP4056-42-ESOP8. Its parts include 22 resistors, 8 connectors, 7 capacitors, 4 ICs and 3 diodes. It belongs with the sensors and measurement boards and the ESP32 boards of this library.

Main components

3

README

README.md

ESP32-S3 Power Meter (INA3221 · TFT · Qt Ui · SQLlite data base)

An ESP32-S3–based three-channel power meter built around INA3221. One channel supports USB-C pass-through so you can measure power flowing from USB-C IN → USB-C OUT; CC pins are tied for basic PD trigger behavior (power-only path).

Firmware stack: FreeRTOS. REST/WebSocket API is optional (may be added later). Live data can be streamed over USB-CDC; an optional ST7735 (160×128) SPI TFT can show basic status (no touch).

A custom 3D-printed enclosure is planned.



Features

  • 3 measurement channels via INA3221

    • Voltage (V), Current (A), Power (W), accumulated mAh / mWh
  • ESP32-S3 (Wi‑Fi + native USB/CDC)

    • UART header and USB device available on the board
  • USB‑C pass‑through (1 channel): measure power across IN → OUT

    • CC lines tied (basic PD role trigger; data lines not routed)
  • Optional TFT: ST7735 (160×128) SPI for basic on-device status (no touch)

  • Battery: TP4056 Li‑ion charger + AMS1117‑3.3 LDO

  • Enclosure: custom 3D‑printed case (to be published)


What’s New

  • Qt UI with Python and SQLite database integration

  • Added boot-time Check screen: verifies Wi‑Fi link and sensor health before entering the UI.

  • Check screen now shows connection status and the assigned IP address.

  • Main screen updated to display the device IP for quick access to the Web UI.

  • ST7735 (160×128) screen added (no touch).

  • Energy counter buttons are active (Start/Stop/Reset)

  • Sensor → UART JSON and Web UI hooked up

  • 4-task FreeRTOS skeleton: sensor, screen, web, uart

Gallery

  
First Check Screen   |   Main Screen

  
First Run Without Screen   |   With ST7735

  
3D board render   |   PCB layout

   Prototype (front)


Producted PCB (first article)


Assembled PCB


Schematic (block view)


Qt Ui

Hardware Overview

  • MCU: ESP32‑S3 module
  • Power Monitor: INA3221 (three shunts)
  • Optional Display: ST7735 (160×128) over SPI (no touch)
  • Power Path: USB‑C IN, USB‑C OUT (pass‑through on Channel 1)
  • PMICs: TP4056 Li‑ion charger, AMS1117‑3.3 regulator
  • Connectors: 3× screw terminals (IN/OUT/GND), UART header, 2× USB‑C

Block Diagram

text
USB-C IN ──┐                  ┌── USB-C OUT (pass-through)
           ├─ Shunt CH1  ─────┤
IN/OUT CH2 ├─ Shunt CH2  ─────┤──> Loads
IN/OUT CH3 ├─ Shunt CH3  ─────┘
           │
        INA3221  ── I2C ── ESP32-S3 ── SPI ── ST7735 TFT (optional)
                               ├─ (Optional) Wi‑Fi HTTP/WS
                               └─ USB‑CDC / UART (streaming)

Default Pins

FunctionESP32‑S3 Pin
I2C SDA / SCL (INA3221)GPIO __ / __
TFT (ST7735) MOSI / MISO / SCKGPIO __ / __ / __
TFT CS / DC / RSTGPIO __ / __ / __
UART RX / TXGPIO __ / __
USB‑CDCNative (S3)

Firmware (planned)

  • Framework: FreeRTOS

  • Modules:

    • sensor – INA3221 sampling, filtering, mAh/mWh accumulation
    • ui (optional) – minimal status pages on ST7735; device can run headless
    • (Optional) web – HTTP + WebSocket for live JSON
    • usb_stream – ASCII/JSON streaming over USB‑CDC (no file logging)
  • Example JSON (USB/Web, if enabled):

json
{"ch":1,"voltage":5.08,"current":1.12,"power":5.69,"mah_total":23.4,"mwh_total":118.9,"ts":1730529652}

Efficiency Measurement

The board can measure real conversion efficiency by comparing input and output power:

  • Channels: CH1 = input (P_in), CH2 = output (P_out)
  • Instantaneous: η_inst = P_out / P_in
  • Averaged (stable): EMA over 1–3 s → η_avg = P̄_out / P̄_in
  • Energy-based: η_energy = ΔmWh_out / ΔmWh_in (robust against short spikes)

Repo Layout (suggested)

text
/hardware
  schematic.pdf
  gerber/
/firmware
  /main
    board.h
    app_sensor.c
    app_ui_tft.c
    app_usb_stream.c
    (optional) app_web.c
  sdkconfig.defaults
/Photos
  PCB.jpg
  PCB_Model.jpg
  Prototype.jpg
  Prototype_Back1.jpg
  Prototype_Back2.jpg
  Real_PCB.jpg
  Schematic.png
/enclosure
  stl/  (3D-printed case files)

Roadmap

  • Bring‑up: INA3221 I2C readout
  • Publish 3D‑printed enclosure (STL)
  • USB‑CDC live streaming (no on‑device logs)
  • Minimal on-device status (ST7735)
  • Calibration UI + NVS storage
  • (Optional) REST/WS endpoints

Notes & Safety

  • USB‑C pass‑through is power‑only (data lines not connected).
  • CC lines support basic PD trigger behavior; PD profile support is limited.
  • Verify shunt resistor wattage and temperature rise.
  • Provide adequate thermal copper for TP4056 during charging.

License

MIT (to be added).

Parts

47
QtyValueFootprintReferences
111k5Resistor_SMD:R_0603_1608MetricR1, R2, R3, R4, R5, R11, R12, R13, R14, R15, R17
510kResistor_SMD:R_0603_1608MetricR18, R19, R20, R21, R22
30k02Resistor_SMD:R_0603_1608MetricR8, R9, R10
3100nCapacitor_SMD:C_0402_1005MetricC2, C3, C3
3LEDLED_SMD:LED_0603_1608MetricD1, D2, D3
3Screw_Terminal_01x03TerminalBlock_4Ucon:TerminalBlock_4Ucon_1x03_P3.50mm_VerticalJ3, J6, J8
222UCapacitor_SMD:C_0603_1608MetricC11, C12
25k1Resistor_SMD:R_0603_1608MetricR6, R7
2SW_PushButton_Switch_THT:SW_PUSH_6mm_H4.3mmSW1, SW2
2USB_C_Receptacle_PowerOnly_6PConnector_USB:USB_C_Receptacle_GCT_USB4125-xx-x_6P_TopMnt_HorizontalJ4, J5
10k4Resistor_SMD:R_0603_1608MetricR16
110uCapacitor_SMD:C_0402_1005MetricC1
11uCapacitor_SMD:C_0402_1005MetricC2
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U3
1Battery_CellConnector_Molex:Molex_Micro-Fit_3.0_43045-0212_2x01_P3.00mm_VerticalBT1
1Conn_01x03_PinConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ1
1Conn_01x14_SocketConnector_PinSocket_2.54mm:PinSocket_1x14_P2.54mm_VerticalJ2
1ESP32-S3-WROOM-1RF_Module:ESP32-S3-WROOM-1U2
1INA3221Package_DFN_QFN:Texas_RGV0016A_VQFN-16-1EP_4x4mm_P0.65mm_EP2.1x2.1mmU4
1TP4056-42-ESOP8Package_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalViasU1
1USB_C_Receptacle_USB2.0_16P_ESP32Connector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_HorizontalJ9

Similar boards

  • 2 layers147 × 105.9 mmWirelessControllerESP32, the printed circuit board in 3D

    WirelessControllerESP32

    EmmetGameDev/NevoltaNexusConsole

    Repository for design files and code for the Nexus console.

    66 parts4GPL-3.0
  • 4 layers340.8 × 104.6 mmNiphar, the printed circuit board in 3D

    Niphar

    mornepousse/Niphargus

    Niphargus — a slim, indestructible wireless split keyboard. ESP32 + nRF24, wired fallback, and an emergency kit hidden behind the USB port. The successor to the Rouge-Gorge.

    287 parts4MIT
  • 2 layers86 × 109.7 mmKiki player, the printed circuit board in 3D

    Kiki player

    alaotach/kiki-player

    46 parts2
  • 2 layers235.4 × 122.9 mmMonkiiBoard58, the printed circuit board in 3D

    MonkiiBoard58

    Simbashrek276/MonkiiBoard_Keyboards

    All of our open-source keyboards, projects, and files for you to tune and make one your own.

    148 parts2
  • 2 layers132.9 × 77.4 mmGBAKicad, the printed circuit board in 3D

    GBAKicad

    ArxDraco007/ArxController

    Making my own controller!

    67 parts
  • 2 layers43 × 43 mmNew version, the printed circuit board in 3D

    New version

    Robopoly/Kit-Botanique

    76 parts
  • 2 layers76 × 170 mmOpenCalc pcb V1, the printed circuit board in 3D

    OpenCalc pcb V1

    CoryPearl/opencalc

    A new and improved, better than the TI-84, open-source, graphing calculator

    18 parts2
  • 2 layers51.1 × 95 mmTalk e, the printed circuit board in 3D

    Talk e

    milovanpms/talk-e

    📻 — A simple LoRa-based talkie-walkie built on ESP32, operating on the 433 MHz frequency band for long-range, low-power wireless communication.

    75 parts4

Questions

How big is the Esp32 F103 PowerMeter V1.0 PCB?

It measures 41 × 77.8 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Esp32 F103 PowerMeter V1.0 use?

47 parts, built around the ESP32-S3-WROOM-1-N8, AMS1117-3.3 and TP4056-42-ESOP8. 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 Esp32 F103 PowerMeter V1.0 KiCad files?

From the Emrecanbl/ESP32_Power_Meter repository on GitHub, at the commit this page was made from: the board is Esp32_PowerMeter_V1.0/Esp32_F103_PowerMeter_V1.0.kicad_pcb and its schematic Esp32_PowerMeter_V1.0/Esp32_F103_PowerMeter_V1.0.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Esp32 F103 PowerMeter V1.0 design in my own project?

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