PopufarePowerAdapterMiddle.scad 904 B

12345678910111213141516171819202122232425262728293031323334353637
  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 PopufarePowerAdapterMiddlePlate() {
  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. rounded_rect(_w - 12*_r, _h - 12*_r, _r);
  23. // PIU rs232 ttl USB out
  24. //
  25. translate([-_w/2, piu_usb_h])
  26. square([24*_r, _PIU_USB_WIDTH], center=true);
  27. }
  28. }