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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. // 3d printer specific
  2. screw_gap = 0.3;
  3. nut_gap = -0.2;
  4. dispenser_rim_dia = 210; // TODO
  5. dispenser_rim_height = 2.0; // TODO
  6. dispenser_top_dia = 200;
  7. dispenser_top_height = 108;
  8. dispenser_mid_dia = 35.5;
  9. dispenser_nozzle_top_height = 45;
  10. dispenser_nozzle_top_dia = 35.3;
  11. dispenser_nozzle_mid_height = 20;
  12. dispenser_nozzle_mid_dia = 40;
  13. dispenser_nozzle_cap_height = 17;
  14. dispenser_nozzle_cap_dia_1 = 5.8;
  15. dispenser_nozzle_cap_dia_2 = dispenser_nozzle_mid_dia;
  16. dispenser_nozzle_end_length = 10;
  17. dispenser_nozzle_end_dia_1 = 3.4;
  18. dispenser_nozzle_end_dia_2 = dispenser_nozzle_cap_dia_1;
  19. dispenser_wall = 3;
  20. dispenser_handle_dia = 21;
  21. dispenser_handle_length = 100;
  22. dispenser_handle_angle = 38;
  23. dispenser_height = dispenser_top_height + dispenser_nozzle_top_height + dispenser_nozzle_mid_height + dispenser_nozzle_cap_height + dispenser_nozzle_end_length;
  24. dispenser_arm_dia = 7.0;
  25. dispenser_arm_len = 250;
  26. dispenser_arm_height = 75;
  27. dispenser_arm_tab_off = 21;
  28. dispenser_arm_tab_hole_off = 14;
  29. dispenser_arm_handle_overlap = 20;
  30. dispenser_arm_handle_width = 20;
  31. dispenser_arm_handle_len = 30;
  32. dispenser_arm_handle_height = 2;
  33. dispenser_arm_handle_y = 10;
  34. dispenser_arm_handle_z = 15;
  35. dispenser_arm_angle_top = -5;
  36. dispenser_arm_angle_bottom = 6;
  37. disp_mount_wall = 20;
  38. disp_mount_overlap_x = 50;
  39. disp_mount_overlap_y = 40;
  40. disp_mount_add_x = 20;
  41. disp_mount_add_y = 50;
  42. disp_mount_width = dispenser_rim_dia / 2 - disp_mount_overlap_x + disp_mount_add_x;
  43. disp_mount_len = dispenser_rim_dia / 2 + disp_mount_overlap_y + disp_mount_add_y;
  44. disp_mount_off_x = dispenser_rim_dia / 2 - disp_mount_overlap_x;
  45. disp_mount_off_y = disp_mount_overlap_y;
  46. dispenser_mount_rail_off = dispenser_rim_dia / 2 + disp_mount_add_y;
  47. rail_wheel_height = 11;
  48. rail_wheel_center_height = 5;
  49. rail_wheel_outer = 24;
  50. rail_wheel_mid = 18;
  51. rail_wheel_inner = 5;
  52. nema17_len = 40;
  53. nema17_size = 42.3;
  54. nema17_hole_off = 31.0 / 2;
  55. nema17_hole_size = 3.0;
  56. nema17_shaft_size = 5.0;
  57. nema17_shaft_length = 24.0;
  58. nema17_center_size = 22.0;
  59. nema17_center_height = 2.0;
  60. motor_mount_height = 8;
  61. motor_mount_length = 35;
  62. motor_mount_l = nema17_size + motor_mount_length;
  63. motor_mount_hole_size_nominal = 5;
  64. motor_mount_hole_size = motor_mount_hole_size_nominal + screw_gap;
  65. motor_mount_hole_off = motor_mount_length - 15;
  66. belt_width = 6;
  67. belt_pitch = 2;
  68. belt_thickness = 1.35;
  69. /**********************************
  70. ************ Extruder ************
  71. **********************************/
  72. function dia_from_teeth(teeth) = teeth * belt_pitch / 3.14159;
  73. pulley_teeth_height = belt_width + 4;
  74. pulley_mount_height = 5;
  75. pulley_mount_dia = 8;
  76. pulley_height = pulley_teeth_height + pulley_mount_height;
  77. large_teeth = 60;
  78. small_teeth = 20;
  79. large_dia = dia_from_teeth(large_teeth);
  80. small_dia = dia_from_teeth(small_teeth);
  81. perimeter_large_wheel = large_dia * 3.14159;
  82. perimeter_small_wheel = small_dia * 3.14159;
  83. axis_diameter = 5.0;
  84. axis_hole_diameter = axis_diameter + screw_gap;
  85. // MR115 2RS
  86. bearing_inner = axis_diameter;
  87. bearing_outer = 11.0 + screw_gap;
  88. bearing_height = 4.0;
  89. belt_length = 200;
  90. belt_length_wheels = perimeter_large_wheel / 2 + perimeter_small_wheel / 2;
  91. belt_length_center = belt_length - belt_length_wheels;
  92. gears_dist = belt_length_center / 2;
  93. gear_stages = 1;
  94. // allow room for metal pulleys
  95. gear_stage_height = pulley_height + 15;
  96. gear_stages_dist = (bearing_height + 1) * 2;
  97. gearbox_wall = gear_stages_dist; //bearing_height + 1;
  98. gearbox_gap = 2;
  99. gearbox_height = gears_dist + large_dia + (gearbox_wall + gearbox_gap) * 2;
  100. gearbox_width = large_dia + (gearbox_wall + gearbox_gap) * 2;
  101. gearbox_depth = 2 * gearbox_wall + gear_stages * gear_stage_height + (gear_stages - 1) * gear_stages_dist;
  102. echo("gearbox_depth", gearbox_depth);
  103. extruder_travel = 60;
  104. extruder_wall_screw = 3.0;
  105. extruder_use_threaded_rods = true;
  106. extruder_wall_hole_screw = extruder_wall_screw + screw_gap;
  107. extruder_wall_hole_nut = extruder_use_threaded_rods ? extruder_wall_hole_screw : (extruder_wall_screw + nut_gap);
  108. extruder_wall_hole_depth = extruder_use_threaded_rods ? gearbox_height : 8.0;
  109. /***********************************
  110. ************** Table **************
  111. ***********************************/
  112. // size of woking area
  113. plate_x = 250;
  114. plate_y = 350;
  115. plate_z = 5;
  116. plate_mount_screws_nominal = 5.0;
  117. plate_mount_screws_distance_x = 60;
  118. plate_mount_screws_distance_y = 80;
  119. plate_mount_screw_hole = plate_mount_screws_nominal + screw_gap;
  120. belt_slot_width = belt_width + 4;
  121. belt_slot_depth = belt_thickness + 2;
  122. belt_mount_width = belt_slot_width + 2;
  123. belt_mount_depth = belt_slot_depth + 4;
  124. belt_mount_full_width = belt_mount_width * 3;
  125. y_carriage_add_material_around_holes = 10;
  126. y_carriage_h = 10;
  127. y_carriage_rail_dist = 6.5;
  128. y_carriage_post_dia = 2 * 13 / sqrt(3);
  129. y_carriage_post_screw = 5.0;
  130. y_carriage_post_hole_off = 2;
  131. y_carriage_post_center = 1;
  132. y_carriage_post_screw_hole = y_carriage_post_screw + nut_gap;
  133. y_carriage_post_len = y_carriage_rail_dist - rail_wheel_height / 2 + 10;
  134. echo("y_carriage_post_len", y_carriage_post_len);
  135. eccentric_height_main = 8.5;
  136. eccentric_height_inset = 2.4;
  137. eccentric_dia_inset = 7.3;
  138. eccentric_dia_main = 11.5;
  139. eccentric_hole_off = 0.75;
  140. eccentric_screw_hole = y_carriage_post_screw_hole + 2 * eccentric_hole_off;
  141. eccentric_height_add = y_carriage_post_len - eccentric_height_main;
  142. eccentric_inset_wall = 15.0;
  143. eccentric_inset_hole = eccentric_height_inset + 0.6;
  144. eccentric_screw_hole_h = 6.5;
  145. eccentric_screw_hole_dia = 15.0 + 2 * eccentric_hole_off;
  146. use_custom_eccentric = true;
  147. y_carriage_wheel_off_x = 20.4;
  148. y_carriage_wheel_off_y = 28;
  149. y_carriage_pulley_off = y_carriage_rail_dist - rail_wheel_height / 2 + 10;
  150. y_carriage_x = plate_mount_screws_distance_x + 2 * y_carriage_add_material_around_holes;
  151. y_carriage_y = plate_mount_screws_distance_y + 2 * y_carriage_add_material_around_holes;
  152. y_carriage_wheel_x_dist = y_carriage_x - 2 * y_carriage_wheel_off_x;
  153. y_carriage_wheel_y_dist = y_carriage_y - 2 * y_carriage_wheel_off_y;
  154. x_carriage_holder_w = y_carriage_x;
  155. x_carriage_holder_l = (y_carriage_y - 20) / 2;
  156. x_carriage_holder_h = 4;
  157. x_carriage_holder_rail_hole_dist = x_carriage_holder_w - 20;
  158. x_carriage_holder_hole_off = x_carriage_holder_h + 10;
  159. ideal_belt_pulley_dia = 20 - belt_thickness * 2 + y_carriage_rail_dist + belt_thickness / 4;
  160. belt_pulley_off = y_carriage_rail_dist / 2 - belt_thickness / 4;
  161. teethcount = round((ideal_belt_pulley_dia + belt_thickness) * 3.14159 / belt_pitch);
  162. echo("belt pulley teeth count", teethcount);
  163. real_belt_pulley_dia = teethcount * belt_pitch / 3.14159;
  164. belt_pulley_width = belt_width + 4;
  165. belt_pulley_tooth_width = belt_width + 2;
  166. belt_pulley_rim = 1;
  167. belt_pulley_axis_hole = nema17_shaft_size + screw_gap;
  168. belt_pulley_fix_dia = 3.0 + nut_gap;
  169. belt_tensioner_screw = 3.0;
  170. belt_tensioner_screw_hole = belt_tensioner_screw + screw_gap;
  171. belt_tensioner_wall = 5;
  172. belt_tensioner_mount_depth = 20;
  173. belt_tensioner_travel = 15;
  174. belt_tensioner_moving_height = 10;
  175. belt_tensioner_moving_len = real_belt_pulley_dia / 2 + 20;
  176. belt_tensioner_moving_overlap = 10;
  177. belt_tensioner_moving_gap = 0.3;
  178. belt_tensioner_diff_len = real_belt_pulley_dia / 2 + belt_tensioner_moving_len - belt_tensioner_moving_overlap + belt_tensioner_travel + 5;
  179. belt_tensioner_diff_width = belt_pulley_width + 2 * belt_tensioner_moving_gap + 0.5;
  180. belt_tensioner_diff_height = belt_tensioner_moving_height + 0.5;
  181. y_axis_travel_len = plate_y + 15;
  182. y_axis_rail_len = y_axis_travel_len + y_carriage_y + motor_mount_length + belt_tensioner_mount_depth;
  183. x_axis_travel_len = plate_x + 15;
  184. x_axis_rail_len = x_axis_travel_len + y_carriage_y + motor_mount_length + belt_tensioner_mount_depth;
  185. // TODO!
  186. point_that_reaches_everywhere_x = -7.5;
  187. point_that_reaches_everywhere_y = -17.5;
  188. use_anim = true;
  189. x_axis_position = 1.0;
  190. y_axis_position = 0.5;
  191. anim_pos_x = use_anim ? sin($t * 360) * 0.5 + 0.5 : x_axis_position;
  192. anim_pos_y = use_anim ? sin($t * 360 + 90) * 0.5 + 0.5 : y_axis_position;
  193. echo("animation position x", anim_pos_x);
  194. echo("animation position y", anim_pos_y);
  195. x_axis_animation_position = anim_pos_x * x_axis_travel_len;
  196. y_axis_animation_position = anim_pos_y * y_axis_travel_len;
  197. extruder_axis_position = 0.0;
  198. anim_pos_extruder = use_anim ? -cos($t * 360) * 0.5 + 0.5 : extruder_axis_position;
  199. draw_pulleys = false;
  200. left_support_len = 200;
  201. left_support_off = 50;
  202. right_support_len = left_support_len;
  203. right_support_off = left_support_off;
  204. echo("distance between bottom support rails", x_axis_rail_len - left_support_off - right_support_off - 40, -left_support_off, -right_support_off);
  205. bottom_support_len = 500;
  206. bottom_support_off = 80;
  207. use_double_supports = false;
  208. endstop_pcb_width = 16.0;
  209. endstop_pcb_height = 40.0;
  210. endstop_pcb_depth = 1.6;
  211. endstop_pcb_hole = 3.2;
  212. endstop_pcb_hole_dist_x = 3.2;
  213. endstop_pcb_hole_dist_y = 3.2;
  214. endstop_pcb_hole_dist = 19.0;
  215. endstop_pcb_switchpoint = 4.5;
  216. endstop_mount_width = 12;
  217. endstop_mount_depth = 5;
  218. endstop_mount_slot_width = 6;
  219. endstop_mount_slot_depth = 4;
  220. endstop_mount_slot_length = 8;
  221. endstop_mount_add_height = 15;
  222. endstop_mount_nut_hole = 6.5;
  223. endstop_pcb_mount_off_h = y_carriage_rail_dist + endstop_pcb_switchpoint + 2; // TODO is now -3
  224. endstop_pcb_mount_off_d = 18; // TODO was 8
  225. endstop_pcb_mount_off_w = endstop_mount_slot_length;
  226. use_endstop_mount_v2 = false;
  227. foot_screw_dia = 5.3;
  228. foot_screw_head_dia = 10.0;
  229. foot_screw_head_height = 7.0;
  230. foot_nut_base_dia = foot_screw_head_dia;
  231. foot_dia_add = 10.0;
  232. foot_dia = max(foot_screw_dia, foot_screw_head_dia) + foot_dia_add;
  233. carriage_spacer_height = 5;
  234. carriage_spacer_cut = 4;
  235. carriage_spacer_cut_x = y_carriage_x / 2 - carriage_spacer_cut;
  236. carriage_spacer_cut_y = y_carriage_y / 2 - carriage_spacer_cut;