I am looking at checking the state of a number of relays(Digital Input Seems to be the way to go to do this).. Most of them are 24VDC..
I am not very well versed in electronics at the moment... Still getting my toes wet.. So I am just making sure I get this right to keep that all important Magic Smoke on the inside of my arduino
It looks like I should be using a Transistor... but I am a bit confused when it comes to the grounding (negative) side... It seems wrong to have the negative side of various DC circuits of varying voltage all tied together since most transistors are 3 pole ... or do I put resistors in line of the - side to bring voltage potential down to 5V for the digital input.
I looked at 4 pole transistors (was thinking a 4 pole with isolate the - side of the circuit but that didn't seem to be the case from what I understood) don't seem to be what I want to use (from what I can figure out on my own)...
So I guess my question is... to use the digital input of the arduino to see if a 24VDC relay is active I should use a transistor and resistors on the negative side of the circuit to bring voltage potential down to 5VDC for the digital input? or is there a better way to do it?