| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- // 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 <PopufareHousingCommon.scad>
- module PopufareHousingPowerAdapterMidPlate() {
- //_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;
- wall_w = 6*_r;
- difference() {
-
- union() {
- // rounded_rect(_w, _h, _r);
-
- translate([0, (_h/2 - 3*_r)]) rounded_rect(_w, wall_w, _r);
- translate([ (_w/2 - 3*_r), 0]) rounded_rect(wall_w, _h, _r);
- translate([0, -(_h/2 - 3*_r)]) rounded_rect(_w, wall_w, _r);
- }
-
- // 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);
-
- }
- }
- //PopufareHousingPowerAdapterMidPlate();
|