To the right of the motor in this picture is a metal post that breaks an infrared beam sensor. This is how the unit knows where it is in a revolution.

              (c) 2005 - 2006 Alan Parekh             

electronics pic LED microcontroller lights hard drive