- When you need dynamic load control - When mcu already has embedded USPD (some stm32g/WCH and others)
See the link to the reflow table protect in the readme.
In other words, when a simple "trigger" is ok for you, use it and be happy :). If something more complex required - then pdsink may be a good choice.
avidiax•1mo ago
One big issue that came up (and killed the idea) is that if you are not battery powered, then putting a USB-C power input on your device that will only work if you can negotiate 12V+ with adequate current will just cause confusion. In my case, I don't think I could even boot to an error message on 5V.
Phones and the like don't have this issue, since they are still usable (charging slowly) on 5V, but can make use of higher voltages and currents to charge faster.
So I guess my question for the implementer is how booting & negotiating on 5V and then accepting higher voltage is likely to work in practice.
delfinom•1mo ago
dmitrygr•1mo ago
prezk•1mo ago
avidiax•1mo ago
That's not to say that a boost converter doesn't have value, but it still leaves a gap where there could be confusion.
The confusion or complexity even multiplies if the device has additional USB-C for data transfer. In that case, you either have to mark one port as being the "power in" port, or you have to support power in and data out on all the ports, which gets complicated and expensive.
It would be a great move by the USB IF to think through this sort of thing more carefully. Right now the USB-c connector is so overloaded in terms of power, display modes, thunderbolt, speeds, etc. that it's very hard to predict whether two USB-c devices will connect and at what power or speed and with what capabilities. For power, it would be helpful to require supplies to have a standardized status LED so that e.g. green means that the supply is providing the highest power allowed by the device (not the supply), yellow means there's been a compromise, and red suggests an error condition.
Dylan16807•1mo ago
And yeah you're supposed to negotiate before pulling 2.4 amps at 5v but that's not usually a big deal in practice. Especially when you're actually supposed to stick to 100mA at first, but who does that.
A diagnostic LED sounds nice but given how most cables don't even have a speed printed on them good luck at something more invasive.
I will say that thunderbolt support isn't often an issue beyond the basic speed rating, and should be even less of one since USB4. And that power ratings are pretty simple, 60W or moreW. I really don't think the overloading of many different types of feature is a big deal, I think the single feature of unknown speed is the big issue-causer.
wongarsu•1mo ago
But it's a bit more involved than just replacing a barrel jack with a USB-C port, and would require some design considerations early on
bri3d•1mo ago
aix1•1mo ago
I have converted pretty much everything I have to USB-C, from toothbrushes to old laptops, and am very happy with the results. My solution is to only own high-quality power supplies with good support for PD. Having done this, the question "Why isn't this thing charging?" doesn't really arise.
amluto•1mo ago
Dylan16807•1mo ago
klysm•1mo ago
xyx0826•1mo ago
Looking back, funnily the top comment drew a parallel to negotiating USB-PD in u-boot, aka the bootloader. I suppose this wouldn’t have worked for your case though, since your device couldn’t boot at all on 5V.
rcxdude•1mo ago
(Relatedly, there's an empty niche in the market for a USB-C power bank that can act as a UPS: able to charge and discharge at the same time without interrupting the discharge port when the charge port is disconnected)
pu•1mo ago
heeen2•1mo ago
https://a.aliexpress.com/_Ez4GjPQ
and some powerbanks advertise passthrough charging eg. https://amzn.eu/d/hApICf9
rcxdude•1mo ago
avidiax•1mo ago
I think there's a soft version of this already available. The term is "pass-through" charging. The power bank that I have [1] will charge itself and the devices at the same time (albeit at reduced rates suitable for overnight charging).
I agree that it would be super useful to have a device that is explicitly designed to provide maybe 5V/5A for a Raspberry Pi 5 without interruption, and perhaps double as a power bank.
[1] https://www.amazon.com/dp/B0DHRYDNXL
rcxdude•1mo ago
fph•1mo ago
pu•1mo ago