As in this episode we will be looking at a simple design for a pressure fit endcap for a shelving unit which we are building. As the idea is to tapper this back from the opening to the closing point of the endcap to provide for a pressure fit.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
/* Open SCAD Name.: caps_v1.scad * Copyright (c)..: 2020 www.DIY3DTech.com * * Creation Date..: 07/05/2020 * Description....: cap for pipe (press fit) * * Rev 1: Develop Model * Rev 2: * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ /*------------------Customizer View-------------------*/ // preview[view:north, tilt:top] /*---------------------Parameters---------------------*/ // outer dia of rod to create cap ID rod_od = 18.4; // thickness of cap in mm (each side) cap_thick = 3.0; // height of cap in mm cap_high = 15.0; // tapper of opening in mm cap_tapper = 0.3; /*-----------------------Execute----------------------*/ main_module(); /*-----------------------Modules----------------------*/ module main_module(){ //create module difference() { union() {//start union //create main body for cap translate ([0,0,0]) rotate ([0,0,0]) cylinder(cap_high,(rod_od+(cap_thick*2))/2,(rod_od+(cap_thick*2))/2,$fn=60,true); } //end union //start subtraction of difference //create tappered opening translate ([0,0,cap_thick ]) rotate ([0,0,0]) cylinder(cap_high,(rod_od-(cap_tapper*2))/2,(rod_od+(cap_tapper*2))/2,$fn=60,true); } //end difference }//end module /*----------------------End Code----------------------*/ |
If your looking for looking 3D Printer, Laser Cutter and CNC Swag (T-Shirts, Hats, Mugs, etc), please support the channel by visiting our online shop at: http://swag.DIY3DTech.com Also subscribe to our parent YouTube Channel DIY3DTech.com YouTube Channel for 3D Printing, Laser Manufacturing and CNC Machining: http://YouTube.DIY3DTech.com
More Ideas!
OpenSCAD – Designing a Compression Cover!
Open SCAD – Complex Flange Designer!
OpenSCAD – Parametric Mounting Bracket!