/* HP-28S holder for LiPo Charger PCB V1.0 This is intended to hold the LiPo charging PCB inside of the HP-28S lower tube. T. LeMense October 1, 2021 */ $fa = 1; $fs = 0.4; // L is length, and is along Y AXIS // W is width, and is along X AXIS // H is height, and is along Z AXIS // baseplate (first surface) base_t = 5; // base thickness base_w = 10; // width (PCB is 12mm) base_l = 18; // length base_y = 5; // base offset from end of PCB // PCB information pcb_t = 1.6; pcb_w = 12; pcb_l = 26; pcb_z = base_t; // PCB locator peg peg_r = 0.9; peg_t = 2.75; echo("PCB dimensions are ",pcb_w," x ",pcb_l); difference() { intersection() { union() { // additive items // the baseplate translate([-base_w/2, base_y, 0]) cube(size=[base_w, base_l, base_t], center=false); // one locator peg translate([-3.25, 7.6, 0]) cylinder(h=base_t+peg_t, r=peg_r); // other locator peg translate([0, 19.6, 0]) cylinder(h=base_t+peg_t, r=peg_r); } // union() // intersect base with battery tube contour rotate([90,0,0]) translate([0,6,-15]) cylinder(h=30,r=6.5,center=true); } // intersection() // subtractive items union() { // POS solder pad relief translate([-4.2, 15.6, base_t/2]) cylinder(h=base_t, r=1.5); translate([-6, 15.6, base_t]) cube(size=[3,3,base_t], center=true); // NEG solder pad relief translate([-4.2, 12.1, base_t/2]) cylinder(h=base_t, r=1.5); translate([-6, 12.1, base_t]) cube(size=[3,3,base_t], center=true); } // union() } // difference() // uncomment this block if a pcb "model" is desired /* translate([-pcb_w/2,0,pcb_z]) color("green") linear_extrude(height=pcb_t) square ([pcb_w,pcb_l],false); //*/