chiark / gitweb /
adafruit-powerboost: battery legend wip test
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Nov 2021 23:15:24 +0000 (23:15 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Nov 2021 23:15:24 +0000 (23:15 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
adafruit-powerboost-1000.scad
adafruit-powerboost-common.scad

index 30b2912220e02fb7223784d69ad281e7967c2f74..976cebb74431e039665625eb9f55d595296063cd 100644 (file)
@@ -35,7 +35,7 @@ psu_led_legend_battery_nub_w = 1.5;
 
 psu_led_legend_power_dia = 5.0;
 
-psu_led_legend_gap = 0.75;
+psu_led_legend_gap = 1.25;
 
 // ----- calculated -----
 
index 9de2f31ad92558106d6b01167a2228c43c0ac040..84430a05edac938a8cd77dcb9250d226a40e62f7 100644 (file)
@@ -42,6 +42,8 @@ psu_usba_v_space_below = 1.5;
 psu_usba_v_space_w = 1.7;
 psu_usba_v_space_l = 3.0;
 
+psu_test_ceil = 2.5;
+
 // ----- calculated -----
 
 psu_z = NutBox_h_base(psu_board_nutbox);
@@ -186,7 +188,9 @@ module PsuLedWindowsPlan(){
   }
 }
 
-module PsuMountDemo(ceil = 2.5) { ////toplevel
+module PsuMountDemo() { ////toplevel
+  ceil = psu_test_ceil;
+
   translate([0, psu_y, psu_z]) {
     difference(){
       PsuMountPositive();
@@ -210,7 +214,8 @@ module PsuMountDemo(ceil = 2.5) { ////toplevel
   }
 }
 
-module PsuMountTest(ceil = 2.5) { ////toplevel
+module PsuMountTest() { ////toplevel
+  ceil = psu_test_ceil;
   $fs = 0.1;
   $fa = 3;
   difference(){
@@ -236,3 +241,38 @@ module PsuMountTest(ceil = 2.5) { ////toplevel
     }
   }
 }
+
+psu_multicolour_gap = 0.075;
+psu_initial_layer_thick = 0.400;
+psu_initial_layer_width = 0.750;
+psu_window_ledge = 0.50; // each side
+
+module PsuMountTestFullLayerFrame(ix) {
+  sz = psu_sz*2 + [1,1]*psu_initial_layer_width*(3+ix);
+  translate([0, psu_y]) difference(){
+    square(center=true, sz + psu_multicolour_gap*2*[1,1]);
+    square(center=true, sz);
+  }
+}
+
+
+module PsuMountTestFullMain() { ////toplevel
+  ceil = psu_test_ceil;
+
+  linextr(0, psu_initial_layer_thick)
+    PsuMountTestFullLayerFrame(0);
+  
+  difference(){
+    translate([0,0, ceil])
+      PsuMountTest();
+
+    translate([0, psu_y, 0]) {
+      linextr(-1, psu_initial_layer_thick) {
+       offset(delta=psu_window_ledge + psu_multicolour_gap)
+         PsuLedWindowsPlan();
+       offset(delta=psu_multicolour_gap)
+         PsuLedLegendsPlan();
+      }
+    }
+  }
+}