added microswith holder
This commit is contained in:
19
scad/microswitch_holder.scad
Normal file
19
scad/microswitch_holder.scad
Normal file
@@ -0,0 +1,19 @@
|
||||
height = 12.8;
|
||||
width = 19;
|
||||
depth = 12;
|
||||
|
||||
mounting_diameter = 6.5;
|
||||
|
||||
mounting_hole_diameter = 1.5;
|
||||
mounting_hole_cc = 6.5;
|
||||
mounting_hole_depth = 10;
|
||||
mounting_offset = 5.5;
|
||||
|
||||
difference(){
|
||||
cube([width, depth, height], center = true);
|
||||
translate([width/2-13,-0.8,0])cylinder(r = mounting_diameter/2, h = height, center = true, $fn = 30);
|
||||
translate([-width/2,depth/2-mounting_offset,mounting_hole_cc/2])rotate([0,90,0])cylinder(r = mounting_hole_diameter/2, h = mounting_hole_depth, center = true, $fn = 30);
|
||||
translate([-width/2,depth/2-mounting_offset,-mounting_hole_cc/2])rotate([0,90,0])cylinder(r = mounting_hole_diameter/2, h = mounting_hole_depth, center = true, $fn = 30);
|
||||
translate([0,-depth/2+1,-4])cube([width, 2, 2], center = true);
|
||||
translate([width/2-1,0,-4])cube([2, depth, 2], center = true);
|
||||
}
|
||||
Reference in New Issue
Block a user