chiark / gitweb /
bike-lipo-box: use keepers for lipo as it takes the whole z space
[reprap-play.git] / bike-lipo-box.scad
index de982d933f4a14d3717b9e7ecf7716acce3ab077..e9c8253490a3b7a74b15305af18d1170ba5727aa 100644 (file)
@@ -18,15 +18,21 @@ s1930_behind = 3;
 
 totx_inner = 180;
 toty_outer = 95;
-totz_outer = 31;
+totz_inner = 28.0;
 
 wallthick = 2.5;
 
+strap_w = 5;
+strap_th = 4;
+strap_pillar = 3;
+strap_pillard = 5;
+strap_over = 2;
+
 // calculated
 
 totx_outer = totx_inner + wallthick*2;
 toty_inner = toty_outer - wallthick*2;
-totz_inner = totz_outer - wallthick*2;
+totz_outer = totz_inner + wallthick*2;
 
 sb_box_sz = [totx_outer, totz_outer, toty_inner];
 
@@ -138,6 +144,8 @@ module Box(){ ////toplevel
   switch_x = chargingconn_x + pxp6012_rad_outer
     + s1930_y_outer/2 + s1930_around;
 
+  strap_x_tot = strap_w + strap_pillar*2;
+
   difference(){
     union(){
       rotate([90,0,0])
@@ -147,6 +155,12 @@ module Box(){ ////toplevel
       translate([switch_x, toty_inner, totz_inner/2])
        rotate([90,0,90])
        S1930_Positive();
+
+      // keepers for lipo
+      for (kx= [ 40, 80, 120 ]) {
+       translate([kx, 40, -1])
+         cube([10, 5, 8 +1]);
+      }
     }
 
     // charging connector