USB-C Power Delivery (PD) has become the standard for powering phones, tablets, and even laptops. With voltages from 5 V to 20 V and power levels up to 100 W, a single USB-C charger can replace many traditional power supplies. For makers, this is a huge opportunity—if you have the right tools to measure and understand what’s happening.
This project presents two open-source devices that make USB-C PD transparent:
- OLED Power Meter
Shows voltage, current, and power on a small display. Plug it between charger and load, and you instantly see the values.
- Wi-Fi PD Logger
Connects to your network and serves a web interface. It displays live readings, logs data for hours, and generates plots of voltage, current, and power over time. Perfect for analyzing charger stability and load behavior.
Both tools share a common architecture: a PCB with USB-C connectors, a 50 mΩ shunt resistor, and an INA219 sensor for precise measurement. The Power Meter uses an STM32 microcontroller with OLED display, while the PD Logger is based on an ESP-01s Wi-Fi module.
To power the microcontroller, a step-down converter generates 3.3 V from any PD voltage. CC and VCONN lines are passed through unchanged to handle negotiation, so the devices work with standard USB-C chargers.
All production data is included in the GitHub repository: schematics, PCB layouts, 3D-printable cases, and firmware. The boards can be manufactured at JLCPCB (or any other PCB house), and the cases are designed in Fusion 360.
With these tools, you can transform an ordinary USB-C charger into a flexible lab companion—whether you just need quick measurements or long-term power logging.
🔧 Technical Features
- Voltage range: 5 V – 20 V (depending on charger PD profile)
- Current measurement: via 50 mΩ shunt, resolution ~1 mA
- Power calculation: real-time from voltage × current
- Measurement IC: INA219 over I²C
- Microcontrollers:
- STM32F0 (OLED Power Meter)
- ESP-01s (Wi-Fi PD Logger)
- Display: 0.96” OLED (I²C, Power Meter only)
- Logging: PD Logger stores several hours of data in local flash
- Web interface: live values updated every 5 s; plots for voltage, current, and power
- Data export: CSV file download from PD Logger
- Enclosures: 3D-printed, designed in Fusion 360
- PCB source: Gerber files provided; tested with JLCPCB fabrication
Ludwin


suggest add the link to the github location in the initial description, not save it until (is it almost the very) end of the text (only place I could find the link was in the last shown "log")