I came across a need to drive a small 5V/30mA relay to indicate when my computer's powered.
I figure that I can energize it directly from USB port when my PC is ON.
So how about driving a small relay directly from USB +5V / 500mA supply - any cons against it?
A non-enumerated usb port will supply 100mA.
But the inrush could be a problem, that is why circuit that use usb-power have soft start.
Quote:
The USB 2.0 Spec allows a maximum capacity of 10uF and therefore a maximum Inrush of 50uC.
I dont know how to say this. Thank you ! . Some one whom knows what they are talking about .
I have a Real pet peve with products that don't follow the USB-IF guidelines . , Esp those y cables . http://www.usb.org/developers/compliance/
USB is not a power port . its a power'ed serial bus ....... Its not wise to treat a PC's USB port as a power connection with our considering
how much damage you can do to a computer with a USB hack..
If you take USB as a Smart power port Yes in a way you can * request * power units .
as Tony said above . the un requested max for a made to spec USB HOST is 100 mA ....
The Relay Might be OK IF you can make shure the pull in current is not too high .
May I ask why a Opto Isolator is not a option ?
the dinky LEDs in them can go high on 5 mA ..
Inrush current should not be an issue with an inductive load, since the current builds slowly, as opposed to a capacitive load, which looks -- briefly -- like a dead short. I might add a series diode on the +5V side, though, to protect the PC from effects of the recirculating current when the relay is turned off.
Comments
I can't think of anything wrong with doing this.
Duane J
But the inrush could be a problem, that is why circuit that use usb-power have soft start.
Quote:
The USB 2.0 Spec allows a maximum capacity of 10uF and therefore a maximum Inrush of 50uC.
I dont know how to say this. Thank you ! . Some one whom knows what they are talking about .
I have a Real pet peve with products that don't follow the USB-IF guidelines . , Esp those y cables .
http://www.usb.org/developers/compliance/
USB is not a power port . its a power'ed serial bus ....... Its not wise to treat a PC's USB port as a power connection with our considering
how much damage you can do to a computer with a USB hack..
If you take USB as a Smart power port Yes in a way you can * request * power units .
as Tony said above . the un requested max for a made to spec USB HOST is 100 mA ....
The Relay Might be OK IF you can make shure the pull in current is not too high .
May I ask why a Opto Isolator is not a option ?
the dinky LEDs in them can go high on 5 mA ..
and are not inductive surge devices ...?
http://www.usb.org/developers/powerdelivery/PD_1.0_Introduction.pdf here is some night reading .
are all you tinkers ready to deal with what is above !?
* thankfully the dumb state is 5V ........
-Phil
to play EE and do things safe .
I would at the very least slap it on a scope to watch for any kinda spikes prior to a full PC use .
Yeah, it has to be low power (30mA when energized) relay as I need dry contacts to perform other tasks