chiark / gitweb /
sprinkler-spike-receptacle: wip strap (broken right now)
[reprap-play.git] / sprinkler-spike-receptacle.scad
index 634aeb5e32bee4bc0ad1beeafd432295fceaffb6..b844751efd773c90b0b705c619f72a8ae84df03f 100644 (file)
@@ -2,12 +2,12 @@
 
 main_height = 95;
 
-spike_web_thick = 2.52 + 0.5;
+spike_web_thick = 2.52 + 0.75;
 
-spike_top_width = 21.04;
+spike_top_width = 21.04 + 1.5;
 
 spike_botpos_height = 9.5;
-spike_botpos_width = 11.68;
+spike_botpos_width = 11.68 + 0.00;
 
 topwall_width = 1.5;
 
@@ -18,6 +18,14 @@ mount_hole_dia = 4.5;
 mount_head_dia = 7.5;
 mount_hole_th = 2.5;
 
+strap_height = main_height * 0.5;
+
+strap_width = 6.0;
+strap_thick = 3.0;
+strap_around = 2.5;
+strap_fixing_height = 4.0;
+strap_fixing_slope = 1.0;
+
 // calculated
 
 main_width = spike_top_width + topwall_width*2;
@@ -74,22 +82,42 @@ module MultiplySolidifyPlan(th){
   }
 }
 
-module MultiplyForMount(){
+module MultiplyForFixings(){
   for (r=[0:90:270])
     rotate([0,0,r])
     children(0);
 }
 
-module Mount(){
+module FixingsPositive(){
+  // mount
   translate([ -1,
              -mount_width/2,
              0 ])
     cube([ mount_dist + mount_width/2 + 1,
           mount_width,
           mount_height ]);
+
+  // strap
+  translate([main_width, -strap_width/2, strap_height]) {
+    hull(){
+      translate([ -strap_around,
+                 -pos_web_thick/2,
+                 (strap_thick + strap_around) / strap_fixing_slope ])
+       cube([ strap_around,
+              pos_web_thick/2 - strap_width/2,
+              0.5 ]);
+      translate([ -strap_around,
+                 -strap_around,
+                 0 ])
+       cube([ strap_around*2 + strap_thick,
+              strap_around,
+              strap_fixing_height ]);
+    }
+  }
 }
 
-module MountHole(){
+module FixingsNegative(){
+  // mount hole
   translate([ mount_dist, 0,0 ]) {
     translate([0,0, -1])
       cylinder(r= mount_hole_dia/2, h= 20, $fn=20);
@@ -103,11 +131,11 @@ module Main(){
     union(){
       MultiplySolidifyPlan(pos_web_thick) PositivePlan();
       PositiveMidRounding();
-      MultiplyForMount() Mount();
+      MultiplyForFixings() FixingsPositive();
     }
     MultiplySolidifyPlan(spike_web_thick) NegativePlan();
     NegativeMidRounding();
-    MultiplyForMount() MountHole();
+    MultiplyForFixings() FixingsNegative();
   }
 }
 
@@ -138,12 +166,17 @@ module MainFitTest(){
        translate([0, 0, (-main_height + 0.5) * top])
          Main();
        translate([-50,-50,0])
-         cube([100,100,0.5]);
+         cube([100,100, spike_botpos_height + 1.5]);
       }
     }
   }
 }
 
-//PlanTest();
-//Main();
-MainFitTest();
+module Tests(){
+  translate([-mount_dist*3, 0,0])
+    PlanTest();
+  MainFitTest();
+}
+
+//Tests();
+Main();