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.

Motor Clamp Test.scad 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Created by:
  3. * Thomas Buck <xythobuz@xythobuz.de> in March 2016
  4. *
  5. * Licensed under the Creative Commons - Attribution license.
  6. */
  7. // -----------------------------------------------------------
  8. //translate([-31.784, 42.247, -18.25])
  9. // import( "/Users/thomas/Downloads/turnigy_3d_fabrikator_y-axis_fan_cheese_fan_bracket.stl");
  10. // -----------------------------------------------------------
  11. top_height = 5;
  12. bottom_height = 2;
  13. distance = 10;
  14. motor_width = 28;
  15. arm_width = 2;
  16. holder_nub = 1;
  17. hole = 22;
  18. $fn = 25;
  19. // -----------------------------------------------------------
  20. // Test rendering of motor
  21. /*
  22. #translate([holder_nub, arm_width, 0])
  23. cube([motor_width, motor_width, motor_width]);
  24. */
  25. // -----------------------------------------------------------
  26. module arm(dir = "left", h) {
  27. cube([motor_width + holder_nub, arm_width, h]);
  28. translate([0, (dir == "right") ? -holder_nub : 0, 0])
  29. cube([holder_nub, arm_width + holder_nub, h]);
  30. }
  31. module clamp(h) {
  32. arm("left", h);
  33. translate([0, motor_width + arm_width, 0])
  34. arm("right", h);
  35. translate([motor_width + holder_nub, 0, 0])
  36. cube([arm_width, motor_width + (2 * arm_width), h]);
  37. }
  38. module part() {
  39. clamp(bottom_height);
  40. translate([0, 0, distance + bottom_height])
  41. clamp(top_height);
  42. translate([motor_width + holder_nub, 0, 0])
  43. cube([arm_width, motor_width + (2 * arm_width), top_height + distance + bottom_height]);
  44. }
  45. // -----------------------------------------------------------
  46. difference() {
  47. part();
  48. translate([motor_width + holder_nub - (arm_width / 2), (motor_width / 2) + arm_width, 4])
  49. rotate([0, 90, 0])
  50. cylinder(d = hole, h = 2 * arm_width);
  51. }