My self-made 3D-printable designs, mainly in OpenSCAD
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.

hotend_extruder_mount.scad 28KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919
  1. dual = false; // dual extruder version
  2. mirrored = 1; // 1 = "right", 0 = "left"
  3. prometheus = false; // E3D v6 otherwise
  4. width = 42.5;
  5. depth = 30; //filament to x carriage. Good for 40mm long motor
  6. height = 51;
  7. height_m = 20; //motor to hotend top. You may need to increase this for prometheus!
  8. cover_d = 16;
  9. holes_top1 = 35; //geetech, etc. (comment out to disable)
  10. holes_spacing1 = 30;
  11. holes_top2 = 23; //rework X-carriage
  12. holes_spacing2 = 23;
  13. holes_top3 = holes_top2 + 23;
  14. holes_spacing3 = 23;
  15. filament_d = 1.75;
  16. gear_od = 12; //outer diameter: mk8 = 9, mk7 = 12
  17. gear_ed = 10.25; //effective diameter: mk8 = 6.75, mk7 = 10.25
  18. gear_groove_width = 3.5;
  19. filament_offset = (gear_ed + filament_d)/2; //mk8 = 4.25, mk7 = 6
  20. echo(extruder_filament_offset=filament_offset);
  21. //bearing
  22. //603
  23. //bearing_od = 9; bearing_id = 3; bearing_h = 3;
  24. //623
  25. //bearing_od = 10; bearing_id = 3; bearing_h = 4;
  26. //624
  27. bearing_od = 13; bearing_id = 4; bearing_h = 5;
  28. //625
  29. //bearing_od = 16; bearing_id = 5; bearing_h = 5;
  30. //MR104
  31. //bearing_od = 10; bearing_id = 4; bearing_h = 4;
  32. brass_tube = false;
  33. fillet = 1.5;
  34. supports = true;
  35. include <rounded.scad>
  36. //use <pen_holder.scad>
  37. //assembly();
  38. //print();
  39. //base(dual);
  40. //translate([0, 0, 10])
  41. // rotate([0, 180, 0])
  42. translate([-30, 20, 40])
  43. xy_fan_duct2();
  44. //mirror ([mirrored, 0, 0])
  45. // translate([-16, 15, 6])
  46. // rotate([90, 0, 0])
  47. // lever_switch();
  48. //translate([0, 0, -21.5])
  49. // rotate([0, -90, 0])
  50. // xy_fan_mount();
  51. //translate([0, 0, 13])
  52. // rotate([0, 90, 0])
  53. // translate([-34.5, 28.5, 34])
  54. // xy_fan_duct();
  55. //translate([0, 0, 55])
  56. // xy_fan_outlet();
  57. module switch_model() {
  58. $fn = 15;
  59. difference() {
  60. union() {
  61. cube([12.8, 5.8, 6.2]);
  62. translate([-0.5, (5.8 - 4) / 2, 6.2 + 2.5])
  63. rotate([0, 11, 0])
  64. cube([13.5, 4.0, 0.3]);
  65. translate([0.9, 5.8 / 2, -4.0])
  66. cylinder(d = 0.8, h = 4.0);
  67. translate([12.8 - 0.9, 5.8 / 2, -4.0])
  68. cylinder(d = 0.8, h = 4.0);
  69. translate([12.8 / 2, 5.8 / 2, -4.0])
  70. cylinder(d = 0.8, h = 4.0);
  71. }
  72. translate([3.1, 5.9, 1.0])
  73. rotate([90, 0, 0])
  74. cylinder(d = 2.0, 6.0);
  75. translate([3.1 + 6.5, 5.9, 1.0])
  76. rotate([90, 0, 0])
  77. cylinder(d = 2.0, 6.0);
  78. }
  79. }
  80. module lever_switch() {
  81. $fn = 20;
  82. translate([-6, 0, -62.4])
  83. lever();
  84. //%translate([-9 + 0.5, 3, 0])
  85. // rotate([180, -90, 0])
  86. // switch_model();
  87. difference() {
  88. cylinder(d = 9.0, h = 13.0);
  89. translate([0, 0, -0.1])
  90. cylinder(d1 = 5.1, d2 = 2.5, h = 13.2);
  91. translate([-5.5, -15, 0])
  92. cube([5, 30, 13.1]);
  93. translate([-9 + 0.5, 3, 0])
  94. rotate([180, -90, 0])
  95. switch_model();
  96. }
  97. difference() {
  98. union() {
  99. translate([-11, 3.0, 0])
  100. cube([11, 1.5 + 1.5, 13]);
  101. translate([-11, -6.0, -3])
  102. cube([11, 1.5 + 1.5, 13 + 3]);
  103. }
  104. for (off = [-1 : 0.1 : 1]) {
  105. translate([-7.5 + off, 10, 3.1])
  106. rotate([90, 0, 0])
  107. cylinder(d = 2.5, 20.0);
  108. translate([-7.5 + off, 10, 9.6])
  109. rotate([90, 0, 0])
  110. cylinder(d = 2.5, 20.0);
  111. }
  112. }
  113. }
  114. module xy_fan_outlet_single() {
  115. $fn = 15;
  116. translate([4.5, 0, -51])
  117. difference() {
  118. rotate([0, -90, 0])
  119. cylinder(d = 5, h = 50);
  120. translate([2, 0, 0])
  121. rotate([0, -90, 0])
  122. cylinder(d = 3, h = 50);
  123. for (i = [5 : 2 : 48]) {
  124. if ((i <= 15) || (i >= 35))
  125. #translate([-i, 14, -3.5])
  126. rotate([77, 0, 0])
  127. cylinder(d = 1.0, h = 14.0);
  128. }
  129. }
  130. }
  131. module xy_fan_outlet() {
  132. $fn = 15;
  133. // duct plug-in
  134. difference() {
  135. hull() {
  136. translate([18.5, -3.5, -49])
  137. cube([1, 7, 7]);
  138. translate([13.5, -5, -50.5])
  139. cube([1, 10, 10]);
  140. }
  141. hull() {
  142. translate([18.5, -2.5, -48])
  143. cube([1.1, 5, 5]);
  144. translate([13.4, -4, -49.5])
  145. cube([1.1, 8, 8]);
  146. }
  147. }
  148. difference() {
  149. translate([13.5, -4, -49.5])
  150. cube([1, 8, 8]);
  151. translate([12.4, -1.5, -47])
  152. rotate([0, 90, 0])
  153. cylinder(d = 3, h = 2.2);
  154. translate([12.4, 1.5, -47])
  155. rotate([0, 90, 0])
  156. cylinder(d = 3, h = 2.2);
  157. }
  158. // adaptors to arms
  159. difference() {
  160. union() {
  161. hull() {
  162. translate([12.5, -1.5, -47])
  163. rotate([0, 90, 0])
  164. cylinder(d = 5, h = 1);
  165. translate([4.5, -15, -51])
  166. rotate([0, 90, 0])
  167. cylinder(d = 5, h = 1);
  168. }
  169. hull() {
  170. translate([12.5, 1.5, -47])
  171. rotate([0, 90, 0])
  172. cylinder(d = 5, h = 1);
  173. translate([4.5, 15, -51])
  174. rotate([0, 90, 0])
  175. cylinder(d = 5, h = 1);
  176. }
  177. }
  178. hull() {
  179. translate([12.5, -1.5, -47])
  180. rotate([0, 90, 0])
  181. cylinder(d = 3, h = 1);
  182. translate([4.5, -15, -51])
  183. rotate([0, 90, 0])
  184. cylinder(d = 3, h = 1);
  185. }
  186. hull() {
  187. translate([12.5, 1.5, -47])
  188. rotate([0, 90, 0])
  189. cylinder(d = 3, h = 1);
  190. translate([4.5, 15, -51])
  191. rotate([0, 90, 0])
  192. cylinder(d = 3, h = 1);
  193. }
  194. }
  195. // back arm
  196. translate([0, -15, 0])
  197. xy_fan_outlet_single();
  198. // front arm
  199. translate([0, 15, 0])
  200. scale([1, -1, 1])
  201. xy_fan_outlet_single();
  202. }
  203. module xy_fan_duct2_insert(off=0) {
  204. translate([-25 - (off / 2), -26 - (off / 2), 1 + (off / 2)])
  205. cube([13 + off - 0.5, 18 + off - 1, 3 - off]);
  206. if (off >= 0) {
  207. translate([-25.5, -27, 0.5])
  208. cube([14, 19, 1]);
  209. }
  210. }
  211. module xy_fan_duct2_hull(off=0) {
  212. hull() {
  213. translate([-40 + (off / 10), -1 - off / 2, -18.2 - (off / 5) + 1])
  214. rotate([0, -3, 0])
  215. cube([2 - (off / 10), 12 + off, 4 + off]);
  216. /*
  217. if (off < 0) {
  218. %translate([-40 + (off / 10), -1 - off / 2, -18.2 - (off / 5) + 1])
  219. rotate([0, -3, 0])
  220. translate([-60, 0, 0])
  221. cube([2 - (off / 10) + 60, 12 + off, 4 + off]);
  222. }
  223. */
  224. translate([-25.5 - (off / 2),-27 - (off / 2), -0.5])
  225. cube([14 + off, 19 + off, 1 - (off / 100)]);
  226. }
  227. }
  228. module xy_fan_duct2() {
  229. $fn = 15;
  230. translate([54.5, -2.5, -34.5]) {
  231. // visualize air stream
  232. //%translate([-120, 0, -21 + 0.5])
  233. // rotate([0, -2, 0])
  234. // cube([80, 10, 2]);
  235. difference() {
  236. union() {
  237. xy_fan_duct2_insert(0);
  238. xy_fan_duct2_hull(0);
  239. }
  240. xy_fan_duct2_insert(-2);
  241. xy_fan_duct2_hull(-3);
  242. }
  243. }
  244. }
  245. // custom fan duct
  246. module xy_fan_duct() {
  247. $fn = 15;
  248. translate([34.5, -28.5, -34])
  249. difference() {
  250. union() {
  251. // fan insert
  252. hull() {
  253. translate([0.5, 1.5, 3])
  254. cube([12, 15, 1]);
  255. cube([13, 18, 1]);
  256. }
  257. // air "path"
  258. hull() {
  259. translate([0, 0, -1])
  260. cube([13, 18, 1]);
  261. translate([0, 7, -10])
  262. rotate([-45, 0, 0])
  263. cube([13, 1, 13]);
  264. translate([0, 20, -14])
  265. cube([13, 1, 13]);
  266. }
  267. hull() {
  268. translate([0, 20, -14])
  269. cube([13, 1, 13]);
  270. translate([-5, 22, -14])
  271. cube([1, 13, 13]);
  272. translate([-18, 22, -18])
  273. cube([1, 13, 13]);
  274. }
  275. }
  276. // cutout for fan insert
  277. translate([2, 2.5, -1])
  278. cube([9, 13, 6]);
  279. // air "path"
  280. hull() {
  281. translate([2, 2, -1])
  282. cube([9, 14, 1]);
  283. translate([2, 7, -8])
  284. rotate([-45, 0, 0])
  285. cube([9, 1, 9]);
  286. translate([2, 20, -12])
  287. cube([9, 1, 9]);
  288. }
  289. hull() {
  290. translate([2, 20, -12])
  291. cube([9, 1, 9]);
  292. translate([-5, 24, -12])
  293. cube([1, 9, 9]);
  294. translate([-18.1, 24, -16])
  295. cube([1.1, 9, 9]);
  296. }
  297. }
  298. }
  299. // custom fan mount
  300. module xy_fan_mount() {
  301. $fn = 15;
  302. translate([21.5, -10, 0]) {
  303. // upper screw base
  304. difference() {
  305. translate([0, -8, 0])
  306. cube([2, 32 + 8, 10]);
  307. translate([-1, 5, 5])
  308. rotate([0, 90, 0])
  309. cylinder(d = 3.2, h = 4);
  310. translate([-1, 15, 5])
  311. rotate([0, 90, 0])
  312. cylinder(d = 3.2, h = 4);
  313. translate([-1, 25, 5])
  314. rotate([0, 90, 0])
  315. cylinder(d = 3.2, h = 4);
  316. }
  317. // lower screw base
  318. translate([0, 32, -30])
  319. difference() {
  320. cube([2, 8, 40]);
  321. translate([-1, 4, 4])
  322. rotate([0, 90, 0])
  323. cylinder(d = 3.2, h = 4);
  324. translate([-1, 4, 24])
  325. rotate([0, 90, 0])
  326. cylinder(d = 3.2, h = 4);
  327. }
  328. // lower fan mount
  329. translate([0, 32 - 8, -30])
  330. difference() {
  331. union() {
  332. cube([2, 8, 10]);
  333. translate([2, 4, 4])
  334. rotate([0, 90, 0])
  335. cylinder(d = 8, h = 5);
  336. }
  337. translate([-1, 4, 4])
  338. rotate([0, 90, 0])
  339. cylinder(d = 3.2, h = 9);
  340. }
  341. // left fan mount
  342. translate([0, -11 - 8, 0])
  343. difference() {
  344. union() {
  345. cube([2, 11, 16]);
  346. translate([2, 4, 12])
  347. rotate([0, 90, 0])
  348. cylinder(d = 8, h = 5);
  349. }
  350. translate([-1, 4, 12])
  351. rotate([0, 90, 0])
  352. cylinder(d = 3.2, h = 9);
  353. }
  354. }
  355. }
  356. mirror([mirrored, 0, 0]) {
  357. //translate([0, 31, depth]) rotate([-90, 0, 0]) base(dual);
  358. //translate([20,0,10]) rotate([-90, 0, 0]) holder();
  359. //translate([20,0,00]) rotate([-90, 0, 0]) cover();
  360. }
  361. module print() {
  362. mirror ([mirrored, 0, 0]) {
  363. translate([dual ? -20 : 0,31,depth]) rotate([-90, 0, 0]) base(dual);
  364. translate([50,0,10]) rotate([-90, 0, 0]) top_plate();
  365. translate([50,0,10]) rotate([-90, 0, 0]) holder();
  366. translate([100,0,00]) rotate([-90, 0, 0]) cover();
  367. translate([105,50,height_m+42.5]) rotate([-180, 0, 0]) lever();
  368. translate([30,65,-23]) rotate([-90, 0, 0]) duct_5015();
  369. }
  370. }
  371. module assembly() {
  372. color("blue") xy_fan_mount();
  373. color("cyan") xy_fan_duct2();
  374. //color("purple") xy_fan_outlet();
  375. %translate([-248.7, -569.5, -31])
  376. import("sensor_mount_19mm_v3.stl");
  377. %translate([21.5, -10, 0])
  378. translate([2 + 5, 14.5 - 8, -7])
  379. rotate([90, 0, 90])
  380. fan_5015();
  381. mirror ([mirrored, 0, 0]) {
  382. assembly_top();
  383. if (dual)
  384. {
  385. translate([width/2, 0, 0]) color("green") base(dual);
  386. translate([width, 0, 0]) mirror([1, 0, 0]) assembly_top();
  387. }
  388. else
  389. {
  390. color("green") base(dual);
  391. }
  392. //translate([100,0,0]) ptfe_mount();
  393. }
  394. //translate([filament_offset, -cover_d, 0]) pen_holder_assembly(10);
  395. /*
  396. translate([-width * 3 / 2, -43/2+5, -38/2+5]) rotate([-90,180,90]) {
  397. color("gray", 0.5) render() fan_5015();
  398. duct_5015();
  399. }
  400. */
  401. translate([dual ? -width/2 : 0,depth,height_m-34]) rotate([270,180,0]) color("gray",0.5) import("i3_rework_1v0_x-carriage-_X-CarriageMod_LME8UU_gt_holes.stl");
  402. //translate([width/2+7.2,depth,-49]) color("gray",0.4) rotate([270,180,0]) import("PI3B-B03-carriage.STL");
  403. //translate([26.5,depth,19]) rotate([270,180,0]) color("gray",0.5) import("X-axis-part_3_lm8uu_v1_1.stl");
  404. //translate ([-10, -10, -55.5 ]) color("white",0.25) cube([width+20,depth+30,1]);
  405. }
  406. module assembly_top() {
  407. color("yellow") holder();
  408. color("yellow") top_plate();
  409. color("orange") cover();
  410. //color("red") lever();
  411. //color("red")
  412. translate([6, 0, 62.4])
  413. lever_switch();
  414. color("silver", 0.5) bearing();
  415. color("blue", 0.25) translate([filament_offset,0, 0]) cylinder(d=filament_d, h=70, $fn=64); //filament
  416. if (prometheus)
  417. {
  418. translate([filament_offset+90, -90, -31]) rotate([0,0,90]) color("gray", 0.75) import("Aluminium_Heat_Sink_V1.1__5mm_.stl");
  419. translate([filament_offset, 0, -31]) color("gray", 0.5) rotate([180,0,0]) cylinder(d=5, h=19);
  420. }
  421. else
  422. translate([filament_offset, 0, -13.5]) rotate([90,0,90]) color("gray", 0.75) import("E3D_V6_1.75mm_Universal_HotEnd_Mockup.stl");
  423. translate([0,50,height_m+21.5]) rotate([90,0,0]) color("gray", 0.5) import("Nema17_40h.stl");
  424. translate([0,9.5,height_m+21.5]) rotate([90,0,0]) color("silver", 0.5) import("mk8gear.stl");
  425. }
  426. module base(dual = false) {
  427. base_w = dual ? width*2 : width;
  428. xadd = dual ? width/2 : 0;
  429. difference()
  430. {
  431. union(){
  432. translate([-base_w/2, 10, 0]) rounded_cube(base_w, depth-10, height_m, 0, fillet, 0);
  433. translate([-base_w/2, depth - 8, height_m-height]) rounded_cube(base_w, 8, height,fillet,fillet,fillet);
  434. translate([-xadd, 10, 14]) cube([width-24, 8, 5], center=true);
  435. if (dual)
  436. translate ([xadd, 10, 14]) cube([width-24, 8, 5], center=true);
  437. }
  438. if (holes_top1!=undef) {
  439. translate([-holes_spacing1/2, depth+0.1, height_m-holes_top1]) screw_hole_carriage();
  440. translate([ holes_spacing1/2, depth+0.1, height_m-holes_top1]) screw_hole_carriage();
  441. }
  442. if (holes_top2!=undef) {
  443. translate([-holes_spacing2/2, depth+0.1, height_m-holes_top2]) screw_hole_carriage();
  444. translate([ holes_spacing2/2, depth+0.1, height_m-holes_top2]) screw_hole_carriage();
  445. }
  446. if (holes_top2!=undef && holes_top3!=undef) {
  447. translate([-holes_spacing3/2, depth+0.1, height_m-holes_top3]) screw_hole_carriage();
  448. translate([ holes_spacing3/2, depth+0.1, height_m-holes_top3]) screw_hole_carriage();
  449. }
  450. translate ([-xadd, 0, 0]) screw_holes_main();
  451. if (dual)
  452. translate ([xadd, 0, 0]) screw_holes_main();
  453. //aux mount holes
  454. screw_hole_x(15, 5, l=10, w = base_w);
  455. screw_hole_x(depth - 4, -26, r=-90, l=7.5, w = base_w);
  456. screw_hole_x(depth - 4, -6, r=-90, l=8, w = base_w);
  457. }
  458. }
  459. module holder() {
  460. difference()
  461. {
  462. union(){
  463. translate([-width/2, 0, 0]) rounded_cube(width, 10, height_m, 0, fillet, 0);
  464. translate([-width/2, -6, height_m]) rounded_cube(width, 16, 11, fillet,fillet,fillet);
  465. translate([-width/2, -6, height_m-5]) rounded_cube(width, 16, 10, 0,0,fillet);
  466. translate([filament_offset-5,0, height_m+10]) cube ([10, 7.5, 9]); //tip for flex filament
  467. translate([-12,0, height_m+10.9]) cylinder(d2 = 5, d1=8, h=2.1, $fn=64); //spring
  468. }
  469. translate([-width/2-0.15, -15, 0.1]) rounded_cube(width+0.3, 15, height_m, fillet,fillet,fillet);
  470. translate([0, 10, 14]) cube([width-23.8, 10, 5.2], center=true);
  471. translate([0, 9.6, 14]) cube([width-23.0, 0.4, 6], center=true);
  472. translate([0,10.1,height_m+21.5]) rotate([90,0,0]) cylinder(d=23, h=2.6, $fn=64);
  473. translate([-12,0, height_m+11]) cylinder(r = 1.5, h=20, $fn=64, center=true); //spring
  474. //hotend mount
  475. translate([filament_offset,0, 0]) {
  476. hotend_mount();
  477. translate([-5.1,-10,20]) cube([10.2, 10, 20]);
  478. }
  479. //motor screws
  480. translate([-31/2, -6, height_m+6]) rotate([-90, 0, 0]) {
  481. cylinder(r = 1.6, h = 25, $fn=32);
  482. cylinder(r = 3.1, h = 6, $fn=32, center=true);
  483. }
  484. translate([ 31/2, -6, height_m+6]) rotate([-90, 0, 0]) {
  485. cylinder(r = 1.6, h = 25, $fn=32);
  486. cylinder(r = 3.1, h = 6, $fn=32, center=true);
  487. }
  488. screw_holes_main();
  489. flex_guide();
  490. //5015S fan mounts
  491. screw_hole_x(5, 5);
  492. }
  493. //tip supports
  494. if (supports)
  495. for (xx =[-5.2, -2.5, 0, 2.5, 4.7])
  496. translate([filament_offset+xx, 7.6, height_m+11.4]) cube ([0.55, 2.4, 8]);
  497. }
  498. module top_plate() {
  499. difference() {
  500. hull() {
  501. translate([-14.5, 6, height_m+39.5]) rotate([-90, 0, 0]) cylinder(r=3, h=4, $fn=32);
  502. translate([-18, 6, height_m+36]) rotate([-90, 0, 0]) cylinder(r=3, h=4, $fn=32);
  503. translate([-18, 6, height_m+29]) rotate([-90, 0, 0]) cylinder(r=3, h=4, $fn=32);
  504. translate([ 31/2, 6, height_m+37]) rotate([-90, 0, 0]) cylinder(r = 5.5, h=4, $fn=32);
  505. translate([18, 6, height_m+29]) rotate([-90, 0, 0]) cylinder(r=3, h=4, $fn=32);
  506. }
  507. translate([0,10.1,height_m+21.5]) rotate([90,0,0]) cylinder(d=24, h=5, $fn=64);
  508. //mount holes
  509. translate([-31/2, 5.9, height_m+37]) rotate([-90, 0, 0]) {
  510. cylinder(r = 1.6, h = 5, $fn=32);
  511. cylinder(r = 3.5, h = 2, $fn=32);
  512. }
  513. translate([ 31/2, 5.9, height_m+37]) rotate([-90, 0, 0]) {
  514. hd = brass_tube ? 4.2 : 3;
  515. cylinder(d = hd, h = 5, $fn=32);
  516. }
  517. }
  518. }
  519. module lever () {
  520. bearing_x = filament_offset + filament_d/2+bearing_od/2;
  521. lever_h = 12;
  522. translate([0, 0, height_m]) difference() {
  523. union() {
  524. //hull() {
  525. #translate([-8, -(lever_h/2), 32.5]) rounded_cube(38-14+fillet, lever_h, 10, noback = true);
  526. translate([-13, -(lever_h/2), 39.5]) rotate([-90, 0, 0]) rounded_cylinder(3, lever_h-1, fillet, true, true);
  527. translate([-13, -(lever_h/2), 35.5]) rotate([-90, 0, 0]) rounded_cylinder(3, lever_h-1, fillet, true, true);
  528. //}
  529. //hull() {
  530. translate([-13, -(lever_h/2), 39.5]) rotate([-90, 0, 0]) rounded_cylinder(3, lever_h-1, fillet, true, true);
  531. translate([-13, -(lever_h/2), 35.5]) rotate([-90, 0, 0]) rounded_cylinder(3, lever_h-1, fillet, true, true);
  532. translate([-18.5, -(lever_h/2), 35.5]) rotate([-90, 0, 0]) rounded_cylinder(3, lever_h-1, fillet, true, true);
  533. translate([-25, -(lever_h/2), 39.5]) rotate([-90, 0, 0]) rounded_cylinder(3, lever_h-1, fillet, true, true);
  534. //}
  535. //hull()
  536. {
  537. translate([bearing_x-bearing_od/2+1, -(lever_h/2), 21.5])
  538. rounded_cube(bearing_od/2, lever_h, 15);
  539. translate([ 31/2, -(lever_h/2), 37]) rotate([-90, 0, 0])
  540. rounded_cylinder(r = 5.5, h = lever_h, rrnd=fillet, $fn=64);
  541. translate([bearing_x, 0, 21.5]) rotate([-90, 0, 0])
  542. rounded_cylinder((bearing_od-2)/2, lever_h, center=true);
  543. if (bearing_od <= 16)
  544. translate([min((bearing_x+2),20-(bearing_od-2)/2), 0, 21.5]) rotate([-90, 0, 0])
  545. rounded_cylinder((bearing_od-2)/2, lever_h, center=true);
  546. }
  547. //translate([-12,0, 30.5]) cylinder(d1 = 5, d2=8, h=2.1, $fn=64); //spring tip
  548. translate([filament_offset,0, 30]) cylinder(d1 = 6, d2=10, h=3, $fn=64); //filament tip
  549. }
  550. translate([filament_offset,0, 42.5-3]) cylinder(d1 = 4, d2=5, h=3, $fn=64);
  551. //mounting hole
  552. translate([ 31/2, -(lever_h/2), 37]) rotate([-90, 0, 0]) {
  553. hd = brass_tube ? 4.2 : 3;
  554. cylinder(d=hd, h = 20, $fn=32); //change to r=1.5 if no brass pipe
  555. cylinder(d=8, h = 7, $fn=32, center=true);
  556. }
  557. translate([bearing_x, 0, 21.5]) rotate([-90, 0, 0]){
  558. difference() {
  559. cylinder(d=bearing_od+2, h=bearing_h+0.5, $fn=64, center=true);
  560. difference() {
  561. cylinder(d=bearing_id+(bearing_od-bearing_id)/3, h=bearing_h+0.5, $fn=64, center=true);
  562. cylinder(d=bearing_od, h=bearing_h+0.1, $fn=64, center=true);
  563. }
  564. }
  565. cylinder(d=bearing_id*0.95, h=20, $fn=64, center=true);
  566. }
  567. //translate([filament_offset, -(bearing_h)/2, 0]) cube([20, bearing_h+0.1, 21.5]);
  568. // filament hole
  569. translate([filament_offset,0, 25]) cylinder(d=4.2, h=20, $fn=64);
  570. // spring screw
  571. translate([-12,0, 32.5]) {
  572. cylinder(r = 1.6, h=30, $fn=64, center=true);
  573. translate([-3, -3.3, 3]) cube([6, 10, 3.0]);
  574. }
  575. }
  576. }
  577. module cover() {
  578. difference() {
  579. union() {
  580. translate([-width/2, -cover_d, 0]) rounded_cube(width, cover_d, height_m, fillet,fillet,fillet);
  581. translate([filament_offset-5,-6, height_m-1]) cube ([10, 6, 20]);
  582. }
  583. translate([filament_offset,0,0]) hotend_mount();
  584. screw_hole_x(-5, 5);
  585. screw_holes_main();
  586. flex_guide();
  587. //front fan mounts
  588. screw_hole_y(filament_offset+5, -cover_d, 5);
  589. screw_hole_y(filament_offset-5, -cover_d, 5);
  590. screw_hole_y(filament_offset-15, -cover_d, 5);
  591. }
  592. }
  593. module hotend_mount() {
  594. cylinder(d=4.2, h=46, $fn=64);
  595. cylinder(d=12.2, h=8, $fn=64);
  596. translate([0,0,8 - 4.1]) cylinder(d=17, h= prometheus ? 5 : 4.1, $fn=64);
  597. translate([0,0,8]) cylinder(d=9, h=2, $fn=64);
  598. }
  599. module screw_hole_x(y, z, r=0, l=8, w=width) {
  600. translate([-w/2, y, z]) rotate([0, 90, 0]) {
  601. cylinder(r = 1.6, h = l*2, $fn=32, center=true);
  602. rotate([0, 0, r]) translate([-3.3, -3, 3]) cube([10, 6, 3.0]);
  603. }
  604. translate([w/2, y, z]) rotate([0, -90, 0]) {
  605. cylinder(r = 1.6, h = l*2, $fn=32, center=true);
  606. rotate([0, 0, -r]) translate([-6.6, -3, 3]) cube([10, 6, 3.0]);
  607. }
  608. }
  609. module screw_hole_y(x, y, z, l=7.5) {
  610. translate([x, y, z]) rotate([-90, 90, 0]) {
  611. cylinder(r = 1.6, h = l*2, $fn=32, center=true);
  612. translate([-3.3, -3, 3]) cube([10, 6, 3.0]);
  613. }
  614. }
  615. module screw_hole_carriage() {
  616. rotate([90, 0, 0]) {
  617. cylinder( r = 1.6, h = 8.1, $fn=32);
  618. translate([0, 0, 6])cylinder( d = 6.6, h = 3, $fn=6);
  619. translate([0, 0, 9.6])cube( [8,6,3], $fn=32, center=true);
  620. }
  621. }
  622. module screw_holes_main() {
  623. translate([width/2-5.5, -cover_d, height_m/2]) rotate([-90, 0, 0]) {
  624. cylinder(r = 1.6, h = 50, $fn=32);
  625. cylinder(r = 3.2, h = 11, $fn=32, center=true);
  626. }
  627. translate([-width/2+5.5, -cover_d, height_m/2]) rotate([-90, 0, 0]) {
  628. cylinder(r = 1.6, h = 50, $fn=32);
  629. cylinder(r = 3.2, h = 11, $fn=32, center=true);
  630. }
  631. translate([width/2-5.5, depth-4, height_m/2]) rotate([-90, 0, 0]) cylinder( d = 6.6, h = 4.1, $fn=6);
  632. translate([-width/2+5.5, depth-4, height_m/2]) rotate([-90, 0, 0]) cylinder( d = 6.6, h = 4.1, $fn=6);
  633. }
  634. module flex_guide()
  635. {
  636. difference() {
  637. translate([0, -10, height_m+6+31/2]) rotate([-90, 0, 0]) cylinder(d=gear_od+1, h=20, $fn=64);
  638. intersection() {
  639. translate([0, -10, height_m+6+31/2]) rotate([-90, 0, 0]) cylinder(d=gear_od+1, h=20, $fn=64);
  640. translate([0, 0, height_m+6+31/2]) rotate([90, 0, 0]) rotate_extrude($fn=64) {
  641. translate([gear_ed/2 + (gear_od - gear_ed)/2 +0.5, 0, 0])
  642. resize([(gear_od-gear_ed), gear_groove_width]) circle(d = gear_od-gear_ed, $fn=64);
  643. }
  644. }
  645. }
  646. translate([0, 3.5, height_m+6+31/2]) rotate([-90, 0, 0]) cylinder(d1=gear_od+1, d2 = gear_od+2, h=0.55, $fn=64);
  647. translate([0, 4, height_m+6+31/2]) rotate([-90, 0, 0]) cylinder(d=gear_od+2, h=20, $fn=64);
  648. translate([0, -3.5, height_m+6+31/2]) mirror([0,1,0]) rotate([-90, 0, 0]) cylinder(d1=gear_od+1, d2 = gear_od+2, h=0.55, $fn=64);
  649. translate([0, -4, height_m+6+31/2]) mirror([0,1,0]) rotate([-90, 0, 0]) cylinder(d=gear_od+2, h=20, $fn=64);
  650. translate([bearing_od/2 + gear_ed/2 + filament_d,-10, height_m+6+31/2]) {
  651. rotate([-90, 0, 0]) cylinder(d=bearing_od+1, h=20, $fn=64);
  652. translate([0,0,-(bearing_od+1)/2]) cube([(bearing_od+1)/2, 20, (bearing_od+1)/2]);
  653. }
  654. }
  655. module bearing() {
  656. translate([bearing_od/2 + gear_ed/2+filament_d, 0, height_m+6+31/2]) {
  657. difference() {
  658. rotate([-90, 0, 0]) cylinder(d=bearing_od, h=bearing_h, $fn=64, center=true);
  659. rotate([-90, 0, 0]) cylinder(d=bearing_id, h=bearing_h+0.1, $fn=64, center=true);
  660. }
  661. }
  662. }
  663. module ptfe_endmount() {
  664. $fn=32;
  665. difference() {
  666. rounded_cube(22, 26, 12, noback=false);
  667. //translate ([30,0,0]) rotate ([0,0,90])
  668. translate([0,0,3.4]) cube ([22, 13, 5.2]);
  669. translate([11,26-7,0]) cylinder(d=3.2, h=12);
  670. translate([11,26-7,0]) cylinder(d=5.5, h=7.5);
  671. translate([11,26-7,0]) cylinder(d=9.5, h=1.5);
  672. }
  673. }
  674. module fan_5015() {
  675. $fn=64;
  676. difference() {
  677. linear_extrude(15) {
  678. hull(){
  679. translate([0.5, 0]) circle(d=50);
  680. translate([-1, 0])circle(d=50);
  681. }
  682. hull() {
  683. translate([-43/2, 38/2]) circle(d=7);
  684. translate([43/2, -38/2]) circle(d=7);
  685. }
  686. translate([-26, -26]) square([20,26]);
  687. }
  688. difference(){
  689. union() {
  690. translate([-26+16+11,-2,1]) cylinder(d=32, h=15);
  691. translate([0,0,1]) hull(){
  692. translate([0.5, 0]) cylinder(d=48, h=13);
  693. translate([-1, 0]) cylinder(d=48, h=13);
  694. }
  695. translate([-25,-27,1]) cube([18,25,13]);
  696. }
  697. translate([-26+16+11,-2,1]) cylinder(d=24, h=15);
  698. }
  699. translate([-43/2, 38/2, -1]) cylinder(d=4.4, h=17);
  700. translate([43/2, -38/2, -1]) cylinder(d=4.4, h=17);
  701. }
  702. }
  703. module duct_5015() {
  704. op_l = 14;
  705. op_h = 4;
  706. difference() {
  707. union() {
  708. translate([-25,-26,1]) cube([18,3,13]);
  709. translate([-25.5,-27,0.5]) cube([19,1,14]);
  710. hull() {
  711. translate([-25.5,-27,0.5]) cube([19,0.1,14]);
  712. translate([-23,-34.5,-7]) rotate ([50,0,0]) cube([14,0.1,5]);
  713. }
  714. }
  715. union() {
  716. translate([-24,-27,2]) cube([16,4,11]);
  717. hull() {
  718. translate([-24,-27,2]) cube([16,0.1,11]);
  719. translate([-22,-36,-7]) rotate ([50,0,0]) cube([12,0.1,3]);
  720. }
  721. }
  722. }
  723. }
  724. module motor_mount() {
  725. linear_extrude (height = 5)
  726. difference() {
  727. translate([-21, -21]) square([42, 42]);
  728. circle(r = 11);
  729. translate([31/2, 31/2]) circle(r=1.6, $fn=32);
  730. translate([31/2, -31/2]) circle(r=1.6, $fn=32);
  731. translate([-31/2, 31/2]) circle(r=1.6, $fn=32);
  732. translate([-31/2, -31/2]) circle(r=1.6, $fn=32);
  733. }
  734. }