
USB PD monitor ESP01s
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 PD monitor V1 is an open-source printed circuit board by lhm0, from the lhm0/pd_logger repository on GitHub. It is a 2-layer board of 30 × 49.3 mm with 34 parts on 70 nets, routed with 404 tracks and 151 vias.
It is built around the STM32F103C8T6, AP63203WU and B5819W. Its parts include 14 capacitors, 7 ICs, 5 resistors, 3 diodes and 3 connectors. It belongs with the power boards and the STM32 boards of this library.
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 |
|---|---|---|---|
| 5 | 100n | Capacitor_SMD:C_0402_1005Metric | C1, C2, C3, C4, C8 |
| 3 | ~ | my_footprints:JLC_tooling_hole | U5, U6, U7 |
| 2 | 10p | Capacitor_SMD:C_0402_1005Metric | C9, C10 |
| 2 | 22µ | Capacitor_SMD:C_0805_2012Metric | C13, C14 |
| 2 | 2k2 | Resistor_SMD:R_0402_1005Metric | R5, R6 |
| 2 | B5819W | Diode_SMD:D_SOD-123 | D1, D3 |
| 1 | 0.66inch OLED display | my_footprints:OLED_display_0_66 | U3 |
| 1 | 100n | Capacitor_SMD:C_0603_1608Metric | C12 |
| 1 | 10k | Resistor_SMD:R_0603_1608Metric | R1 |
| 1 | 10n | Capacitor_SMD:C_0402_1005Metric | C6 |
| 1 | 10µ | Capacitor_SMD:C_0603_1608Metric | C5 |
| 1 | 10µ | Capacitor_SMD:C_0805_2012Metric | C11 |
| 1 | 16MHz | Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm | Y1 |
| 1 | 1k | Resistor_SMD:R_0402_1005Metric | R7 |
| 1 | 1µ | Capacitor_SMD:C_0603_1608Metric | C7 |
| 1 | 4µ7 | Inductor_SMD:L_APV_APH0420 | L1 |
| 1 | 50 mOhm | Resistor_SMD:R_2512_6332Metric | R8 |
| 1 | AP63203WU | Package_TO_SOT_SMD:TSOT-23-6 | U2 |
| 1 | Conn_01x06_Pin | my_footprints:header_90degree_01x06_back | J1 |
| 1 | Debug | my_footprints:4pin | J2 |
| 1 | INA219AxDCN | Package_TO_SOT_SMD:SOT-23-8 | U4 |
| 1 | STM32F103C8T6 | Package_QFP:LQFP-48_7x7mm_P0.5mm | U1 |
| 1 | USB_C_Receptacle_USB2.0_16P | my_footprints:USB_C_Receptacle | J4 |
| 1 | red | LED_SMD:LED_0603_1608Metric | D2 |

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.


Bhakti-A/Maya_V_FlightController
This is a custom flight controller PCB designed for drones.


enkhbold470/spinner
12-24 V FOC BLDC motor controller: STM32G431, three IR2104 half bridges with 60 V MOSFETs, MT6701 encoder, CAN FD. 4-layer KiCad 10 board.

ArduProject/PCB_DRONE_C8
En este repositorio encontrareis los archivos de fabricación y las listas de montaje del PCB con STM32F103C8 que hemos visto en el curso.



It measures 30 × 49.3 mm and has 2 copper layers, 1.6 mm thick.
34 parts, built around the STM32F103C8T6, AP63203WU and B5819W. 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_PD_monitor_STM32_V1/USB_PD_monitor_V1.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.