I came up with a neat way to mount a Sparkfun PS/2 trackball
into my 12mm thick control panel.
I cut a 50mm hole in my control panel top using a hole saw.
I route the hole slightly on both sides using a rounding bit to give a smooth edge.
Here's the trackball
I want to discard the top part of the casing. I use a flat head screwdriver to open the trackball.
The top pops off.
The trackball has 2 connected cables.
1) The PS/2 cable
2) Wiring for 3 buttons.
The connectors can be unclipped. This is useful if you don't want to use the 3 extra buttons that the trackball supports. The trackball buttons are compatible with KADE, so i'll leave them connected.
The ball sits on top of rollers and can be lifted off.
The top of the trackball case is 12mm thick - same thickness as my MDF
So trackball will mount under the control panel
The encoder wheels are the same height as the mounts, so I will need to use a washer on the mounts to give wheels room to turn.
I use a little hot glue under the washers to stop them from moving out of position.
Trackball is secured in place with 50mm long screws
Here's a side view
Other controls fitted to panel.
Trackball lights up when it is powered up. Nice. It changes colour too when connected buttons are pushed. Not bad for a $15 trackball eh?