PopufareHousingPowerAdapterTop.scad 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // License: CC0
  2. //
  3. // To the extent possible under law, Clementine Computing LLC has waived
  4. // all copyright and related or neighboring rights to this file.
  5. //
  6. // This work is published from: United States.
  7. //
  8. include <PopufareHousingCommon.scad>
  9. module PopufareHousingPowerAdapterTopPlate() {
  10. //_w = _POWER_BOX_WIDTH;
  11. //_h = _POWER_BOX_HEIGHT;
  12. _r = _POWER_BOX_R;
  13. conw = _POWER_CONNECTOR_WIDTH;
  14. conh = _POWER_CONNECTOR_HEIGHT;
  15. _w = conh*2 + 20;
  16. _h = conw + 20;
  17. piu_usb_h = _POWER_BOX_PIU_USB_H;
  18. buck_dw = _BUCK_V2_DW;
  19. buck_r = _BUCK_V2_R;
  20. buck_cx = _w/2 + 2*buck_r;
  21. buck_cy = -_h/12;
  22. difference() {
  23. union() {
  24. rounded_rect(_w, _h, 4);
  25. }
  26. // power connector access
  27. //
  28. square([conh, conw], center=true);
  29. // housing holes
  30. //
  31. translate([ (_w/2 - 3*_r), (_h/2 - 3*_r)]) circle(_r);
  32. translate([-(_w/2 - 3*_r), (_h/2 - 3*_r)]) circle(_r);
  33. translate([-(_w/2 - 3*_r),-(_h/2 - 3*_r)]) circle(_r);
  34. translate([ (_w/2 - 3*_r),-(_h/2 - 3*_r)]) circle(_r);
  35. }
  36. }
  37. //PopufareHousingPowerAdapterTopPlate();