Six-pin trackball connector pinout:
PIN 1: Ground Black (2 wires)
PIN 2: + 5 VDC Red (2 wires)
PIN 3: Horizontal "A" Yellow
PIN 4: Horizontal "B" Green
PIN 5: Vertical "A" Blue
PIN 6: Vertical "B" Violet
Double green wire is to be tied to an Earth Ground within the machine.
Pinout of the optic boards:
Pin 1 - Output A
Pin 2 - +5V
Pin 3 - GND
Pin 4 - Output B