// 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 PopufarePowerAdapterMiddleSupportPlate() { _w = _POWER_BOX_WIDTH; _h = _POWER_BOX_HEIGHT; _r = _POWER_BOX_R; piu_usb_h = _POWER_BOX_PIU_USB_H; buck_dw = _PIU_BUCK_DW; buck_r = _PIU_BUCK_R; buck_cx = 0; buck_cy = -_h/12; difference() { rounded_rect(_w, _h, _r); // Support for the power connector // translate([0,-_POWER_CONNECTOR_HEIGHT/2]) rounded_rect(_w - 12*_r, _h - 12*_r - _POWER_CONNECTOR_HEIGHT, _r); // PIU buck converter screw holes // //translate([buck_cx-buck_dw/2, buck_cy]) circle(2*buck_r); //translate([buck_cx+buck_dw/2, buck_cy]) circle(2*buck_r); // 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); // PIU rs232 ttl USB out // translate([-_w/2, piu_usb_h]) square([24*_r, _PIU_USB_WIDTH], center=true); } }