antenna.scad 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. $fn=180;
  2. boom_length = 600;
  3. boom_width = 19.5;
  4. boom_height = 20;
  5. boom_thickness = 1.6;
  6. clamp_length = 15;
  7. clamp_width = 60;
  8. clamp_height = 10;
  9. clamp_connector_dia = 6;
  10. clamp_wire_dia = 3;
  11. clamp_screw_dia = 3.2;
  12. clamp_nut_dia = 6.5;
  13. nose_height = boom_height/2;
  14. nose_width = boom_width/4;
  15. module boom() {
  16. color("lightgray") {
  17. translate([0, -boom_thickness/2, boom_length/2])
  18. cube([boom_width, boom_thickness, boom_length],
  19. center=true);
  20. translate([boom_width/2 - boom_thickness/2,
  21. boom_height/2 - boom_thickness,
  22. boom_length/2])
  23. cube([boom_thickness, boom_height, boom_length],
  24. center=true);
  25. translate([-boom_width/2 + boom_thickness/2,
  26. boom_height/2 - boom_thickness,
  27. boom_length/2])
  28. cube([boom_thickness, boom_height, boom_length],
  29. center=true);
  30. }
  31. }
  32. module element_clamp() {
  33. color("orange") {
  34. difference() {
  35. union() {
  36. for(x = [nose_width/2 - boom_width/2 + boom_thickness,
  37. -nose_width/2 + boom_width/2 - boom_thickness])
  38. translate([x, nose_height/2+boom_height/2 - boom_thickness,0])
  39. cube([nose_width, nose_height,clamp_length],
  40. center=true);
  41. translate([0, nose_width/2 + boom_height - boom_thickness, 0])
  42. cube([clamp_width, nose_width, clamp_length], center=true);
  43. for(x = [-nose_width/2 + clamp_width/2,
  44. nose_width/2 - clamp_width/2])
  45. translate([x, clamp_height/2 + boom_height -
  46. boom_thickness + nose_width, 0])
  47. cube([nose_width, clamp_height,clamp_length],
  48. center=true);
  49. for(x = [nose_width/2 - boom_width/2 + boom_thickness,
  50. -nose_width/2 + boom_width/2 - boom_thickness])
  51. translate([x, clamp_height/2 + boom_height -
  52. boom_thickness + nose_width, 0])
  53. cube([nose_width, clamp_height,clamp_length],
  54. center=true);
  55. }
  56. translate([0, boom_height + nose_width/2 + clamp_height/2, 0])
  57. rotate([0,90,0]) {
  58. cylinder(d=clamp_connector_dia, h=boom_width, center=true);
  59. cylinder(d=clamp_wire_dia, h=clamp_width + 0.1, center=true);
  60. }
  61. translate([0, boom_height - nose_height/2 - boom_thickness, 0])
  62. rotate([0,90,0]) {
  63. cylinder(d=clamp_nut_dia,
  64. h=boom_width - nose_width - 2*boom_thickness,
  65. $fn=6, center=true);
  66. cylinder(d=clamp_screw_dia, h=clamp_width, center=true);
  67. }
  68. }
  69. }
  70. }
  71. module element_wire(wire_length) {
  72. color("lightblue") {
  73. translate([0, boom_height + nose_width/2 + clamp_height/2, 0])
  74. rotate([0,90,0]) {
  75. cylinder(d=clamp_connector_dia - 0.1, h=boom_width, center=true);
  76. cylinder(d=clamp_wire_dia - 0.1, h=wire_length, center=true);
  77. }
  78. }
  79. }
  80. module clamp() {
  81. color("orange") {
  82. clamp_height = boom_height + nose_width;
  83. clamp_width = boom_width + nose_width;
  84. translate([0,boom_height/2 - boom_thickness,0])
  85. difference() {
  86. cube([clamp_width,clamp_height,nose_width], center=true);
  87. translate([0, -nose_width/2, 0])
  88. cube([boom_width,boom_height + nose_width/2,nose_width + 0.01], center=true);
  89. }
  90. for(x = [-boom_width/2, boom_width/2])
  91. translate([x, -nose_width/2 - boom_thickness, 0])
  92. difference() {
  93. cylinder(r=nose_width/2, h=nose_width, center=true);
  94. translate([0, -nose_width/4, 0])
  95. cube([nose_width, nose_width/2 + 0.01, nose_width + 0.01], center=true);
  96. }
  97. }
  98. }
  99. //translate([0,0,100 - clamp_length/2]) {
  100. // element_wire(1022);
  101. // element_clamp();
  102. //}
  103. //
  104. //translate([0,0,230 + 100 - clamp_length/2]) {
  105. // element_wire(320);
  106. // element_clamp();
  107. //}
  108. //
  109. //translate([0,0,370 + 100 - clamp_length/2]) {
  110. // element_wire(939);
  111. // element_clamp();
  112. //}
  113. //
  114. //translate([0,0,399 + 100 - clamp_length/2]) {
  115. // element_wire(323);
  116. // element_clamp();
  117. //}
  118. //
  119. //translate([0,0,500 + 100 - clamp_length/2]) {
  120. // element_wire(297);
  121. // element_clamp();
  122. //}
  123. clamp();
  124. //boom();