On Off shim - possible to shut off power to usb hub?


#1

Hi there,

I’m running a Pi0 and other gadgets from a powered USB hub. Can I use the On Off shim to cut the power to the USB hub, to turn off (and on) everything by pressing the button?
Thinking about connecting the power supply to the shim, then wire the 5v and gnd outs on the shim to the power connector on the hub.
Don’t have one yet, just considering whether it’ll work.

Thanks!


#2

im no expert ,but i do own a on off ship and i almost sure it will not do the trick …
i would suggest one of these ,i use them ,that price is a crazy amazon price they are only a couple of bucks at a home depo or electronics store


#3

only if either:

a) The USB hub is powered from the Pi (which is what you seem to be suggesting)

or

b) The USB hub is well designed and cuts power to all peripherals when no upstream data connection is present (some do, some don’t YMMV)

Depending on what you want to power on the USB bus, you might be better off going with option “b”- an external USB hub with its own power supply that toggles power off/on depending on whether the host is on. (I have a couple of hubs that do this)


#4

Thanks for your replies!

I guess I wasn’t exactly clear on what I wanted to do: Power the Pi and the peripherals from the hub, and cut the power to the hub when the button on the shim is pressed.
I got a shim in the meantime, just tried it, and it worked!
Wired up as in this pic:


#5

OOoooh! Now I understand.

You’re bonkers in the best kind of way. Great little hack!