Standoff height for thumb joystick

I am trying to mount a couple of Sparkfun’s thumb joysticks on to a panel of 1/8" thick MDF. I’ve drilled a large hole for the thumbstick itself, and drilled holes for mounting screws where the PCB mounting holes are on the breakout board (https://www.sparkfun.com/products/9110). BUT I can’t figure out what the appropriate standoff height is. Too long and the joystick won’t be able to move enough, too short and it will impact the bottom of the panel. The standoffs also can’t be too thick because if so they will rub against the joystick. Anyone have a proven solution for this? I did find a 3d printed mount (https://www.thingiverse.com/thing:10850) but I don’t have space for it on my panel. I’m also considering small bolts with nuts to make it adjustable, but then I have concerns about leveling.

Here’s a picture of what I’m trying to accomplish:

https://imgur.com/a/maaYNMK

(here’s a link if that doesn’t work: https://imgur.com/a/maaYNMK)

Hi mrpeverill,

The best options SparkFun carries would be a spacer/standoff. You can view our entire category of those components [here. A plastic standoff would be a good adjustable option since you could shave them down a bit if you find out the joystick is rubbing against them. All you would need is 4-40 screws to secure them into place.

I hope this helps you find the right standoffs for your project (the photo looks really cool BTW!). Other users may have some better options similar to the 3D print you found on ThingVerse so they might chime in as well. Let us know if you have any other questions about our standoffs or other SparkFun products you are using in your project and we would be happy to help as much as we can.](https://www.sparkfun.com/categories/257)

You can make a quick standoff by cutting the body of a disposable pen (after removing the ink…)

/mike