The Groovy-TB 3" Trackball has three wire pairs, each with .100" spaced connectors. They are as follows.
Red and Black - +5vDC and GROUND respectively.
Blue and Purple - Y-Axis
Yellow and Green - X Axis
The orientation of the axis connection will vary, based on the encoder wheels ordered. If either axis is reversed, just unplug that wire pair from the Opti-Wiz, turn it 180 degrees, and re-connect.