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.

71 lines
1.8KB

  1. $fn = $preview? 32 : 72;
  2. module stepper_103H5205(){
  3. body_length = 33;
  4. body_width = 42;
  5. shaft_length = 24;
  6. shaft_diameter = 5;
  7. flange_thickness = 1.5;
  8. flange_diameter = 22;
  9. hole_seperation = 31;
  10. hole_bore = 3;
  11. hole_depth = 4;
  12. corner_radius = 5;
  13. connector_height = 7;
  14. connector_width = 27;
  15. connector_depth = 11;
  16. connector_offset = 20;
  17. // body;
  18. color("dimgray")
  19. difference(){
  20. rotate([180,0,0])
  21. body(length=body_length, width=body_width, corner_radius = corner_radius);
  22. // remove screws
  23. rotate([180,0,0]) translate([0,0,-1]) four_cylinder(hole_seperation/2,hole_depth+1,hole_bore/2);
  24. }
  25. // flange
  26. color("silver") translate([0,0,-1]) cylinder(h=flange_thickness+1,d=flange_diameter);
  27. // shaft
  28. color("lightcyan")cylinder(h=shaft_length,d=shaft_diameter);
  29. color("snow")translate([body_width/2-1,-connector_width/2,-connector_offset-connector_depth]) cube([connector_height+1,connector_width,connector_depth]);
  30. }
  31. module body(length, width, corner_radius){
  32. distance = (width/2-corner_radius);
  33. hull(){
  34. four_cylinder(distance,length,corner_radius);
  35. }
  36. }
  37. module four_cylinder(distance,height,radius){
  38. for (i = [0:3]){
  39. rotate([0,0,90*i]) translate([distance,distance,0]) cylinder(h=height,r=radius);
  40. }
  41. }
  42. stepper_103H5205();
  43. translate([0,0,0.2]) stepper_103H5205_mount();
  44. module stepper_103H5205_mount() {
  45. body_width = 42;
  46. flange_diameter = 22;
  47. hole_seperation = 31;
  48. hole_bore = 3;
  49. hole_depth = 4;
  50. corner_radius = 5;
  51. bracket_thickness = 4;
  52. difference(){
  53. body(length=bracket_thickness, width=body_width, corner_radius = corner_radius);
  54. translate([0,0,-0.5]) four_cylinder(hole_seperation/2,bracket_thickness+1,hole_bore/2);
  55. translate([0,0,-0.5]) cylinder(h=bracket_thickness+1,d=flange_diameter+1);
  56. }
  57. }