3 psu_sz_nom = [ 21.59, 35.56 ];
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
12 psu_baffle_cnr_y = 7.45; // from connector end
13 psu_baffle_th = [ 0.8, 3.5 ];
14 psu_usbend_led_x = 4.5;
15 psu_innerend_led_depth = 10;
17 // ----- calculated -----
19 psu_usbend_led_depth = psu_baffle_cnr_y*2 - psu_usbend_led_x;
21 module PsuLedBafflePlan(){
24 module PsuLedWindowsPlanCore(){
27 // Two LEDs incl "Chrg", one side of inlet connector
28 AtPsuMountCorner(0,0) {
29 rectfromto([ -(psu_board_support_wall + 0.1),
32 +psu_usbend_led_depth ]);
35 // One LED, "Low", other side of inlet connector
36 AtPsuMountCorner(1,0) {
37 sz = psu_baffle_cnr_y - psu_board_support_wall - psu_baffle_th[0];
38 translate([0, psu_baffle_cnr_y])
39 rectfromto([ -(psu_board_support_wall + 0.1),
45 // One LED, PWR, near outlet USB pads
46 AtPsuMountCorner(1,1){
48 [psu_sz[0]/2 - psu_hole_pos[1] - psu_hole_dia/2,
49 psu_innerend_led_depth]);
52 // translate([0, -psu_sz[1]/2])
53 // square(center=true, [psu_baffle_th[1], psu_sz[1]]);;