This is the secret behind the super precise galvos that move the laser beam around. A flap connected to the motor shaft partially covers 2 pairs of photodiodes. An LED shines light from the top and depending on the rotorโs position, each pair receive a different amount of light.