Hello,
I have purchased a retroreflective photoelectric sensor switch from ebay, it runs at 10-30 volts. I would like some advice on how to connect it to the GPIO connector on the raspberry pi.
I have connected the switch to a 12volt supply, the switch has three wires +, - and the third wire becomes live (at 12volts - i guess) when the switch is activated. So I'm guessing I need to reduce that voltage in order to not fry the pi.
The end objective is to connect two of these sensors and measure the time between them being tripped, to make a rudimentary speed trap.
Any advice greatly received.
Robin