Skip to main content

Reply to "Using an optocoupler to connect insulated rail to input pin of shift register"

Chris,

The circuit I am using is very simple:

optoSchematic_schem

The 10v AC is from the same transformer that I am using for track power, so it has the same common as my isolated rail feeds. The Arduino pin is set as INPUT_PULLUP initially, and then it goes to LOW when the optocoupler is activated. I think JGL is just using a separate 12v DC source to trigger the optocoupler. He also added a diode on the inputs. The ground of the DC is connected to the layout ground.

Here is a link to my  Arduino sketch.  

OGR Publishing, Inc., 1310 Eastside Centre Ct, Suite 6, Mountain Home, AR 72653
800-980-OGRR (6477)
www.ogaugerr.com

×
×
×
×
×