chiark / gitweb /
poster-tube-lid: catch: adjust stalk height from v1
[reprap-play.git] / anglepoise-neck.scad
index ffa6873..aa39ce2 100644 (file)
@@ -3,25 +3,29 @@
 arm_depth = 25;
 arm_innerwidth = 9.60 - 0.50;
 arm_innerheight = 8.90 - 0.50;
-arm_pin_depth = (16.15 + 18.00)/2;
-arm_pin_dia = 1.5;
+arm_pin_depth = 18.50 + 1.0;
+arm_pin_dia = 1.5 + 0.7;
 
 armpart_hex_rad = 15;
 armpart_main_thick = 8;
 
-hingepin_dia = 3;
-hingenut_width = 6;
+hingepin_dia = 3 + 1.0;
+hingenut_width = 6 + 1.0;
 hingenut_depth = 4;
+hingenut_clear = 5;
 
-headpart_main_dia = 15 - 0.3;
-headpart_main_len = 14;
+headpart_main_dia = 15 + 0.3;
+headpart_main_len = 16 + 1.1;
 headpart_stub_protrude = 2;
-headpart_stub_width = 11.7 - 0.3;
+headpart_stub_width = 11.7 - 0.6;
 
 headpart_flatten_angle = 45;
 
 // computed
 
+armpart_hinge_height = arm_innerheight + hingenut_width/2 + hingenut_clear;
+armpart_main_height = armpart_hinge_height + headpart_stub_width / 2;
+armpart_main_width = headpart_stub_width;
 armpart_x_unit = armpart_hex_rad * tan(30);
 headpart_flatten_z = headpart_main_dia/2 * cos(headpart_flatten_angle);
 headpart_stub_support_x = headpart_stub_width * cos(59) / 2;
@@ -36,21 +40,15 @@ module ArmPart(){ ////toplevel
       mirror([0,-1,0])
       cube([arm_innerwidth, arm_depth+1, arm_innerheight]);
     translate([0, -arm_pin_depth, -50])
-      cylinder(r=arm_pin_dia/2, h=100);
+      cylinder(r=arm_pin_dia/2, h=100, $fn=20);
+  }
+  difference(){
+    translate([-armpart_main_width/2, 0, 0])
+      cube([armpart_main_width, armpart_main_thick, armpart_main_height]);
+    translate([0,50,armpart_hinge_height])
+      rotate([90,0,0])
+      cylinder(r=hingepin_dia/2, h=100, $fn=20);
   }
-  rotate([90,0,180])
-    linear_extrude(height=armpart_main_thick)
-    for (mir=[0,1])
-      mirror([mir,0,0])
-       difference(){
-         polygon([[-1, 0],
-                  [armpart_x_unit, 0],
-                  [armpart_x_unit*2, armpart_hex_rad],
-                  [armpart_x_unit, armpart_hex_rad*2],
-                  [-1, armpart_hex_rad*2]]);
-         translate([0,armpart_hex_rad])
-           circle(hingepin_dia/2, $fn=20);
-        }
 }
 
 module HeadPart(){ ////toplevel