PopufarePowerAdapterMiddleSupport.scad 983 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 PopufarePowerAdapterMiddleSupportPlate() {
  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. translate([0,-_POWER_CONNECTOR_HEIGHT/2])
  17. rounded_rect(_w - 12*_r, _h - 12*_r - _POWER_CONNECTOR_HEIGHT, _r);
  18. // housing holes
  19. //
  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. translate([-(_w/2 - 3*_r),-(_h/2 - 3*_r)]) circle(_r);
  23. translate([ (_w/2 - 3*_r),-(_h/2 - 3*_r)]) circle(_r);
  24. // PIU rs232 ttl USB out
  25. //
  26. translate([-_w/2, piu_usb_h])
  27. square([24*_r, _PIU_USB_WIDTH], center=true);
  28. }
  29. }