this
Member level 2

I have a usb device powered from usb (5V).
I want my device to turn on/off another device running on 12V.
What is the proper way of doing it?
My idea on how to do this is:
Does it makes sense? If so, should I have both grounds connected together, is it safe for PC?
If not, how do I solve this? Relay? or...?
TIA
I want my device to turn on/off another device running on 12V.
What is the proper way of doing it?
My idea on how to do this is:
Code:
^12V
|
|
---
12V dev.
---
|
|
/
usb----|<
\
|
|
|
v gnd
Does it makes sense? If so, should I have both grounds connected together, is it safe for PC?
If not, how do I solve this? Relay? or...?
TIA