Please visit http://OpenSCAD.DIY3DTech.com for more information on this and many other projects! As in this episode we will be designing a 608zz skate bearing in Open-SCAD learning to create “races” as well as how to make chamfered edges on a cylinder too.
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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
/* * Open SCAD Name.: 608zz Bearing * Copyright (c)..: 2016 www.DIY3DTech.com * * Creation Date..:04/15/2016 * Description....: 608zz bearing model * * Rev 1: Developed 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. * * If used commercially attribution is required (OpenSCAD.DIY3DTech.com) * */ /*------------------Customizer View-------------------*/ // None /*---------------------Parameters---------------------*/ /*-----------------------Execute----------------------*/ 608zz(); /*-----------------------Modules----------------------*/ module 608zz() { difference() { union(){ //create outer race difference() { //create main body 22mm color ("green") cylinder(7,d=22.00,$fn=100,center=true); //create outer race 19.10 cylinder(8,d=17.90,$fn=100,center=true); }//end difference //create inter race difference() { //create inter body 10.80mm color ("green") cylinder(7,d=11.5,$fn=100,center=true); //create outer race 8.00mm cylinder(8,d=8,$fn=100,center=true); }//end difference }//end union //create inter bearing race rotate_extrude(convexity = 10, $fn = 100) translate([7.4, 0, 0]) circle(d= 3.969, $fn = 100); //create upper knock out for chamfer difference(){ translate([0,0,3.5-(0.3/2)]) cylinder(.3,d=22,$fn=100,center=true); translate([0,0,3.5-(0.3/2)]) cylinder(.31,d=22-0.6,$fn=100,center=true); }//end differance //create upper knock out for chamfer difference(){ translate([0,0,-3.5+(0.3/2)]) cylinder(.3,d=22,$fn=100,center=true); translate([0,0,-3.5+(0.3/2)]) cylinder(.31,d=22-0.6,$fn=100,center=true); }//end differance }//end difference //create outer chamfered edge translate([0,0,3.5-0.3]) color("red") rotate_extrude(convexity = 10, $fn = 100) translate([11-0.3, 0, 0]) circle(d= 0.6, $fn = 100); //create outer chamfered edge translate([0,0,-3.5+0.3]) color("red") rotate_extrude(convexity = 10, $fn = 100) translate([11-0.3, 0, 0]) circle(d= 0.6, $fn = 100); //create circle pattern for ball bearings for (i=[0:(360/7):360]) { //theta is degrees set by for loop from 0 to 360 (degrees) theta=i; //this sets the x axis point based on the COS of the theta x=0+(14.769/2)*cos(theta); //this sets the y axis point based on the sin of the theta y=0+(14.769/2)*sin(theta); //this creates the circle or other obect at the x,y point color ("red") translate([x,y,0])sphere(d=3.969, $fn=100); }//end for loop for circle creation //top bearing cover difference() { //create inter body 10.80mm color ("yellow") translate ([0,0,3]) cylinder(.1,d=18,$fn=100,center=true); //create outer race 8.00mm translate ([0,0,3]) cylinder(.2,d=11,$fn=100,center=true); }//end difference //bottom bearing cover difference() { //create inter body 10.80mm color ("yellow") translate ([0,0,-3]) cylinder(.1,d=18,$fn=100,center=true); //create outer race 8.00mm translate ([0,0,-3]) cylinder(.2,d=11,$fn=100,center=true); }//end difference } //end 608zz module /*----------------------End Code----------------------*/ |
More Ideas!
Open SCAD – Scale Guides!
Open SCAD – Introduction Part 1 for New Users!
Open SCAD – Universal Base Designer!