PopufarePowerAdapterMiddleSupport.scad 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. buck_dw = _PIU_BUCK_DW;
  15. buck_r = _PIU_BUCK_R;
  16. buck_cx = 0;
  17. buck_cy = -_h/12;
  18. difference() {
  19. rounded_rect(_w, _h, _r);
  20. // Support for the power connector
  21. //
  22. translate([0,-_POWER_CONNECTOR_HEIGHT/2])
  23. rounded_rect(_w - 12*_r, _h - 12*_r - _POWER_CONNECTOR_HEIGHT, _r);
  24. // PIU buck converter screw holes
  25. //
  26. translate([buck_cx-buck_dw/2, buck_cy]) circle(2*buck_r);
  27. translate([buck_cx+buck_dw/2, buck_cy]) circle(2*buck_r);
  28. // housing holes
  29. //
  30. translate([ (_w/2 - 3*_r), (_h/2 - 3*_r)]) circle(_r);
  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. // PIU rs232 ttl USB out
  35. //
  36. translate([-_w/2, piu_usb_h])
  37. square([24*_r, _PIU_USB_WIDTH], center=true);
  38. }
  39. }