shaftMount.scad 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. $fn=30;
  2. module ic() {
  3. linear_extrude(height=2) {
  4. difference() {
  5. square([7.75, 10.5], center=true);
  6. circle(d=4.2);
  7. }
  8. }
  9. translate([0, 0, 2]) {
  10. linear_extrude(height=2) {
  11. difference() {
  12. square([7.75, 10.5], center=true);
  13. square([5.25, 7], center=true);
  14. }
  15. }
  16. }
  17. }
  18. module mountHoles(d=3.2) {
  19. translate([19/2, 0]) {
  20. circle(d=d);
  21. }
  22. translate([-19/2, 0]) {
  23. circle(d=d);
  24. }
  25. translate([0, 19/2]) {
  26. circle(d=d);
  27. }
  28. translate([0, -19/2]) {
  29. circle(d=d);
  30. }
  31. }
  32. module base() {
  33. linear_extrude(height=2) {
  34. difference() {
  35. circle(d=24);
  36. circle(d=3.4);
  37. mountHoles();
  38. }
  39. }
  40. linear_extrude(height=3) {
  41. difference() {
  42. mountHoles(4);
  43. mountHoles();
  44. }
  45. }
  46. linear_extrude(height=22) {
  47. difference() {
  48. circle(d=4.2);
  49. circle(d=3.4);
  50. }
  51. }
  52. }
  53. base();
  54. translate([20, 0]) {
  55. ic();
  56. }