I have a device I'd like to turn off when power is available via a USB socket. The device that needs to be turned on/off is powered by a 12v DC 0.5 amp adapter. USB sockets should have a max 5v 0.5 amp power output.
Would it be safe to wire this up to a simple spst nc 5v relay such as:
Coil Resistance: 125ohm
Coil Voltage: 5VDC
Contact Configuration: SPST-NO, SPST-NC
Contact Current: 5A
Contact Voltage VAC: 250V
Contact Voltage VDC: 30V
Product Range: OMRON - G6B Series
Relay Mounting: Through Hole
SVHC: No SVHC (16-Jun-2014)
Would a usb 2 device to able to provide enough power to trigger the relay?