chiark / gitweb /
digispark-with-cable: strap width
[reprap-play.git] / digispark-with-cable.scad
index 379a7e972bb2a7b226b3969dab16d2c3a4e57047..23b6c2eb7dd769b9ea880982daf6a2cca691f7bf 100644 (file)
@@ -38,12 +38,12 @@ small_walls = [
 chip_cutout = [[ -sw_to_edge + 4.20,    -3.75 ],
               [ -sw_to_edge + 11.95,  -11.90 ]];
 
-strain_w = 2.0 + 0.5;
-strain_t = 1.0 + 0.5;
+strain_w = 3.5 + 0.5;
+strain_t = 1.5 + 0.5;
 strain_pitch_across = 5;
 strain_pitch_along = 10;
 strain_groove_d = 2;
-strain_groove_w = 3;
+strain_groove_w = 4.5;
 
 cover_strap_c_d_y = 5.5; // from front of board
 cover_registration_sz_y = 2;
@@ -51,7 +51,7 @@ cover_registration_sz_z = 3;
 midbot_registraton_sz_x = 3;
 
 cable_space_z = 6;
-cable_dia = 5;
+cable_dia = 6;
 bottom_floor_th = 1.5;
 
 fit_gap_z = 0.5;
@@ -97,6 +97,8 @@ midbot_registration_y_around_max = midbot_registration_y_max
   + wall_th*2;
 midbot_registration_bottom_x = board_w/2 - midbot_registraton_sz_x;
 
+midbot_strap_c_y = 0.5 * (strain_0_y_c + strain_1_y_c);
+
 module BothSides(){
   for (m=[0,1]) {
     mirror([m,0,0]) {
@@ -118,9 +120,6 @@ module NormalStrapCutouts(y_c, z, rot){
 module BottomStrapCutouts(y_c){
   NormalStrapCutouts(y_c, bottom_base_z, -45);
 }
-// XXXX check strap width
-// XXXX check cable diameter
-// XXXX need rear strap
 module CoverStrapCutouts(){
   BothSides(){
     translate([ -total_side_wall_x, -cover_strap_c_d_y, cover_top_z ])
@@ -228,6 +227,8 @@ module Middle(){ ////toplevel
       translate([0, middle_base_z])
       scale([1, strain_groove_d/strain_groove_w])
       circle(strain_groove_w/2, $fn = 8);
+    NormalStrapCutouts(midbot_strap_c_y,
+                      middle_top_z, 45);
   }
 }
 module MiddlePrint(){ ////toplevel
@@ -280,6 +281,7 @@ module Bottom(){ ////toplevel
     RegistrationsMinkowski()
       MidBotRegistrations();
     BottomStrapCutouts(-cover_strap_c_d_y);
+    BottomStrapCutouts(midbot_strap_c_y);
   }
 }