rpdom wrote: ↑
Fri Aug 10, 2018 5:43 pm
The reason for the opto is to filter out any interference that the long leads may pick up. The opto-isolator is a lot less sensitive than a GPIO.
It will also protect the Pi from any high voltage spikes that can be produced by electromagnetic bells.
Sounds like a nice setup you have there.