My self-made 3D-printable designs, mainly in OpenSCAD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

crafty_usb_c.scad 1019B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. w = 13.0;
  2. d = 12.0;
  3. h = 21.0;
  4. cut = 4.0;
  5. hole = 2.25;
  6. off = 13.0;
  7. usb_dia = 5.8;
  8. usb_w = 11.0;
  9. usb_off = 1.5;
  10. $fn = 42;
  11. usb_bottom_h = 4.5 + 1.5;
  12. usb_w_bottom = 7.7;
  13. module usb_internal(h, w) {
  14. translate([(usb_dia - w) / 2, 0, 0]) {
  15. cylinder(d = usb_dia, h = h);
  16. translate([w - usb_dia, 0, 0])
  17. cylinder(d = usb_dia, h = h);
  18. translate([0, -usb_dia / 2, 0])
  19. cube([w - usb_dia, usb_dia, h]);
  20. }
  21. }
  22. module usb(h) {
  23. hull() {
  24. translate([0, 0, usb_bottom_h])
  25. usb_internal(h - usb_bottom_h, usb_w);
  26. usb_internal(usb_bottom_h, usb_w_bottom);
  27. }
  28. }
  29. module holder() {
  30. difference() {
  31. cube([w, d, h]);
  32. translate([w / 2, -1, off])
  33. rotate([-90, 0, 0])
  34. cylinder(d = hole, h = d + 2);
  35. translate([(w - cut) / 2, -1, -1])
  36. cube([cut, 5, h + 2]);
  37. translate([w / 2, usb_dia / 2 + usb_off, -1])
  38. usb(h + 2);
  39. }
  40. }
  41. //usb(20);
  42. holder();