chiark / gitweb /
digispark-with-cable: wip progress
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 17 Oct 2023 19:25:39 +0000 (20:25 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 26 Oct 2023 17:10:37 +0000 (18:10 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
digispark-with-cable.scad

index e055eacc5f0cd9ea872604fb5a1104444d3989d8..b84f08d40960d4ccf7403a17670e625f9950616d 100644 (file)
@@ -42,12 +42,22 @@ strain_pitch_along = 10;
 strain_groove_d = 2;
 strain_groove_w = 3;
 
+fit_gap_z = 0.5;
+
 // calculated
 
+top_top_z = usb_wall_h;
+top_base_z = -board_th;
+
 strain_0_y_c = main_y_min - strain_w/2;
 strain_1_y_c = strain_0_y_c - strain_pitch_along;
 total_y_min = strain_1_y_c - strain_w/2 - side_wall_th;
 
+bottom_wall_top_z = (top_top_z + top_base_z) * 0.5 - fit_gap_z/2;
+cover_wall_top_z  = (top_top_z + top_base_z) * 0.5 + fit_gap_z/2;
+
+bop_side_wall_x = +board_w/2 + side_wall_th;
+
 module BothSides(){
   for (m=[0,1]) {
     mirror([m,0]) {
@@ -113,11 +123,16 @@ module Top(){ ////toplevel
       }
     }
     linextr_y_xz(total_y_min-1, main_y_min)
-      translate([0, -board_th])
+      translate([0, top_base_z])
       scale([1, strain_groove_d/strain_groove_w])
       circle(strain_groove_w/2, $fn = 8);
   }
 }
 
+module BottomMainElevation(){ ////toplevel
+  difference(){
+//    rectfromto([ 
+  }
+}
 module Bottom(){ ////toplevel
 }