chiark / gitweb /
digispark-with-cable: wip progress
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 17 Oct 2023 19:46:23 +0000 (20:46 +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 90f42bc9c5982c535c26295965292a13507175b6..5e1136b46940749059fd0cb1292bbb39d28a9b69 100644 (file)
@@ -11,7 +11,7 @@ usb_tongue_w_slop = +0.5;
 usb_wall_h = 4.54 - 2.04;
 usb_ceil_th = 0.425;
 
-side_wall_th = 1.5;
+side_wall_th = 1.5; // XXXX rename wall_th
 
 board_l = 17.56 + 0.2;
 board_w = 19.14 + 0.2;
@@ -43,6 +43,7 @@ strain_groove_d = 2;
 strain_groove_w = 3;
 
 cable_space_z = 6;
+cable_dia = 5;
 bottom_floor_th = 1.5;
 
 fit_gap_z = 0.5;
@@ -150,13 +151,31 @@ module BottomMainElevation(){
               [ +total_side_wall_x, bottom_wall_top_z    ]);
 
     TopElevationForCutout();
-    rectfromto([ -board_w/2, bottom_base_z + bottom_floor_th ],
-              [ +board_w/2, 20         ]);
   }
 }
 module Bottom(){ ////toplevel
-  linextr_y_xz(total_y_min, front_y_max)
-    BottomMainElevation();
+  difference(){
+    union(){
+      linextr_y_xz(total_y_min, front_y_max)
+       BottomMainElevation();
+    }
+
+    linextr_y_xz(total_y_min + side_wall_th,
+                front_y_max - side_wall_th)
+      rectfromto([ -board_w/2, bottom_base_z + bottom_floor_th ],
+                [ +board_w/2, 20         ]);
+
+    linextr_y_xz(total_y_min - 1,
+                total_y_min + side_wall_th + 1){
+      translate([ 0, top_base_z ]){
+       hull(){
+         translate([ 0, -cable_dia/2 ])
+           circle(r = cable_dia/2, $fa = 10, $fs = 1);
+         square([ cable_dia, 0.1 ], center=true);
+       }
+      }
+    }
+  }
 }
 
 module CoverMainElevation(){