Blooming forum, Just typed a long erply and lost it.
Short version:
sensor optotransistor ran from same regulated supply as the comparator so not much variation and the signal and set point are ratiometric.
Arming is so circuit can tell the difference between nothing in the opto and the target slot. Basically the sequence is:
A/ Nothing in optocoupler, photo transistor "ON" – not home
B/ Solid part of target enters optocoupler, photo transistor "OFF" Circuit "arms"
C/ Slot in arget aligns with sensitive axis of optocoupler, photo transistor "ON" – in home position.
As a bonus step B is used to switch the speed of the axis during homing to a slower speed allowing faster more accurate homing.
You don't need the arming for a pendulum detector. If you have trouble screening the pendulum from ambient light, a long, curved target that obscures the slot throughout the swing, with slot or hole a trigger point, will help because it will block ambient light as well as the LED.
Robert G8RPI.