News for hackers. Stuff that matters.
Re:USB Power Delivery for Hobby Projects by userbinator on Sunday October 29, 2023 @05:00AM (#38056862)
I guess the tl;dr of the article can be summed up as "better not". If all you need is to supply power, than a regular two-pole connector with a fixed voltage will save a ton of work and probably end up more reliable.
Re:USB Power Delivery for Hobby Projects by eternityforest on Sunday October 29, 2023 @05:22AM (#38056953)
I use a $2 PD trigger module on basically everything.

The only time I use 2.1mm is when I'm going to daisy chain or do something besides point to point, when I'm doing solar, or when I'm using the connector for something other than power(A voltage divider can protect your input from accidental power connection, so it's one of my favorite simple connectors).

Re:USB Power Delivery for Hobby Projects by adhesive_wombat on Sunday October 29, 2023 @05:37AM (#38057013)
Which PD module do you use?
Re:USB Power Delivery for Hobby Projects by eternityforest on Sunday October 29, 2023 @05:52AM (#38057064)
I think they're pretty much all unbranded and look similar, but now there are some with through hole outputs instead of pads to solder wire. If I didn't already have a stash I would probably get those and some right angle male headers.

Just watch out, 12v isn't a thing anymore in the new specs and might not work, best to build around 5v, 9v, 15v, or 20v.

Although usually if I just need 5v, I'm building around a D1 Mini ESP32 module that already has 5v built in.

Re:USB Power Delivery for Hobby Projects by rzzzt on Sunday October 29, 2023 @05:56AM (#38057081)
I saw one in a YouTube build video that allows you to select output voltage / what it will negotiate using a pushbutton, the selection is indicated by the color of an LED (and hopefully persisted when powered down).

Edit: the one chx linked to above is precisely of this kind

Re:USB Power Delivery for Hobby Projects by adhesive_wombat on Sunday October 29, 2023 @07:52AM (#38057650)
A unique twist on this is a module that is programmed by a flashing light, for example a web page with a flashing image: https://hackaday.com/2021/04/21/easy-usb%E2%80%91c-power-for...
Re:USB Power Delivery for Hobby Projects by Flameeyes on Sunday October 29, 2023 @09:10AM (#38058263)
That _was_ my first choice, to be honest, but the device (and the chip itself) was unobtanium at the point I was looking at it.
Re:USB Power Delivery for Hobby Projects by chx on Sunday October 29, 2023 @05:54AM (#38057074)
Re:USB Power Delivery for Hobby Projects by CosmicBee on Sunday October 29, 2023 @07:41AM (#38057595)
I'm not the parent but I'm a fan of WeAct's modules. https://www.aliexpress.us/item/3256803150519042.html

Fairly cheap but easy to configure with the dip switches and the boards I've been sent have been high quality with good solder joints.

Re:USB Power Delivery for Hobby Projects by MrBuddyCasino on Sunday October 29, 2023 @05:58AM (#38057093)
Same, I always have a few ready to use. Can’t wait for 48V USB to kill the remaining barrel plug usages.
Re:USB Power Delivery for Hobby Projects by bmicraft on Sunday October 29, 2023 @12:40PM (#38060259)
I've know about EPR since the spec was release, but reading "48V USB" somehow still caught me a bit of guard because it just sounds cursed
Re:USB Power Delivery for Hobby Projects by ilyt on Sunday October 29, 2023 @06:20AM (#38057207)
I use it when it's 12V, it's probably most popular barrel plug voltage and also used in a lot of audio devices (aside from guitar pedals which have 9V with reversed voltage... fuck that)
Re:USB Power Delivery for Hobby Projects by eternityforest on Friday November 03, 2023 @04:00AM (#38125773)
-9v is semi-tolerable for legacy reasons, what's really bad is center-positive 5v on what looks like a 1.3mm or so plug, as found in a cheap wireless DMX system. Still beats wired DMX though.
Re:USB Power Delivery for Hobby Projects by bsder on Sunday October 29, 2023 @06:09AM (#38057159)
No, it's "5V is easy. Anything above that is not."

For obvious reasons. Almost everything can tolerate 5V. Very few things can tolerate 9V and above.

Consequently, you need a complicated dance in order to ensure that everybody agrees before jamming 9V, 15V or 20V down the pipe. That dance has enough complexity that effectively everybody uses a full-blown Cortex M0 with a couple of purpose built analog blocks to carry it out.

See: https://www.infineon.com/cms/en/product/universal-serial-bus...

Re:USB Power Delivery for Hobby Projects by ilyt on Sunday October 29, 2023 @06:25AM (#38057228)
I'm waiting for something like that but with built-in buck-boost to make it immune for charger quirks
Re:USB Power Delivery for Hobby Projects by userbinator on Sunday October 29, 2023 @04:33PM (#38062473)
For higher voltages, use a barrel plug. There's a de-facto standard of 12V and 20V there, with the latter using a slightly larger plug. As they're used widely in laptops, parts are readily available.
Re:USB Power Delivery for Hobby Projects by bsder on Sunday October 29, 2023 @05:42PM (#38063107)
> For higher voltages, use a barrel plug. There's a de-facto standard of 12V and 20V there, with the latter using a slightly larger plug. As they're used widely in laptops, parts are readily available.

If you look at Digikey AC-DC power supplies, you can find about 12K that end in a barrel jack.

Of those 12K, only 6 are not a 2.5mmx5.5mm, 2.1mmx5.5mm or smaller barrel jack. And Digikey seems to not even stock the mating jack for those 6 power supplies.

There is also absolutely no standardization of what voltage level corresponds to which jack. I have about a half-dozen dead Beaglebone Black's over the years because I had two different power supplies on my lab bench for testing and the plugs were "juuuuust" close enough (2.5mm and 2.1mm are compatible enough to let you short things out even if you can't completely seat them) to let me put 12V or higher onto a 5V-only jack.

Re:USB Power Delivery for Hobby Projects by userbinator on Sunday October 29, 2023 @07:42PM (#38063994)
Look for laptop replacement parts.
Re:USB Power Delivery for Hobby Projects by JohnFen on Monday October 30, 2023 @04:24PM (#38075262)
I have learned to ignore the connectors on power supplies I buy and just expect to replace them with the ones I've standardized on in my lab.