Skip to main content

Reply to "IR or Optical Sensors"

Stan, I need to add a little more to your above simple circuit (the circuit where 'HI when beam broken and no transistor'). Since one of my uses will be to assure that the train has cleared my isolated track section, and since the detector output is an arduino input, I don't want a momentary beam detection to open the relay under control (like between cars--and I know I could place detectors on diagonal but complexity is more fun). So I would like to put an adjustable delay in "beam detection". So when beam is broken, output's at approx. 5V, and then is detected, it slowly falls to it's lowest value. I would then use AC inputs on arduino to define input levels for relay trigger/no trigger (range is 0-255). And yes I could do sw debounce, but this should be easier--except for me.

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

×
×
×
×
×