From: Ian Jackson Date: Tue, 17 Oct 2023 19:46:23 +0000 (+0100) Subject: digispark-with-cable: wip progress X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=9f4c26026dceed852942646e8fbfa01d1e536e84 digispark-with-cable: wip progress Signed-off-by: Ian Jackson --- diff --git a/digispark-with-cable.scad b/digispark-with-cable.scad index 90f42bc..5e1136b 100644 --- a/digispark-with-cable.scad +++ b/digispark-with-cable.scad @@ -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(){