I'd like to use a 10-30V SSP-ON-4A photoelectric sensor as an input to make a counter.
4 wire, NPN, 10-30V operating
The specs are at http://www.automationdirect.com/static/ ... 18mmss.pdf
From what I can tell, the four wires are :
Brown : L+ ( 10-30VDC )
Black : GND
White : signal ?
Blue : L- (Gnd?)
I'm thinking that I would connect L+ to 10V external supply, L- & Gnd to RPi ground, and the white wire to a GPIO, but I'm not sure exactly how to set it up, and don't want to fry the Pi.
Can anyone offer some help to an electronic newbie?