3 psu_sz_nom = [ 11.43*2, 36.20 ];
6 include <adafruit-powerboost-common.scad>
8 psu_hole_pos = [ 2.05, // from back edge of psu_sz[0]
9 0.55 * 0.5 * 25.4, // from centreline
14 psu_led_usbend_y_min = 4.5;
15 psu_led_chrg_min_x = -1.0;
16 psu_led_chrg_max_x = 3.0;
17 psu_led_chrg_both_sz_y = 7.0;
19 psu_led_low_sz_x = 4.5;
20 psu_led_low_min_y = -1.5;
21 psu_led_low_max_y = 2.5;
23 psu_led_baffle_th = 0.8;
24 psu_led_baffle_ends = 1.5;
26 psu_baffle_th = [ 0.8, 3.5 ];
27 psu_innerend_led_depth = 10;
29 // ----- calculated -----
31 module PsuLedBafflePlan(){
32 AtPsuMountCorner(0,0) {
33 translate([ (psu_led_chrg_min_x + psu_led_chrg_max_x)/2,
34 psu_led_usbend_y_min + psu_led_chrg_both_sz_y/2 ])
36 [ psu_led_chrg_max_x - psu_led_chrg_min_x
37 + psu_led_baffle_ends*2,
42 module PsuLedWindowsPlanCore(){
45 // Two LEDs one side of inlet connector
46 // "Full" (near edge) and "Chrg" (inner)
47 AtPsuMountCorner(0,0) {
48 translate([0, psu_led_usbend_y_min ])
49 rectfromto([ psu_led_chrg_min_x, 0 ],
51 psu_led_chrg_both_sz_y ]);
54 // One LED, "Low", other side of inlet connector
55 AtPsuMountCorner(1,0) {
56 translate([0, psu_led_usbend_y_min ])
63 // One LED, PWR, near outlet USB pads
64 AtPsuMountCorner(0,1){
66 [psu_sz[0]/2 - psu_hole_pos[1] - psu_hole_dia/2,
67 psu_innerend_led_depth]);