In one embodiment, each light sensing module 111 includes an array of light sensing elements, such as photodiodes, of sufficient discreetness to detect the different widths and positions of the shadow 120 created by the different rotational positions of the cam 110.