Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I share the author’s concerns for off grid power use. 3 watts per drive (I assume a wall wart for a 3.5” drive) works out to 72watt hours per day. About 1/10th of a $200 solar panel. Double or triple that to cover batteries and electronics. Then you run into discontinuities in system sizing where you can’t easily add just one more panel. Conserving energy suddenly makes a lot of sense.

USB hubs with per port power control are the flying unicorn of hardware. Once in a while some vendor slips up and makes one, but by the time people figure it out the vendor has ended the model or replaced it with a different model under the same model number. It’s especially frustrating because many of the USB hub chipsets support the feature, but only if the manufacturer puts a switching transistor on each port. It literally would only cost pennies per port to have the feature.



Yepkit [1] makes these! They have 3 port hubs for USB 2 and 3, as well as single port "hubs" -- all controlled through a simple command-line interface or Python API. They also have other good stuff like USB controlled relay boards and upstream USB hubs to switch devices between hosts.

I've used their products in a variety of automation projects for clients and at home, and have only good things to say.

[1] https://www.yepkit.com/


Where were you two months ago when I desperately needed this for a project?! Thank you so much, this is awesome.


uhubctl's home page has a list of supported hubs. Apparently Amazon's house brand usb hub ("Amazonbasics") currently supports it, so it seems currently easy to find one.

I happened to have earlier purchased an industrial quality hub that's powered by 12-24V DC, and it turned out to have per-port power control.

Power factor is another concern BTW; I was measuring something like 0.15 power factor when the drive was powered down, and I'm unclear how such a low PF affects inverter efficiency (it probably depends on how good the inverter is). Powering the drives from 12V DC would probably improve their offgrid efficiency.


Why do vendors not want per port power control?


It's not that they don't want to, it's just a lot of extra cost for a product their bulk userbase won't be all that interested in. Think about it, before today (or even after), would you have spent $20+ more for a USB hub with per-port power control?


Not that much extra cost, I don't think. MOSFETs capable of switching USB loads are in the low single-digit cents each. It's probably just that everyone wants to squeeze out the last few cents of manufacturing cost.


This is overkill and would be much cheaper from china, but heres a suitable transistor for 6.6 cents each: https://www.digikey.com/product-detail/en/diodes-incorporate...

Found on my phone in 30 seconds. In units of 100k you could easily find something for 2 cents or less.


Sorry to be critical, but I think that MOSFET is undersized for an application trying to save power. There are two issues, it is N-channel so will require a charge pump in order to use on the high side. It also has a rather high R_DS of 0.3 ohms. This means when switching (just) 1A, it will cause a voltage drop of 0.3V and will dissipate I*2.R_DS = 0.3W. 6% power loss when delivering 5W.

I'm in the middle of building an enclosure for a cluster of Raspberry PI like boards (~2.4A draw) and want to have software power controls. So I've been looking to do this...

There are specialized devices for this sort of thing from many manufacturers. I'm currently looking at devices from TI - TPS22958. It has a built in charge pump and an R_DS on of 0.014 ohms. So dissipation will be a lot less 0.081W at 12W power delivery, a 0.7% power loss. This of course comes at a cost -- even in the 10,000 of units it will cost ~40 cents a unit.


I got one a couple of weeks ago for under 10. Didn't realise it was at all odd or rare.


Ah - sorry - I got an external hub; read this initially as I was waking up and completely misunderstood.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: