설명 없음
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.

config.scad 7.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. // 3d printer specific
  2. screw_gap = 0.3;
  3. nut_gap = -0.1;
  4. dispenser_top_dia = 200;
  5. dispenser_top_height = 108;
  6. dispenser_mid_dia = 35.5;
  7. dispenser_nozzle_top_height = 45;
  8. dispenser_nozzle_top_dia = 35.3;
  9. dispenser_nozzle_mid_height = 20;
  10. dispenser_nozzle_mid_dia = 40;
  11. dispenser_nozzle_cap_height = 17;
  12. dispenser_nozzle_cap_dia_1 = 5.8;
  13. dispenser_nozzle_cap_dia_2 = dispenser_nozzle_mid_dia;
  14. dispenser_nozzle_end_length = 10;
  15. dispenser_nozzle_end_dia_1 = 3.4;
  16. dispenser_nozzle_end_dia_2 = dispenser_nozzle_cap_dia_1;
  17. dispenser_wall = 3;
  18. dispenser_handle_dia = 21;
  19. dispenser_handle_length = 100;
  20. dispenser_handle_angle = 38;
  21. dispenser_arm_dia = 7.0;
  22. dispenser_arm_len = 250;
  23. dispenser_arm_height = 75;
  24. dispenser_arm_tab_off = 21;
  25. dispenser_arm_tab_hole_off = 14;
  26. dispenser_arm_handle_overlap = 20;
  27. dispenser_arm_handle_width = 20;
  28. dispenser_arm_handle_len = 30;
  29. dispenser_arm_handle_height = 2;
  30. dispenser_arm_handle_y = 10;
  31. dispenser_arm_handle_z = 15;
  32. rail_wheel_height = 11;
  33. rail_wheel_center_height = 5;
  34. rail_wheel_outer = 24;
  35. rail_wheel_mid = 18;
  36. rail_wheel_inner = 5;
  37. nema17_len = 40;
  38. nema17_size = 42.3;
  39. nema17_hole_off = 31.0 / 2;
  40. nema17_hole_size = 3.0;
  41. nema17_shaft_size = 5.0;
  42. nema17_shaft_length = 24.0;
  43. nema17_center_size = 22.0;
  44. nema17_center_height = 2.0;
  45. motor_mount_height = 8;
  46. motor_mount_length = 35;
  47. motor_mount_l = nema17_size + motor_mount_length;
  48. motor_mount_hole_size_nominal = 5;
  49. motor_mount_hole_size = motor_mount_hole_size_nominal + screw_gap;
  50. motor_mount_hole_off = motor_mount_length - 15;
  51. belt_width = 6;
  52. belt_pitch = 2;
  53. belt_thickness = 1.35;
  54. /**********************************
  55. ************ Extruder ************
  56. **********************************/
  57. function dia_from_teeth(teeth) = teeth * belt_pitch / 3.14159;
  58. pulley_teeth_height = belt_width + 4;
  59. pulley_mount_height = 5;
  60. pulley_mount_dia = 8;
  61. pulley_height = pulley_teeth_height + pulley_mount_height;
  62. large_teeth = 60;
  63. small_teeth = 20;
  64. large_dia = dia_from_teeth(large_teeth);
  65. small_dia = dia_from_teeth(small_teeth);
  66. perimeter_large_wheel = large_dia * 3.14159;
  67. perimeter_small_wheel = small_dia * 3.14159;
  68. axis_diameter = 5.0;
  69. axis_hole_diameter = axis_diameter + screw_gap;
  70. // MR115 2RS
  71. bearing_inner = axis_diameter;
  72. bearing_outer = 11.0 + 0.1;
  73. bearing_height = 4.0;
  74. belt_length = 200;
  75. belt_length_wheels = perimeter_large_wheel / 2 + perimeter_small_wheel / 2;
  76. belt_length_center = belt_length - belt_length_wheels;
  77. gears_dist = belt_length_center / 2;
  78. gear_stages = 1;
  79. gear_stage_height = pulley_height + 2;
  80. gear_stages_dist = (bearing_height + 1) * 2;
  81. gearbox_wall = gear_stages_dist; //bearing_height + 1;
  82. gearbox_gap = 2;
  83. gearbox_height = gears_dist + large_dia + (gearbox_wall + gearbox_gap) * 2;
  84. gearbox_width = large_dia + (gearbox_wall + gearbox_gap) * 2;
  85. gearbox_depth = 2 * gearbox_wall + gear_stages * gear_stage_height + (gear_stages - 1) * gear_stages_dist;
  86. extruder_travel = 60;
  87. piston_dia = 30;
  88. piston_height = 30;
  89. piston_gap = 0.1;
  90. piston_wall = 3;
  91. piston_radius = 3;
  92. piston_bottom_gap = piston_wall + 10;
  93. cylinder_dia = piston_dia + 2 * (piston_wall + piston_gap);
  94. cylinder_height = piston_height + extruder_travel;
  95. actuator_length = 100;
  96. extruder_lever_width = 10;
  97. extruder_lever_depth = 5;
  98. extruder_lever_holes = 4.2; // TODO
  99. extruder_lever_hole_dist = extruder_travel / 2;
  100. extruder_lever_length = extruder_lever_hole_dist + 10;
  101. extruder_wall_screw = 3.0;
  102. extruder_wall_hole_screw = extruder_wall_screw + screw_gap;
  103. extruder_wall_hole_nut = extruder_wall_screw + nut_gap;
  104. extruder_wall_hole_depth = 8.0;
  105. additional_piston_offset = 8;
  106. /***********************************
  107. ************** Table **************
  108. ***********************************/
  109. // size of woking area
  110. plate_x = 250;
  111. plate_y = 350;
  112. plate_z = 5;
  113. plate_mount_screws_nominal = 5.0;
  114. plate_mount_screws_distance_x = 60;
  115. plate_mount_screws_distance_y = 80;
  116. plate_mount_screw_hole = plate_mount_screws_nominal + screw_gap;
  117. belt_slot_width = belt_width + 4;
  118. belt_slot_depth = belt_thickness + 2;
  119. belt_mount_width = belt_slot_width + 2;
  120. belt_mount_depth = belt_slot_depth + 4;
  121. belt_mount_full_width = belt_mount_width * 3;
  122. y_carriage_add_material_around_holes = 10;
  123. y_carriage_h = 10;
  124. y_carriage_rail_dist = 6.5;
  125. y_carriage_post_dia = 2 * 13 / sqrt(3);
  126. y_carriage_post_screw = 5.0;
  127. y_carriage_post_hole_off = 2;
  128. y_carriage_post_center = 1;
  129. y_carriage_post_screw_hole = y_carriage_post_screw + nut_gap;
  130. y_carriage_post_len = y_carriage_rail_dist - rail_wheel_height / 2 + 10;
  131. y_carriage_wheel_off_x = 20.4;
  132. y_carriage_wheel_off_y = 28;
  133. y_carriage_pulley_off = y_carriage_rail_dist - rail_wheel_height / 2 + 10;
  134. y_carriage_x = plate_mount_screws_distance_x + 2 * y_carriage_add_material_around_holes;
  135. y_carriage_y = plate_mount_screws_distance_y + 2 * y_carriage_add_material_around_holes;
  136. y_carriage_wheel_x_dist = y_carriage_x - 2 * y_carriage_wheel_off_x;
  137. y_carriage_wheel_y_dist = y_carriage_y - 2 * y_carriage_wheel_off_y;
  138. x_carriage_holder_w = y_carriage_x;
  139. x_carriage_holder_l = (y_carriage_y - 20) / 2;
  140. x_carriage_holder_h = 4;
  141. x_carriage_holder_rail_hole_dist = x_carriage_holder_w - 20;
  142. x_carriage_holder_hole_off = x_carriage_holder_h + 10;
  143. ideal_belt_pulley_dia = 20 - belt_thickness * 2 + y_carriage_rail_dist + belt_thickness / 4;
  144. belt_pulley_off = y_carriage_rail_dist / 2 - belt_thickness / 4;
  145. teethcount = round((ideal_belt_pulley_dia + belt_thickness) * 3.14159 / belt_pitch);
  146. echo("belt pulley teeth count", teethcount);
  147. real_belt_pulley_dia = teethcount * belt_pitch / 3.14159;
  148. belt_pulley_width = belt_width + 4;
  149. belt_pulley_tooth_width = belt_width + 2;
  150. belt_pulley_rim = 1;
  151. belt_pulley_axis_hole = nema17_shaft_size + screw_gap;
  152. belt_pulley_fix_dia = 3.0 + nut_gap;
  153. belt_tensioner_screw = 3.0;
  154. belt_tensioner_screw_hole = belt_tensioner_screw + screw_gap;
  155. belt_tensioner_wall = 5;
  156. belt_tensioner_mount_depth = 20;
  157. belt_tensioner_travel = 15;
  158. belt_tensioner_moving_height = 10;
  159. belt_tensioner_moving_len = real_belt_pulley_dia / 2 + 20;
  160. belt_tensioner_moving_overlap = 10;
  161. belt_tensioner_moving_gap = 0.3;
  162. belt_tensioner_diff_len = real_belt_pulley_dia / 2 + belt_tensioner_moving_len - belt_tensioner_moving_overlap + belt_tensioner_travel + 5;
  163. belt_tensioner_diff_width = belt_pulley_width + 2 * belt_tensioner_moving_gap + 0.5;
  164. belt_tensioner_diff_height = belt_tensioner_moving_height + 0.5;
  165. y_axis_travel_len = plate_y + 15;
  166. y_axis_rail_len = y_axis_travel_len + y_carriage_y + motor_mount_length + belt_tensioner_mount_depth;
  167. x_axis_travel_len = plate_x + 15;
  168. x_axis_rail_len = x_axis_travel_len + y_carriage_y + motor_mount_length + belt_tensioner_mount_depth;
  169. // TODO!
  170. point_that_reaches_everywhere_x = -7.5;
  171. point_that_reaches_everywhere_y = -17.5;
  172. use_anim = true;
  173. x_axis_position = 1.0;
  174. y_axis_position = 0.5;
  175. anim_pos_x = use_anim ? sin($t * 360) * 0.5 + 0.5 : x_axis_position;
  176. anim_pos_y = use_anim ? sin($t * 360 + 90) * 0.5 + 0.5 : y_axis_position;
  177. echo("animation position x", anim_pos_x);
  178. echo("animation position y", anim_pos_y);
  179. x_axis_animation_position = anim_pos_x * x_axis_travel_len;
  180. y_axis_animation_position = anim_pos_y * y_axis_travel_len;
  181. extruder_axis_position = 1.0;
  182. anim_pos_extruder = use_anim ? sin($t * 360) * 0.5 + 0.5 : extruder_axis_position;
  183. extruder_axis_anim_position = anim_pos_extruder * extruder_travel;
  184. draw_pulleys = false;
  185. left_support_len = 200;
  186. left_support_off = 50;
  187. right_support_len = 200;
  188. right_support_off = 50;
  189. echo("distance between bottom support rails", x_axis_rail_len - left_support_off - right_support_off - 40, -left_support_off, -right_support_off);