Без опису
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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 + screw_gap;
  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. echo("y_carriage_post_len", y_carriage_post_len);
  132. eccentric_height_main = 8.5;
  133. eccentric_height_inset = 2.4;
  134. eccentric_dia_inset = 7.3;
  135. eccentric_dia_main = 11.5;
  136. eccentric_hole_off = 0.75;
  137. eccentric_screw_hole = y_carriage_post_screw_hole + 2 * eccentric_hole_off;
  138. eccentric_height_add = y_carriage_post_len - eccentric_height_main;
  139. eccentric_inset_wall = 15.0;
  140. eccentric_inset_hole = eccentric_height_inset + 0.6;
  141. eccentric_screw_hole_h = 6.5;
  142. eccentric_screw_hole_dia = 15.0 + 2 * eccentric_hole_off;
  143. use_custom_eccentric = true;
  144. y_carriage_wheel_off_x = 20.4;
  145. y_carriage_wheel_off_y = 28;
  146. y_carriage_pulley_off = y_carriage_rail_dist - rail_wheel_height / 2 + 10;
  147. y_carriage_x = plate_mount_screws_distance_x + 2 * y_carriage_add_material_around_holes;
  148. y_carriage_y = plate_mount_screws_distance_y + 2 * y_carriage_add_material_around_holes;
  149. y_carriage_wheel_x_dist = y_carriage_x - 2 * y_carriage_wheel_off_x;
  150. y_carriage_wheel_y_dist = y_carriage_y - 2 * y_carriage_wheel_off_y;
  151. x_carriage_holder_w = y_carriage_x;
  152. x_carriage_holder_l = (y_carriage_y - 20) / 2;
  153. x_carriage_holder_h = 4;
  154. x_carriage_holder_rail_hole_dist = x_carriage_holder_w - 20;
  155. x_carriage_holder_hole_off = x_carriage_holder_h + 10;
  156. ideal_belt_pulley_dia = 20 - belt_thickness * 2 + y_carriage_rail_dist + belt_thickness / 4;
  157. belt_pulley_off = y_carriage_rail_dist / 2 - belt_thickness / 4;
  158. teethcount = round((ideal_belt_pulley_dia + belt_thickness) * 3.14159 / belt_pitch);
  159. echo("belt pulley teeth count", teethcount);
  160. real_belt_pulley_dia = teethcount * belt_pitch / 3.14159;
  161. belt_pulley_width = belt_width + 4;
  162. belt_pulley_tooth_width = belt_width + 2;
  163. belt_pulley_rim = 1;
  164. belt_pulley_axis_hole = nema17_shaft_size + screw_gap;
  165. belt_pulley_fix_dia = 3.0 + nut_gap;
  166. belt_tensioner_screw = 3.0;
  167. belt_tensioner_screw_hole = belt_tensioner_screw + screw_gap;
  168. belt_tensioner_wall = 5;
  169. belt_tensioner_mount_depth = 20;
  170. belt_tensioner_travel = 15;
  171. belt_tensioner_moving_height = 10;
  172. belt_tensioner_moving_len = real_belt_pulley_dia / 2 + 20;
  173. belt_tensioner_moving_overlap = 10;
  174. belt_tensioner_moving_gap = 0.3;
  175. belt_tensioner_diff_len = real_belt_pulley_dia / 2 + belt_tensioner_moving_len - belt_tensioner_moving_overlap + belt_tensioner_travel + 5;
  176. belt_tensioner_diff_width = belt_pulley_width + 2 * belt_tensioner_moving_gap + 0.5;
  177. belt_tensioner_diff_height = belt_tensioner_moving_height + 0.5;
  178. y_axis_travel_len = plate_y + 15;
  179. y_axis_rail_len = y_axis_travel_len + y_carriage_y + motor_mount_length + belt_tensioner_mount_depth;
  180. x_axis_travel_len = plate_x + 15;
  181. x_axis_rail_len = x_axis_travel_len + y_carriage_y + motor_mount_length + belt_tensioner_mount_depth;
  182. // TODO!
  183. point_that_reaches_everywhere_x = -7.5;
  184. point_that_reaches_everywhere_y = -17.5;
  185. use_anim = false;
  186. x_axis_position = 1.0;
  187. y_axis_position = 0.5;
  188. anim_pos_x = use_anim ? sin($t * 360) * 0.5 + 0.5 : x_axis_position;
  189. anim_pos_y = use_anim ? sin($t * 360 + 90) * 0.5 + 0.5 : y_axis_position;
  190. echo("animation position x", anim_pos_x);
  191. echo("animation position y", anim_pos_y);
  192. x_axis_animation_position = anim_pos_x * x_axis_travel_len;
  193. y_axis_animation_position = anim_pos_y * y_axis_travel_len;
  194. extruder_axis_position = 1.0;
  195. anim_pos_extruder = use_anim ? sin($t * 360) * 0.5 + 0.5 : extruder_axis_position;
  196. extruder_axis_anim_position = anim_pos_extruder * extruder_travel;
  197. draw_pulleys = false;
  198. left_support_len = 200;
  199. left_support_off = 50;
  200. right_support_len = left_support_len;
  201. right_support_off = left_support_off;
  202. echo("distance between bottom support rails", x_axis_rail_len - left_support_off - right_support_off - 40, -left_support_off, -right_support_off);
  203. bottom_support_len = 500;
  204. bottom_support_off = 80;
  205. use_double_supports = false;
  206. endstop_pcb_width = 16.0;
  207. endstop_pcb_height = 40.0;
  208. endstop_pcb_depth = 1.6;
  209. endstop_pcb_hole = 3.2;
  210. endstop_pcb_hole_dist_x = 3.2;
  211. endstop_pcb_hole_dist_y = 3.2;
  212. endstop_pcb_hole_dist = 19.0;
  213. endstop_pcb_switchpoint = 4.5;
  214. endstop_mount_width = 12;
  215. endstop_mount_depth = 5;
  216. endstop_mount_slot_width = 6;
  217. endstop_mount_slot_depth = 4;
  218. endstop_mount_slot_length = 8;
  219. endstop_mount_add_height = 15;
  220. endstop_mount_nut_hole = 6.5;
  221. endstop_pcb_mount_off_h = y_carriage_rail_dist + endstop_pcb_switchpoint + 2; // TODO is now -3
  222. endstop_pcb_mount_off_d = 18; // TODO was 8
  223. endstop_pcb_mount_off_w = endstop_mount_slot_length;
  224. use_endstop_mount_v2 = false;
  225. foot_screw_dia = 5.3;
  226. foot_screw_head_dia = 10.0;
  227. foot_screw_head_height = 7.0;
  228. foot_nut_base_dia = foot_screw_head_dia;
  229. foot_dia_add = 10.0;
  230. foot_dia = max(foot_screw_dia, foot_screw_head_dia) + foot_dia_add;
  231. carriage_spacer_height = 5;
  232. carriage_spacer_cut = 4;
  233. carriage_spacer_cut_x = y_carriage_x / 2 - carriage_spacer_cut;
  234. carriage_spacer_cut_y = y_carriage_y / 2 - carriage_spacer_cut;