A position detector for use in a bar code scanner including a laser and an optical assembly, the optical assembly including a rotating portion, the rotating portion being attached to a motor, the laser emitting light through the optical assembly, the optical assembly receiving and directing reflected light, the position detector operating to detect the timing of a scan of a bar code and the position of the rotating portion of optical assembly at the time of the scan of the bar code, the position detector comprising:
- a video transition detector for detecting a video signal produced by reception of reflected light by the optical assembly;
- a pulse generator associated with the motor, the pulse generator producing a reference pulse for each revolution of the motor indicative of the time at which the motor is in a reference position;
- a pulse detector for detecting the pulses produced by the pulse generator;
- a pulse counter for counting pulses detected by the pulse detector;
- a clock for producing an accurate time elapsed count of the time after a first reference pulse;
- time data storage for storing a time count produced by the clock;
- and
- a processor for receiving the accurate time elapsed count and computing the time and position of the motor at the detection of the video transition.