| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- // 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 PopufarePowerAdapterTopPlate() {
- _w = _POWER_BOX_WIDTH;
- _h = _POWER_BOX_HEIGHT;
- _r = _POWER_BOX_R;
-
- conw = _POWER_CONNECTOR_WIDTH;
- conh = _POWER_CONNECTOR_HEIGHT;
-
- piu_usb_h = _POWER_BOX_PIU_USB_H;
-
- difference() {
- rounded_rect(_w, _h, _r);
- translate([0, _h/2 - conh/2 - 6*_r]) square([conw, conh], 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);
-
- // max232 converter. It has no holes so we'll be using cable ties
- //
- translate([5,5])
- union() {
- translate([-_POWER_BOX_STRAP_DW/2, -_POWER_BOX_STRAP_DH/2]) circle(_r);
- translate([ _POWER_BOX_STRAP_DW/2, -_POWER_BOX_STRAP_DH/2]) circle(_r);
- translate([ _POWER_BOX_STRAP_DW/2, _POWER_BOX_STRAP_DH/2]) circle(_r);
- translate([-_POWER_BOX_STRAP_DW/2, _POWER_BOX_STRAP_DH/2]) circle(_r);
- }
-
- // PIU rs232 ttl USB out
- //
- translate([-_w/2+_PIU_USB_HOLE_DE, piu_usb_h + _PIU_USB_HOLE_DW/2])
- circle(_PIU_USB_HOLE_R);
- translate([-_w/2+_PIU_USB_HOLE_DE, piu_usb_h - _PIU_USB_HOLE_DW/2])
- circle(_PIU_USB_HOLE_R);
-
- // various holes for connections
- //
- translate([-_w/2+_PIU_USB_HOLE_DE*2, piu_usb_h + _PIU_USB_HOLE_DW/2+2*_r])
- circle(_r);
- translate([-_w/2+_PIU_USB_HOLE_DE*2, piu_usb_h - _PIU_USB_HOLE_DW/2-2*_r])
- circle(_r);
- translate([0,-_h/4+10]) circle(_r);
- translate([10,-_h/4 + 10]) circle(_r);
- translate([0,-_h/4]) circle(_r);
- translate([0,-_h/4 - 10]) circle(_r);
- translate([10,-_h/4]) circle(_r);
- translate([10,-_h/4 - 10]) circle(_r);
- }
- }
- PopufarePowerAdapterTopPlate();
|