// License: CC0 // // To the extent possible under law, Clementine Computing LLC has waived // all copyright and related or neighboring rights to this file. // // This work is published from: United States. // include module PopufareHousingPowerAdapterTopPlate() { //_w = _POWER_BOX_WIDTH; //_h = _POWER_BOX_HEIGHT; _r = _POWER_BOX_R; conw = _POWER_CONNECTOR_WIDTH; conh = _POWER_CONNECTOR_HEIGHT; _w = conh*2 + 20; _h = conw + 20; piu_usb_h = _POWER_BOX_PIU_USB_H; buck_dw = _BUCK_V2_DW; buck_r = _BUCK_V2_R; buck_cx = _w/2 + 2*buck_r; buck_cy = -_h/12; pcb_conn_c = [0,0]; pcb_conn_screw_h = 44.034; pcb_conn_screw_w = 17.65; difference() { union() { rounded_rect(_w, _h, 4); } // power connector access // square([conh, conw], center=true); // housing holes // translate([ (_w/2 - 3*_r), (_h/2 - 3*_r)]) circle(_r); translate([-(_w/2 - 3*_r), (_h/2 - 3*_r)]) circle(_r); translate([-(_w/2 - 3*_r),-(_h/2 - 3*_r)]) circle(_r); translate([ (_w/2 - 3*_r),-(_h/2 - 3*_r)]) circle(_r); // PCB housing holes // translate([pcb_conn_c[0], pcb_conn_c[1]]) translate([ pcb_conn_screw_w/2, pcb_conn_screw_h/2]) circle(_M3r); translate([pcb_conn_c[0], pcb_conn_c[1]]) translate([ pcb_conn_screw_w/2, -pcb_conn_screw_h/2]) circle(_M3r); translate([pcb_conn_c[0], pcb_conn_c[1]]) translate([-pcb_conn_screw_w/2, -pcb_conn_screw_h/2]) circle(_M3r); translate([pcb_conn_c[0], pcb_conn_c[1]]) translate([-pcb_conn_screw_w/2, pcb_conn_screw_h/2]) circle(_M3r); } } //PopufareHousingPowerAdapterTopPlate();