chiark / gitweb /
light bracket: countersunk holes, better base, etc.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 22 Jul 2012 16:42:05 +0000 (17:42 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 22 Jul 2012 16:42:05 +0000 (17:42 +0100)
light-bracket.scad

index e83a465..0ec1337 100644 (file)
@@ -6,12 +6,14 @@ mainhole_thick=remote_thick+1;
 hook_hook_thick=1.5;
 hook_stem_thick=1.5;
 hook_hook_len=1.5;
-base_thick=6;
-base_margin=4.0;
+base_thick=3.5;
+base_margin=3.0;
 base_width=remote_width-base_margin*2;
 base_height=remote_height-base_margin*2;
 base_edgewidth=4;
 
+screw_ys=[ 28, remote_height-28 ];
+
 // origin is base of mainhole
 
 module mainhole() {
@@ -78,8 +80,6 @@ module base() {
 //             cube(center=false, [base_width,base_height,base_thick+10]);
 }
 
-screw_ys=[ 20, remote_height-30 ];
-
 module stuff() {
        hstuff();
        mirror([1,0,0]) hstuff();
@@ -90,9 +90,11 @@ module stuff() {
 
 module screwhole(holedia, csdia) {
        // screw goes along z axis downwards
-       // origin is base of countersink
+       // origin is top of head
        // results are positive, so this should be subtracted
        translate([0,0,-100]) cylinder(h=200, r=holedia/2);
+       csdist=(csdia-holedia)/2;
+       translate([0,0,-csdist]) cylinder(h=csdist, r1=holedia/2, r2=csdia/2);
        cylinder(h=100, r=csdia/2);
 }
 
@@ -101,8 +103,8 @@ module bracket() {
        difference() {
                stuff();
                mainhole();
-               for (y=screw_ys) translate([0, y, -base_thick+2])       
-                       screwhole(5,8); //dia=4 gives 2.9
+               for (y=screw_ys) translate([0, y, 0])   
+                       screwhole(5,9); //dia=4 gives 2.9
                                         //holedia=10 gives 9.0 want 7.0
                translate([0,0,-50 - base_thick])
                        cube(center=true,[300,300,100]); // print bed