chiark / gitweb /
fairphone-case: wip hinge
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 18:38:58 +0000 (18:38 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 18:38:58 +0000 (18:38 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index 68b906d678c3100aadf3801e6732195c5d31989c..2588bbc4841085cb01c35a98f44031e01158269a 100644 (file)
@@ -56,6 +56,12 @@ lid_gap_x = 0.25;
 lid_gap_z = 0.25;
 lid_lip = 1.75;
 
+foldover_gap = 0.50;
+foldover_hinger_gap = 0.50;
+
+hingescrew_nut_dia = 4.72 + 0.50; // washer, actually
+hinger_th = 2;
+
 $fa = 5;
 $fs = 0.1;
 
@@ -120,6 +126,19 @@ bppL = lpp10 + [5,0];
 bppK = [ bppL[0], bppN[1] ];
 bppJ = [ bppN[0], bppL[1] ];
 
+// hinge plan
+hp_rn = hingescrew_nut_dia;
+hp_r2 = hp_rn + hinger_th;
+
+hppU = lpp13;
+hppS = epp2o[1] + [0,-1] * case_th_bottom;
+hp_k = 0.5 * (hppU[1] - hppS[1] + foldover_gap);
+
+hppM = [ epp4[0] - foldover_hinger_gap - hp_r2,
+        0.5 * (hppU + hppS)[1] ];
+hppT = hppM + 0.5 * [0,+1] * hp_k;
+hppB = hppM + 0.5 * [0,-1] * hp_k;
+
 module rectfromto(a,b) {
   ab = b - a;
   translate([min(a[0], b[0]), min(a[1], b[1])])