chiark / gitweb /
adafruit-powerboost: solder space prep nfc
[reprap-play.git] / adafruit-powerboost-common.scad
index 7fc3b976c649504a22a9d1bbd2378e6e35742214..c731c224062fb0e150f8b8e5e42a1e80129e9d54 100644 (file)
@@ -41,6 +41,7 @@ psu_y = +psu_sz[1]/2 + psu_usb_protr;
 psu_z = NutBox_h_base(psu_board_nutbox);
 psu_z_down = psu_z + 0.1;
 psu_fix_sz = NutBox_outer_size(psu_board_nutbox);
+psu_board_nutbox_y = psu_sz[1]/2 + psu_board_nutbox[0]/2;
 
 module PsuBoardRepresentation(){
   linear_extrude(height= psu_th)
@@ -124,9 +125,11 @@ module PsuMountPositive(){
        circle(r= psu_hole_dia/2);
     }
   }
-  translate([0, psu_sz[1]/2 + psu_board_nutbox[0]/2, 0])
-    rotate([0,0,180])
-    NutBox(psu_board_nutbox, psu_z_down);
+  difference(){
+    translate([0, psu_board_nutbox_y, 0])
+      rotate([0,0,180])
+      NutBox(psu_board_nutbox, psu_z_down);
+  }
 }
 
 module PsuClamp(){ ////toplevel
@@ -167,6 +170,11 @@ module PsuMountDemo(ceil = 2.5) { ////toplevel
     color("yellow") translate([0,0, -psu_z - ceil])
       linear_extrude(height=0.4, convexity=10)
       PsuLedWindowsPlan();
+
+    translate([0, psu_board_nutbox_y, 10])
+      rotate([180,0,0])
+      rotate([0,0,-90])
+      PsuClamp();
   }
 }