I did some googeling and found this pic with wires.
black = ground
red = 5v
yellow = signal
green = signal

Nothing will be damage if i change +5v and ground?
The diodes will be reverse-biased so the LEDs won't light up and the photodiodes won't switch.
The board won't work, but you aren't going to release the magic smoke that makes electronics work.

Shorting 5v and ground
together is a different story.

Should i connect it to spinner or trackball on the ipac?
Either one works.
- If you think you might add a trackball, put the spinner on the spinner pins.
- If you think you might add a second spinner, put both on the trackball pins -- one spinner is on X-axis pins and the other is on the Y-axis pins.
Scott