Wonder if you can help me with this even though it's not technically 12V but I have some trouble understanding USB-C PD for providing power to devices via USB bus.
I want to use Li-Ion batteries as a portable power source, and in the past it's worked with Intel NUCs and other small computers. Those used a barrel DC connector. With USB-C and PD protocol it's more complicated as it needs to do a "handshake" to settle on an appropriate voltage otherwise the device won't charge or power on. I bought this exact USB PD trigger board and connected the ends of my battery pack (with balance board) to the board.
Tried connecting the battery to both sides of the trigger, and the laptop motherboard I'm trying to use doesn't power on. The trigger board does seem to work though, with the LEDs indicating what voltage it can support (my pack outputs 15.5V at full charge so 5, 9, 12, and 15 V are all acceptable)
With another USB-C wall adapter the motherboard does power on. So I'm not sure what I'm missing here to make my DIY battery pack USB PD compatible.
I might do something similar to that, but instead of using the microcontroller to send data to the PC to monitor via PC software, I'll just use an onboard hardware to indicate the charge level. Basically making a simple voltmeter with a mini OLED display that I'm familiar with. It can read voltage from one of the analog pins and it should do fine, just as long as I use a proper voltage divider and diode to not accidentally fry the microcontroller.
I want to use Li-Ion batteries as a portable power source, and in the past it's worked with Intel NUCs and other small computers. Those used a barrel DC connector. With USB-C and PD protocol it's more complicated as it needs to do a "handshake" to settle on an appropriate voltage otherwise the device won't charge or power on. I bought this exact USB PD trigger board and connected the ends of my battery pack (with balance board) to the board.
Tried connecting the battery to both sides of the trigger, and the laptop motherboard I'm trying to use doesn't power on. The trigger board does seem to work though, with the LEDs indicating what voltage it can support (my pack outputs 15.5V at full charge so 5, 9, 12, and 15 V are all acceptable)
With another USB-C wall adapter the motherboard does power on. So I'm not sure what I'm missing here to make my DIY battery pack USB PD compatible.
Hmmm. I did a tad of searching to see if there exists a USB-HID battery monitor of some kind. I didn't find anything directly relevant, but this might be of interest to you?
This is way beyond what I'm able to understand, but it seems to provide documentation for USB-based battery charging and monitoring for PC applications using cheap and easily available microcontrollers? Making custom hardware (and firmware for it) like this sounds rather daunting, but possibly doable? And if using a separate charge circuit, not that I know anything at all about programming, but it sounds kinda-sorta doable to make a simple microcontroller-based voltage measurement device that reports this to Windows as a HID-compatible battery readout?
Edit: here's someone using an Arduino to "smartify" their dumb UPS, doing something similar.
I might do something similar to that, but instead of using the microcontroller to send data to the PC to monitor via PC software, I'll just use an onboard hardware to indicate the charge level. Basically making a simple voltmeter with a mini OLED display that I'm familiar with. It can read voltage from one of the analog pins and it should do fine, just as long as I use a proper voltage divider and diode to not accidentally fry the microcontroller.