Subversion Repositories group.electronics

Rev

Blame | Last modification | View Log | RSS feed

// START lower Conical Knob
knob_t = 18;
knob_b = 22;
knob_h = 12;

knob_outer_wall = 2;


top_shaft_h = 6;
top_shaft_w = 8;

scale([0.5,0.5,1]) {


union() {
translate([0, 0, 0]) {
        difference() {
        union() {
                difference() {
                        difference() {
                                cylinder(knob_h,knob_b,knob_t);
                                
                                union() {
                                        
                                        difference() {
                                                cylinder(8,knob_b-knob_outer_wall,knob_t-knob_outer_wall);              //Hollowing
                                                union() {
                                                        translate([0,0,4])cylinder(top_shaft_h, top_shaft_w, top_shaft_w); // Top centre hole
                                                        difference() {
                                                                cylinder(12,12,12); // Flared bottom hole
                                                                cylinder(12,10,10);
                                                        }
                                                }
                                        }
                                }
                        }

                        difference() {
                                cylinder(12,6,6);
                                translate([4,-1,8]) {
                                        cube([2,2,4]);
                                }
                                translate([-6.5,-1,8]) {
                                        cube([2,2,4]);
                                }
                                
                        }
                }

                for ( i = [0:7] ) {
                        rotate (i*360/8, [0,0,1])
                                translate([7,-1,4]) cube([4,2,6]);
                }


        difference() {
                for ( i = [0:15] ) {
                        rotate (i*360/16, [0,0,1])
                                translate([10,-1,0]) {
                                        difference() {
                                                cube([12,2,12]);
                                        }
                                }
                }

                difference() {
                        cylinder(12,30,24);
                        cylinder(12,24,18);
                }
                
        }


        }
                union() {
                        translate([0,0,9]) {
                                difference() {
                                        cylinder(5,30,12);
                                        cylinder(5,24,9);
                                }
                        }
                        difference() {
                                cylinder(2,26,26);
                                cylinder(2,23,23);
                        }
                }
        }
}
}
}
// END Lower Conical Knob