chiark / gitweb /
digispark-with-cable: wip progress
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 17 Oct 2023 21:42:28 +0000 (22:42 +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 3eefdeab30062df5b2aeef5788b845051737eddb..3c9169de672eaf396ddef929c37e3c387ba629fd 100644 (file)
@@ -58,6 +58,8 @@ cover_ceil_th = 0.9;
 // calculated
 
 strap_w = strain_w;
+strap_cutout_x = side_wall_th * 2;
+strap_cutout_z = side_wall_th;
 
 top_top_z = usb_wall_h;
 top_base_z = -board_th;
@@ -87,6 +89,23 @@ module BothSides(){
     }
   }
 }
+module StrapCutouts(y_c, z_top){
+  for (z = [ bottom_base_z, z_top ]) {
+    BothSides(){
+      translate([ -total_side_wall_x, y_c, z_top ]) {
+       cube([ strap_cutout_x*2,
+              strap_w,
+              strap_cutout_z*2 ],
+            center=true);
+      }
+    }
+  }
+}
+
+module CoverStrapCutouts(){
+  StrapCutouts( -cover_strap_c_d_y, cover_top_z );
+}
+
 module FrontWallsPlan(slop) {
   BothSides(){
     rectfromto([ -board_w/2 - side_wall_th,    0             ],
@@ -220,9 +239,14 @@ module CoverMainElevation(){
   }
 }
 module Cover(){ ////toplevel
-  linextr_y_xz(main_y_min, front_y_max)
-    CoverMainElevation();
-  CoverRegistrations();
+  difference(){
+    union(){
+      linextr_y_xz(main_y_min, front_y_max)
+       CoverMainElevation();
+      CoverRegistrations();
+    }
+    CoverStrapCutouts();
+  }
 }
 
 module BottomDemo(){ ////toplevel