Raspberry Pi HQ external camera trigger circuit

Maybe using a laser will work with your planned setup as well? Laser-based sprocket registration