I have what I think is a pretty basic electronics question. I need to sense voltage if a switch is tripped. The sensor must be galvanically isolated from the circuit and feeds back to a Due.
The switch in question is 3 terminal SPDT, which controls a constant current source (28V, ~6A). I was thinking of using some kind of optoisolator on the NC side (switch is depressed, need to sense when no longer depressed -> when it goes from NO position to NC). However, I'm not entirely sure how to deal with the CC source. Do I use a current shunt and then feed it into some chonky resistors and send it to ground? Are there optoisolator devices that can withstand that current/voltage directly (I looked and didn't see any, but I am still learning data sheets)?
Advice/suggestions very welcome.
Thank you for your time.