From: Ian Jackson Date: Tue, 17 Oct 2023 19:30:40 +0000 (+0100) Subject: digispark-with-cable: wip progress X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=d4b4c7c844b1a78a944dc9fadd73eef1f2910fd9 digispark-with-cable: wip progress Signed-off-by: Ian Jackson --- diff --git a/digispark-with-cable.scad b/digispark-with-cable.scad index b84f08d..95a1aa7 100644 --- a/digispark-with-cable.scad +++ b/digispark-with-cable.scad @@ -42,12 +42,18 @@ strain_pitch_along = 10; strain_groove_d = 2; strain_groove_w = 3; +cable_space_z = 6; +bottom_floor_th = 1.5; + fit_gap_z = 0.5; // calculated top_top_z = usb_wall_h; top_base_z = -board_th; +bottom_base_z = top_base_z - cable_space_z - bottom_floor_th;; + +front_y_max = front_wall_th; strain_0_y_c = main_y_min - strain_w/2; strain_1_y_c = strain_0_y_c - strain_pitch_along; @@ -56,7 +62,7 @@ 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; +top_side_wall_x = +board_w/2 + side_wall_th; module BothSides(){ for (m=[0,1]) { @@ -131,8 +137,16 @@ module Top(){ ////toplevel module BottomMainElevation(){ ////toplevel difference(){ -// rectfromto([ + rectfromto([ -top_side_wall_x, bottom_base_z ], + [ +top_side_wall_x, top_base_z ]); } } module Bottom(){ ////toplevel + linextr_y_xz(total_y_min, front_y_max) + BottomMainElevation(); +} + +module BottomDemo(){ ////toplevel + Bottom(); + translate([0, 0, 0.25]) %Top(); }