Advertisement
sinned6915

nut and stud

Jul 20th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. use <./threads_v2p1.scad>
  2.  
  3. $fn=164;
  4. // $fs=0.25;
  5. // $fa=1;
  6. pitch1=25.4/32;
  7. OD=0.5*25.4;
  8. tolerance1=0.4;
  9. tolerance2=0.6;
  10. module Nut() {
  11. difference () {
  12. union () {
  13. cylinder (h=5.75, d=18, center=false);
  14. rotate ([0,0,0]) translate ([-11.0,-4,2.5]) cube([22,8,3.25], center=false);
  15. rotate ([0,0,90]) translate ([-11.0,-4,2.5]) cube([22,8,3.25], center=false);
  16. }
  17. ScrewHole(OD, 6, position=[0,0,0], rotation=[0,0,0], pitch=pitch1, tooth_angle=30, tolerance=tolerance1, tooth_height=0);
  18.  
  19. cylinder (h=1.20*pitch1, d=14.75, center=false);
  20. translate ([0,0,-.001])cylinder (h=0.251, d2=14.75, d1=15.0,center=false);
  21. translate ([0,0,1.20*pitch1])cylinder (h=pitch, d1=14.75, d2=12.7,center=false);
  22. // cutaway section
  23. rotate ([0,0,0]) translate ([-13,-15,-.0010]) cube([26,15,10], center=false);
  24. }
  25. }
  26.  
  27. module Stud() {
  28. $fn=164;
  29. // $fs=0.25;
  30. // $fa=1;
  31. difference () {
  32. union () {
  33. cylinder (h=1.45, d=18, center=false);
  34. cylinder (h=11, d=14, center=false);
  35. difference () {
  36. cylinder (h=11, d=18, center=false);
  37. rotate ([0,0,0]) translate ([-10,-9.5,0]) cube([20,8,12], center=false);
  38. rotate ([0,0,0]) translate ([-10,1.5,0]) cube([20,8,12], center=false);
  39. rotate ([0,0,0]) translate ([-16,-4,0]) cube([10,8,12], center=false);
  40. }
  41. // rotate ([0,0,0]) translate ([5.8,-1.5,0]) cube([3,3,12], center=false);
  42. cylinder (h=11, d=7, center=false);
  43. translate ([0,0,11]) cylinder (h=1, r1=7, r2=6.3, center=false);
  44. //
  45. // module ScrewThread(outer_diam, height, pitch=0, tooth_angle=30, tolerance=0.4, tip_height=0, tooth_height=0, tip_min_fract=0)
  46. //
  47.  
  48. translate ([0,0,12])ScrewThread(OD, 6.0, pitch=pitch1, tooth_angle=30, tolerance=tolerance2, tip_height=0, tooth_height=0,tip_min_fract=0.4, tip_height=0.250);
  49. }
  50. // ScrewHole(12.6, 6, position=[0,0,0], rotation=[0,0,0], pitch=32/24.5, tooth_angle=30, tolerance=0.4, tooth_height=0) {
  51. cylinder (h=13.5, d=10, center=false);
  52. translate ([0,0,0]) cylinder (h=1, r1=5.5, r2=5, center=false);
  53. translate ([0,0,15])
  54. difference () {
  55. cylinder (h=7, d=6.43,center=true);
  56. rotate ([0,0,0]) translate ([-4,1.50,-3]) cube([8,4,7], center=false);
  57. rotate ([0,0,0]) translate ([-4,-5.5,-3]) cube([8,4,7], center=false);
  58. }
  59. // cutway
  60. translate ([-10,-10,0]) cube ([20,10,30], center=false);
  61. }
  62. }
  63. translate ([0,0,12])Nut();
  64. Stud();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement