Nessuna descrizione
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.

beam.scad 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. part="all";//[all]
  2. $fa=1/1;
  3. $fs=1/2;
  4. bissl=1/100;
  5. wall=1.6;//twice nozzle diameter is fine, walls of triangles
  6. hole=3; //hole for mounting thread inserts
  7. hd=10; //horizontal distance between mounting points, depends on mounting hole distance in the actuator
  8. height=40; //dimension of the beam in the direction of tambourine depth
  9. vd=height-wall; //vertical distance between mounting holes
  10. segments=14; //number of mounting points, defines the beam length
  11. radius=1; //rounding of inner corners
  12. thickness=2*wall+hole; //thickness of the beam, keep some material to properly hold the threaded insert on the side
  13. offset=wall/2+hole/2;
  14. difference() {
  15. linear_extrude(thickness, convexity=4) difference() {
  16. offset(r=-radius)offset(r=radius)union() {
  17. for (i=[0:hd:hd*(segments-1)]) translate ([i,0]) {
  18. for (tr=[[[hd,0],[0,0]],[[-hd/2,vd],[0,0]],[[hd/2,vd],[0,0]],[[hd/2,vd],[-hd/2,vd]]]) hull() { //diagonals
  19. translate(tr[0])circle(d=wall);
  20. translate(tr[1]) circle(d=wall);
  21. }
  22. for (tr=[[hd/2,vd-offset],[-hd/2,vd-offset],[hd,offset],[0,offset]]) translate(tr)circle(d=2*wall+hole); //big circles
  23. }
  24. //left vertical wall, not generated by the loop
  25. for (tr=[[[-hd/2-offset,0],[0,0]],[[-hd/2-offset,0],[-hd/2-offset,vd]],[[-hd/2-offset,vd],[-hd/2,vd]]]) hull() {
  26. translate(tr[0])circle(d=wall);
  27. translate(tr[1]) circle(d=wall);
  28. }
  29. //solid triangle to jhold threaded inserts
  30. hull() for (tr=[[0,0],[-hd/2-offset,0],[-hd/2-offset,vd],[-hd/2,vd]]) translate(tr) circle(d=wall);
  31. //right vertical wall, not generated by the loop
  32. for (tr=[[[hd*segments+offset,0],[0,0]],
  33. [[hd*segments+offset,0],[hd*segments+offset,vd]],
  34. [[hd*segments+offset,vd],[hd*(segments-0.5),vd]],
  35. [[hd*segments,0],[hd*(segments-0.5),vd]]])
  36. hull() {
  37. translate(tr[0])circle(d=wall);
  38. translate(tr[1]) circle(d=wall);
  39. }
  40. }
  41. for (i=[0:segments]) {
  42. translate([i*hd,offset]) circle(d=hole);
  43. translate([(i-0.5)*hd,vd-offset]) circle(d=hole);
  44. }
  45. }
  46. //mounting holes for threaded inserts, three just in case, it's better to use the middle one
  47. translate([-hd/2-offset-wall/2,height/4-wall,thickness/2])rotate([0,90,0])cylinder(d=hole,h=hd-wall);
  48. translate([-hd/2-offset-wall/2,height/2-wall/2,thickness/2])rotate([0,90,0])cylinder(d=hole,h=hd-wall);
  49. translate([-hd/2-offset-wall/2,height*3/4,thickness/2])rotate([0,90,0])cylinder(d=hole,h=hd-wall);
  50. }