element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Frank Milburn's Blog Custom Height Tactile Switch with 3D Printed Cap
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: fmilburn
  • Date Created: 10 Sep 2019 6:39 AM Date Created
  • Views 2938 views
  • Likes 9 likes
  • Comments 3 comments
  • 3d model
  • switch cap
  • custom switch
  • tactile switch
  • Variable
  • 3d print
Related
Recommended

Custom Height Tactile Switch with 3D Printed Cap

fmilburn
fmilburn
10 Sep 2019

In a recent post by shabaz a clever method for lifting tactile switches up to the correct height to fit an enclosure is described.  There is also a useful list of switches with caps that fit.  That post inspired me to revisit a method I have used in the past and upgrade it.

 

My somewhat cruder method involved cutting off the tops of extra long tactile switches.  The body of the switch is tapered which meant no single cap would fit and so I used them without caps.

image

The improvement is to 3D print caps that automatically modify the insertion cavity as the height of the switch is varied.  The sketch below shows the dimensions of the switches I have.

image

The height of an unmodified switch body height "h" is 16.2 mm.  The base is 3.8 mm in height so the overall height when fully seated is 20 mm.  The base has a 3.5 mm diameter while the top is 3.0 mm diameter.  Since the taper is linear it is easy to calculate the diameter as a function of the switch body height "h" as shown in the box at the bottom of the sketch:  d = -0.0309 h + 3.5.

 

Also shown is a default sized cap 6 mm in diameter and 4 mm high.  The switch penetrates into the cap 3 mm and a clearance between the switch and the cap of 1.5 mm (which makes the cavity 3 mm larger in diameter) is assumed.  But all of this will be made a parameter inside Fusion 360 so it can be varied and the required changes updated automatically.

 

The parameter table is given below along with the sketch showing the dimensions for the shape that will be rotated to form the hollow to receive the shaft.

image

The parameter that would normally be changed is the overall height of the switch which has been given favorite status with a star.  Note that things such as cap height, cap width, etc. can all be changed if desired.  In the example shown the overall height is set to be 12.9 mm in the parameter table.  All other parameters are left at the default or calculated automatically from the expressions shown.  A radius was also added for aesthetics to several edges.  The resulting model is shown below.

image

The mesh was generated and the model sent to Ultimaker Cura for slicing.  The 3D printer is an Anycubic I3 Mega and the print in PLA takes only a minute on normal settings due to the small size.  Since the overall switch height was specified to be 12.9 mm, the "h" in the hand drawn sketch becomes 8.1 mm and using a pair of diagonal cutters the switch is cut down from 16.2 mm to approximately 8.1 mm.  Somewhat to my surprise, everything works.  In the photo below full height switches of 21 mm and switches of 12.9 mm high are shown.  The caps are fairly snug but the interference could be tweaked or the caps glued if not snug enough.

image

I ordered these switches from China sometime ago and don't have a model number or equivalent but there should be enough information here for others to generate a model.  The 3D printed caps are not going to be as nice as commercial equivalents but this is a quick way to get a prototype working and tested before ordering switches and caps from a distributor.

 

Thanks for reading, comments and suggestions are always welcome.

  • Sign in to reply

Top Comments

  • dubbie
    dubbie over 5 years ago +3
    A good solution to a common problem. I must admit to not actually using switches at all, I just disconnection a wire for power on/off and never have human - machine interfaces. Mobile robots generally…
  • shabaz
    shabaz over 5 years ago +3
    Hi Frank, Very cool solution! I like using these 6x6 switches, but the lack of usable button caps has always been a pain. I've not seen these switches with that height before, but even with the shorter…
  • fmilburn
    fmilburn over 5 years ago in reply to shabaz +3
    Making a cap is a pretty standard 3D printing application I imagine but I find the ability to make variable parameters in Fusion 360 with auto resizing really interesting.
  • fmilburn
    fmilburn over 5 years ago in reply to shabaz

    Making a cap is a pretty standard 3D printing application I imagine but I find the ability to make variable parameters in Fusion 360 with auto resizing really interesting.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 5 years ago

    Hi Frank,

     

    Very cool solution! I like using these 6x6 switches, but the lack of usable button caps has always been a pain.

    I've not seen these switches with that height before, but even with the shorter ones, they have the same large taper issue, i.e. if measured at the highest point, the shortest switch has the largest diameter, which makes it difficult to find universal button caps for them. This sort of thing is ideal to resolve with a 3D printer like you've done.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dubbie
    dubbie over 5 years ago

    A good solution to a common problem. I must admit to not actually using switches at all, I just disconnection a wire for power on/off and never have human - machine interfaces. Mobile robots generally don't need them. For communications I use Bluetooth. But if I did use switches in a box then this would be a good approach for me.

     

    Dubbie

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube