PopufarePowerAdapterBottom.scad 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 PopufarePowerAdapterBottomPlate() {
  10. _w = _POWER_BOX_WIDTH;
  11. _h = _POWER_BOX_HEIGHT;
  12. _r = _POWER_BOX_R;
  13. piu_usb_h = _POWER_BOX_PIU_USB_H;
  14. difference() {
  15. rounded_rect(_w, _h, _r);
  16. // housing holes
  17. //
  18. translate([ (_w/2 - 3*_r), (_h/2 - 3*_r)]) circle(_r);
  19. translate([-(_w/2 - 3*_r), (_h/2 - 3*_r)]) circle(_r);
  20. translate([-(_w/2 - 3*_r),-(_h/2 - 3*_r)]) circle(_r);
  21. translate([ (_w/2 - 3*_r),-(_h/2 - 3*_r)]) circle(_r);
  22. // max232 converter. It has no holes so we'll be using cable ties
  23. //
  24. translate([5,5])
  25. union() {
  26. translate([-_POWER_BOX_STRAP_DW/2, -_POWER_BOX_STRAP_DH/2]) circle(_r);
  27. translate([ _POWER_BOX_STRAP_DW/2, -_POWER_BOX_STRAP_DH/2]) circle(_r);
  28. translate([ _POWER_BOX_STRAP_DW/2, _POWER_BOX_STRAP_DH/2]) circle(_r);
  29. translate([-_POWER_BOX_STRAP_DW/2, _POWER_BOX_STRAP_DH/2]) circle(_r);
  30. }
  31. // PIU rs232 ttl USB out
  32. //
  33. translate([-_w/2+_PIU_USB_HOLE_DE, piu_usb_h + _PIU_USB_HOLE_DW/2])
  34. circle(_PIU_USB_HOLE_R);
  35. translate([-_w/2+_PIU_USB_HOLE_DE, piu_usb_h - _PIU_USB_HOLE_DW/2])
  36. circle(_PIU_USB_HOLE_R);
  37. }
  38. }