I need to start by saying I do not speak the lingo, I am not an electrical person. So please forgive me and have patience as I attempt to describe my issue.
I have the following four items:
Arduino UNO
12v power supply with ground
12v power supply with no ground
Limit Switch configured for normally closed
Optocoupler that requires 12v
My issue is attempting to wire the limit switch to the optocoupler board on one side, and to the arduino uno on the other side.
I am not sure if I supply 12v to both sides of optocoupler, one side, or attach ground from optocoupler to arduino ground, and if so which ground?
I have attached a drawing and photos of the items.
Hopefully someone can point me in the right direction.
Thanks
Zach









