
USB PD monitor V1
lhm0/pd_logger
This repository contains two DIY gadgets to monitor and log USB-C Power Delivery (PD). Both devices are designed to be easy to build, hackable, and useful for makers who want to explore USB-C PD.

This repository contains two DIY gadgets to monitor and log USB-C Power Delivery (PD). Both devices are designed to be easy to build, hackable, and useful for makers who want to explore USB-C PD.
USB plug is an open-source printed circuit board by lhm0, from the lhm0/pd_logger repository on GitHub. It is a 2-layer board of 11.5 × 16 mm with 4 parts on 21 nets, routed with 107 tracks and 7 vias.
Its parts include 2 ICs and 2 connectors.
This repository contains two DIY gadgets to monitor and log USB-C Power Delivery (PD).
Both devices are designed to be easy to build, hackable, and useful for makers who want to explore USB-C PD.
I was asked by @simonsayshomeassistant whether PD Logger could be connected using MQTT. The answer was "no", but I really liked the idea and therefore implemented the MQTT feature today.
I have added a MQTT button to the web interface:
It starts the MQTT configuration page, which looks like this:
Please note: I have tested MQTT with test.mosquitto.org and with a local mosquitto server. From what I see, it all works fine. However, I have not tested with home assistant, simply because I do not have home assistant and know just little about it. Please provide feedback!
Best regards, Ludwin
DIY Power Meter
Small device with an OLED display showing voltage, current, and power in real time.
Powered by an STM32 microcontroller.
PD Logger
Wi-Fi enabled device based on ESP-01s.
Logs voltage, current, and power for several hours and serves interactive plots in any web browser.
/electronics)/mechanics/softwareAll production data is included in /electronics so you can order, print, and build your own devices.
http://pd-logger.local → see live values.
This project is licensed under the
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license.
You are free to share and adapt the material, for non-commercial purposes only,
as long as you provide proper attribution and distribute your contributions under the same license.
For details, see the LICENSE file.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | ~ | my_footprints:JLC_tooling_hole | U1, U2 |
| 1 | Conn_01x06_Pin | my_footprints:header_01x06 | J1 |
| 1 | USB_C_Plug | my_footprints:C168690 | P1 |

lhm0/pd_logger
This repository contains two DIY gadgets to monitor and log USB-C Power Delivery (PD). Both devices are designed to be easy to build, hackable, and useful for makers who want to explore USB-C PD.

lhm0/pd_logger
This repository contains two DIY gadgets to monitor and log USB-C Power Delivery (PD). Both devices are designed to be easy to build, hackable, and useful for makers who want to explore USB-C PD.

joypad-ai/joypad-os
Universal controller firmware for building adapters, dongles, and custom controllers.


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

tardate/LittleArduinoProjects
a collection of "Little Electronic & Arduino Projects", most involving electronics or an Arduino in one way or another!

drandyhaas/KiCadRoutingTools
A set of Python/Rust tools to aid routing in KiCad

osy/XG_Mobile_Station
Open source eGPU dock for ROG Ally and ROG Flow

Luos-io/luos_engine
Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

NVNTLabs/switch2-SDEX2M2
Micro SD Express to M.2 NVME Adapter for Nintendo Switch 2
It measures 11.5 × 16 mm and has 2 copper layers, 1.6 mm thick.
4 parts. 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.
From the lhm0/pd_logger repository on GitHub, at the commit this page was made from: the board is electronics/USB_plug/USB_plug.kicad_pcb and its schematic electronics/USB_PD_monitor_ESP01s/MCU.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask lhm0 before reusing the design.