123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919 |
-
- dual = false; // dual extruder version
- mirrored = 1; // 1 = "right", 0 = "left"
-
- prometheus = false; // E3D v6 otherwise
-
- width = 42.5;
- depth = 30; //filament to x carriage. Good for 40mm long motor
- height = 51;
- height_m = 20; //motor to hotend top. You may need to increase this for prometheus!
- cover_d = 16;
-
- holes_top1 = 35; //geetech, etc. (comment out to disable)
- holes_spacing1 = 30;
-
- holes_top2 = 23; //rework X-carriage
- holes_spacing2 = 23;
- holes_top3 = holes_top2 + 23;
- holes_spacing3 = 23;
-
- filament_d = 1.75;
- gear_od = 12; //outer diameter: mk8 = 9, mk7 = 12
- gear_ed = 10.25; //effective diameter: mk8 = 6.75, mk7 = 10.25
- gear_groove_width = 3.5;
- filament_offset = (gear_ed + filament_d)/2; //mk8 = 4.25, mk7 = 6
- echo(extruder_filament_offset=filament_offset);
-
- //bearing
- //603
- //bearing_od = 9; bearing_id = 3; bearing_h = 3;
- //623
- //bearing_od = 10; bearing_id = 3; bearing_h = 4;
- //624
- bearing_od = 13; bearing_id = 4; bearing_h = 5;
- //625
- //bearing_od = 16; bearing_id = 5; bearing_h = 5;
- //MR104
- //bearing_od = 10; bearing_id = 4; bearing_h = 4;
-
- brass_tube = false;
-
- fillet = 1.5;
- supports = true;
-
-
- include <rounded.scad>
- //use <pen_holder.scad>
-
-
- //assembly();
- //print();
-
- //base(dual);
-
- //translate([0, 0, 10])
- // rotate([0, 180, 0])
- translate([-30, 20, 40])
- xy_fan_duct2();
-
- //mirror ([mirrored, 0, 0])
- // translate([-16, 15, 6])
- // rotate([90, 0, 0])
- // lever_switch();
-
- //translate([0, 0, -21.5])
- // rotate([0, -90, 0])
- // xy_fan_mount();
-
- //translate([0, 0, 13])
- // rotate([0, 90, 0])
- // translate([-34.5, 28.5, 34])
- // xy_fan_duct();
-
- //translate([0, 0, 55])
- // xy_fan_outlet();
-
- module switch_model() {
- $fn = 15;
-
- difference() {
- union() {
- cube([12.8, 5.8, 6.2]);
-
- translate([-0.5, (5.8 - 4) / 2, 6.2 + 2.5])
- rotate([0, 11, 0])
- cube([13.5, 4.0, 0.3]);
-
- translate([0.9, 5.8 / 2, -4.0])
- cylinder(d = 0.8, h = 4.0);
- translate([12.8 - 0.9, 5.8 / 2, -4.0])
- cylinder(d = 0.8, h = 4.0);
- translate([12.8 / 2, 5.8 / 2, -4.0])
- cylinder(d = 0.8, h = 4.0);
- }
-
- translate([3.1, 5.9, 1.0])
- rotate([90, 0, 0])
- cylinder(d = 2.0, 6.0);
- translate([3.1 + 6.5, 5.9, 1.0])
- rotate([90, 0, 0])
- cylinder(d = 2.0, 6.0);
- }
- }
-
- module lever_switch() {
- $fn = 20;
-
- translate([-6, 0, -62.4])
- lever();
-
- //%translate([-9 + 0.5, 3, 0])
- // rotate([180, -90, 0])
- // switch_model();
-
- difference() {
- cylinder(d = 9.0, h = 13.0);
-
- translate([0, 0, -0.1])
- cylinder(d1 = 5.1, d2 = 2.5, h = 13.2);
-
- translate([-5.5, -15, 0])
- cube([5, 30, 13.1]);
-
- translate([-9 + 0.5, 3, 0])
- rotate([180, -90, 0])
- switch_model();
- }
-
- difference() {
- union() {
- translate([-11, 3.0, 0])
- cube([11, 1.5 + 1.5, 13]);
- translate([-11, -6.0, -3])
- cube([11, 1.5 + 1.5, 13 + 3]);
- }
-
- for (off = [-1 : 0.1 : 1]) {
- translate([-7.5 + off, 10, 3.1])
- rotate([90, 0, 0])
- cylinder(d = 2.5, 20.0);
- translate([-7.5 + off, 10, 9.6])
- rotate([90, 0, 0])
- cylinder(d = 2.5, 20.0);
- }
- }
- }
-
- module xy_fan_outlet_single() {
- $fn = 15;
- translate([4.5, 0, -51])
- difference() {
- rotate([0, -90, 0])
- cylinder(d = 5, h = 50);
-
- translate([2, 0, 0])
- rotate([0, -90, 0])
- cylinder(d = 3, h = 50);
-
- for (i = [5 : 2 : 48]) {
- if ((i <= 15) || (i >= 35))
- #translate([-i, 14, -3.5])
- rotate([77, 0, 0])
- cylinder(d = 1.0, h = 14.0);
- }
- }
- }
-
- module xy_fan_outlet() {
- $fn = 15;
- // duct plug-in
- difference() {
- hull() {
- translate([18.5, -3.5, -49])
- cube([1, 7, 7]);
- translate([13.5, -5, -50.5])
- cube([1, 10, 10]);
- }
- hull() {
- translate([18.5, -2.5, -48])
- cube([1.1, 5, 5]);
- translate([13.4, -4, -49.5])
- cube([1.1, 8, 8]);
- }
- }
-
- difference() {
- translate([13.5, -4, -49.5])
- cube([1, 8, 8]);
- translate([12.4, -1.5, -47])
- rotate([0, 90, 0])
- cylinder(d = 3, h = 2.2);
- translate([12.4, 1.5, -47])
- rotate([0, 90, 0])
- cylinder(d = 3, h = 2.2);
- }
-
- // adaptors to arms
- difference() {
- union() {
- hull() {
- translate([12.5, -1.5, -47])
- rotate([0, 90, 0])
- cylinder(d = 5, h = 1);
- translate([4.5, -15, -51])
- rotate([0, 90, 0])
- cylinder(d = 5, h = 1);
- }
- hull() {
- translate([12.5, 1.5, -47])
- rotate([0, 90, 0])
- cylinder(d = 5, h = 1);
- translate([4.5, 15, -51])
- rotate([0, 90, 0])
- cylinder(d = 5, h = 1);
- }
- }
- hull() {
- translate([12.5, -1.5, -47])
- rotate([0, 90, 0])
- cylinder(d = 3, h = 1);
- translate([4.5, -15, -51])
- rotate([0, 90, 0])
- cylinder(d = 3, h = 1);
- }
- hull() {
- translate([12.5, 1.5, -47])
- rotate([0, 90, 0])
- cylinder(d = 3, h = 1);
- translate([4.5, 15, -51])
- rotate([0, 90, 0])
- cylinder(d = 3, h = 1);
- }
- }
-
- // back arm
- translate([0, -15, 0])
- xy_fan_outlet_single();
-
- // front arm
- translate([0, 15, 0])
- scale([1, -1, 1])
- xy_fan_outlet_single();
- }
-
-
- module xy_fan_duct2_insert(off=0) {
- translate([-25 - (off / 2), -26 - (off / 2), 1 + (off / 2)])
- cube([13 + off - 0.5, 18 + off - 1, 3 - off]);
-
- if (off >= 0) {
- translate([-25.5, -27, 0.5])
- cube([14, 19, 1]);
- }
- }
-
- module xy_fan_duct2_hull(off=0) {
- hull() {
- translate([-40 + (off / 10), -1 - off / 2, -18.2 - (off / 5) + 1])
- rotate([0, -3, 0])
- cube([2 - (off / 10), 12 + off, 4 + off]);
-
- /*
- if (off < 0) {
- %translate([-40 + (off / 10), -1 - off / 2, -18.2 - (off / 5) + 1])
- rotate([0, -3, 0])
- translate([-60, 0, 0])
- cube([2 - (off / 10) + 60, 12 + off, 4 + off]);
- }
- */
-
- translate([-25.5 - (off / 2),-27 - (off / 2), -0.5])
- cube([14 + off, 19 + off, 1 - (off / 100)]);
- }
- }
-
- module xy_fan_duct2() {
- $fn = 15;
- translate([54.5, -2.5, -34.5]) {
- // visualize air stream
- //%translate([-120, 0, -21 + 0.5])
- // rotate([0, -2, 0])
- // cube([80, 10, 2]);
-
- difference() {
- union() {
- xy_fan_duct2_insert(0);
- xy_fan_duct2_hull(0);
- }
-
- xy_fan_duct2_insert(-2);
- xy_fan_duct2_hull(-3);
- }
- }
- }
-
- // custom fan duct
- module xy_fan_duct() {
- $fn = 15;
- translate([34.5, -28.5, -34])
- difference() {
- union() {
- // fan insert
- hull() {
- translate([0.5, 1.5, 3])
- cube([12, 15, 1]);
- cube([13, 18, 1]);
- }
-
- // air "path"
- hull() {
- translate([0, 0, -1])
- cube([13, 18, 1]);
- translate([0, 7, -10])
- rotate([-45, 0, 0])
- cube([13, 1, 13]);
- translate([0, 20, -14])
- cube([13, 1, 13]);
- }
- hull() {
- translate([0, 20, -14])
- cube([13, 1, 13]);
- translate([-5, 22, -14])
- cube([1, 13, 13]);
- translate([-18, 22, -18])
- cube([1, 13, 13]);
- }
- }
-
- // cutout for fan insert
- translate([2, 2.5, -1])
- cube([9, 13, 6]);
-
- // air "path"
- hull() {
- translate([2, 2, -1])
- cube([9, 14, 1]);
- translate([2, 7, -8])
- rotate([-45, 0, 0])
- cube([9, 1, 9]);
- translate([2, 20, -12])
- cube([9, 1, 9]);
- }
- hull() {
- translate([2, 20, -12])
- cube([9, 1, 9]);
- translate([-5, 24, -12])
- cube([1, 9, 9]);
- translate([-18.1, 24, -16])
- cube([1.1, 9, 9]);
- }
- }
- }
-
- // custom fan mount
- module xy_fan_mount() {
- $fn = 15;
- translate([21.5, -10, 0]) {
- // upper screw base
- difference() {
- translate([0, -8, 0])
- cube([2, 32 + 8, 10]);
- translate([-1, 5, 5])
- rotate([0, 90, 0])
- cylinder(d = 3.2, h = 4);
- translate([-1, 15, 5])
- rotate([0, 90, 0])
- cylinder(d = 3.2, h = 4);
- translate([-1, 25, 5])
- rotate([0, 90, 0])
- cylinder(d = 3.2, h = 4);
- }
-
- // lower screw base
- translate([0, 32, -30])
- difference() {
- cube([2, 8, 40]);
- translate([-1, 4, 4])
- rotate([0, 90, 0])
- cylinder(d = 3.2, h = 4);
- translate([-1, 4, 24])
- rotate([0, 90, 0])
- cylinder(d = 3.2, h = 4);
- }
-
- // lower fan mount
- translate([0, 32 - 8, -30])
- difference() {
- union() {
- cube([2, 8, 10]);
- translate([2, 4, 4])
- rotate([0, 90, 0])
- cylinder(d = 8, h = 5);
- }
- translate([-1, 4, 4])
- rotate([0, 90, 0])
- cylinder(d = 3.2, h = 9);
- }
-
- // left fan mount
- translate([0, -11 - 8, 0])
- difference() {
- union() {
- cube([2, 11, 16]);
- translate([2, 4, 12])
- rotate([0, 90, 0])
- cylinder(d = 8, h = 5);
- }
- translate([-1, 4, 12])
- rotate([0, 90, 0])
- cylinder(d = 3.2, h = 9);
- }
- }
- }
-
- mirror([mirrored, 0, 0]) {
- //translate([0, 31, depth]) rotate([-90, 0, 0]) base(dual);
- //translate([20,0,10]) rotate([-90, 0, 0]) holder();
- //translate([20,0,00]) rotate([-90, 0, 0]) cover();
- }
-
- module print() {
- mirror ([mirrored, 0, 0]) {
- translate([dual ? -20 : 0,31,depth]) rotate([-90, 0, 0]) base(dual);
- translate([50,0,10]) rotate([-90, 0, 0]) top_plate();
- translate([50,0,10]) rotate([-90, 0, 0]) holder();
- translate([100,0,00]) rotate([-90, 0, 0]) cover();
- translate([105,50,height_m+42.5]) rotate([-180, 0, 0]) lever();
- translate([30,65,-23]) rotate([-90, 0, 0]) duct_5015();
-
- }
- }
-
- module assembly() {
- color("blue") xy_fan_mount();
- color("cyan") xy_fan_duct2();
- //color("purple") xy_fan_outlet();
-
- %translate([-248.7, -569.5, -31])
- import("sensor_mount_19mm_v3.stl");
-
- %translate([21.5, -10, 0])
- translate([2 + 5, 14.5 - 8, -7])
- rotate([90, 0, 90])
- fan_5015();
-
- mirror ([mirrored, 0, 0]) {
- assembly_top();
- if (dual)
- {
- translate([width/2, 0, 0]) color("green") base(dual);
- translate([width, 0, 0]) mirror([1, 0, 0]) assembly_top();
- }
- else
- {
- color("green") base(dual);
- }
-
- //translate([100,0,0]) ptfe_mount();
-
- }
-
- //translate([filament_offset, -cover_d, 0]) pen_holder_assembly(10);
-
- /*
- translate([-width * 3 / 2, -43/2+5, -38/2+5]) rotate([-90,180,90]) {
- color("gray", 0.5) render() fan_5015();
- duct_5015();
- }
- */
-
- 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");
- //translate([width/2+7.2,depth,-49]) color("gray",0.4) rotate([270,180,0]) import("PI3B-B03-carriage.STL");
- //translate([26.5,depth,19]) rotate([270,180,0]) color("gray",0.5) import("X-axis-part_3_lm8uu_v1_1.stl");
- //translate ([-10, -10, -55.5 ]) color("white",0.25) cube([width+20,depth+30,1]);
-
-
- }
-
-
-
- module assembly_top() {
- color("yellow") holder();
- color("yellow") top_plate();
- color("orange") cover();
- //color("red") lever();
-
- //color("red")
- translate([6, 0, 62.4])
- lever_switch();
-
- color("silver", 0.5) bearing();
- color("blue", 0.25) translate([filament_offset,0, 0]) cylinder(d=filament_d, h=70, $fn=64); //filament
-
- if (prometheus)
- {
- translate([filament_offset+90, -90, -31]) rotate([0,0,90]) color("gray", 0.75) import("Aluminium_Heat_Sink_V1.1__5mm_.stl");
- translate([filament_offset, 0, -31]) color("gray", 0.5) rotate([180,0,0]) cylinder(d=5, h=19);
- }
- else
- translate([filament_offset, 0, -13.5]) rotate([90,0,90]) color("gray", 0.75) import("E3D_V6_1.75mm_Universal_HotEnd_Mockup.stl");
-
-
-
-
- translate([0,50,height_m+21.5]) rotate([90,0,0]) color("gray", 0.5) import("Nema17_40h.stl");
- translate([0,9.5,height_m+21.5]) rotate([90,0,0]) color("silver", 0.5) import("mk8gear.stl");
- }
-
-
-
-
- module base(dual = false) {
- base_w = dual ? width*2 : width;
- xadd = dual ? width/2 : 0;
- difference()
- {
- union(){
- translate([-base_w/2, 10, 0]) rounded_cube(base_w, depth-10, height_m, 0, fillet, 0);
- translate([-base_w/2, depth - 8, height_m-height]) rounded_cube(base_w, 8, height,fillet,fillet,fillet);
-
- translate([-xadd, 10, 14]) cube([width-24, 8, 5], center=true);
- if (dual)
- translate ([xadd, 10, 14]) cube([width-24, 8, 5], center=true);
- }
-
- if (holes_top1!=undef) {
- translate([-holes_spacing1/2, depth+0.1, height_m-holes_top1]) screw_hole_carriage();
- translate([ holes_spacing1/2, depth+0.1, height_m-holes_top1]) screw_hole_carriage();
- }
- if (holes_top2!=undef) {
- translate([-holes_spacing2/2, depth+0.1, height_m-holes_top2]) screw_hole_carriage();
- translate([ holes_spacing2/2, depth+0.1, height_m-holes_top2]) screw_hole_carriage();
- }
- if (holes_top2!=undef && holes_top3!=undef) {
- translate([-holes_spacing3/2, depth+0.1, height_m-holes_top3]) screw_hole_carriage();
- translate([ holes_spacing3/2, depth+0.1, height_m-holes_top3]) screw_hole_carriage();
- }
-
-
- translate ([-xadd, 0, 0]) screw_holes_main();
- if (dual)
- translate ([xadd, 0, 0]) screw_holes_main();
- //aux mount holes
- screw_hole_x(15, 5, l=10, w = base_w);
- screw_hole_x(depth - 4, -26, r=-90, l=7.5, w = base_w);
- screw_hole_x(depth - 4, -6, r=-90, l=8, w = base_w);
-
- }
- }
-
-
- module holder() {
- difference()
- {
- union(){
- translate([-width/2, 0, 0]) rounded_cube(width, 10, height_m, 0, fillet, 0);
- translate([-width/2, -6, height_m]) rounded_cube(width, 16, 11, fillet,fillet,fillet);
- translate([-width/2, -6, height_m-5]) rounded_cube(width, 16, 10, 0,0,fillet);
-
- translate([filament_offset-5,0, height_m+10]) cube ([10, 7.5, 9]); //tip for flex filament
-
- translate([-12,0, height_m+10.9]) cylinder(d2 = 5, d1=8, h=2.1, $fn=64); //spring
- }
- translate([-width/2-0.15, -15, 0.1]) rounded_cube(width+0.3, 15, height_m, fillet,fillet,fillet);
- translate([0, 10, 14]) cube([width-23.8, 10, 5.2], center=true);
- translate([0, 9.6, 14]) cube([width-23.0, 0.4, 6], center=true);
-
- translate([0,10.1,height_m+21.5]) rotate([90,0,0]) cylinder(d=23, h=2.6, $fn=64);
-
- translate([-12,0, height_m+11]) cylinder(r = 1.5, h=20, $fn=64, center=true); //spring
-
- //hotend mount
- translate([filament_offset,0, 0]) {
- hotend_mount();
- translate([-5.1,-10,20]) cube([10.2, 10, 20]);
- }
-
- //motor screws
- translate([-31/2, -6, height_m+6]) rotate([-90, 0, 0]) {
- cylinder(r = 1.6, h = 25, $fn=32);
- cylinder(r = 3.1, h = 6, $fn=32, center=true);
- }
- translate([ 31/2, -6, height_m+6]) rotate([-90, 0, 0]) {
- cylinder(r = 1.6, h = 25, $fn=32);
- cylinder(r = 3.1, h = 6, $fn=32, center=true);
- }
-
-
- screw_holes_main();
-
- flex_guide();
-
- //5015S fan mounts
- screw_hole_x(5, 5);
-
- }
-
-
- //tip supports
- if (supports)
- for (xx =[-5.2, -2.5, 0, 2.5, 4.7])
- translate([filament_offset+xx, 7.6, height_m+11.4]) cube ([0.55, 2.4, 8]);
-
- }
-
-
-
- module top_plate() {
- difference() {
-
- hull() {
- translate([-14.5, 6, height_m+39.5]) rotate([-90, 0, 0]) cylinder(r=3, h=4, $fn=32);
- translate([-18, 6, height_m+36]) rotate([-90, 0, 0]) cylinder(r=3, h=4, $fn=32);
- translate([-18, 6, height_m+29]) rotate([-90, 0, 0]) cylinder(r=3, h=4, $fn=32);
- translate([ 31/2, 6, height_m+37]) rotate([-90, 0, 0]) cylinder(r = 5.5, h=4, $fn=32);
- translate([18, 6, height_m+29]) rotate([-90, 0, 0]) cylinder(r=3, h=4, $fn=32);
- }
-
-
- translate([0,10.1,height_m+21.5]) rotate([90,0,0]) cylinder(d=24, h=5, $fn=64);
-
- //mount holes
- translate([-31/2, 5.9, height_m+37]) rotate([-90, 0, 0]) {
- cylinder(r = 1.6, h = 5, $fn=32);
- cylinder(r = 3.5, h = 2, $fn=32);
- }
- translate([ 31/2, 5.9, height_m+37]) rotate([-90, 0, 0]) {
- hd = brass_tube ? 4.2 : 3;
- cylinder(d = hd, h = 5, $fn=32);
- }
-
-
- }
-
-
- }
-
-
-
- module lever () {
- bearing_x = filament_offset + filament_d/2+bearing_od/2;
- lever_h = 12;
-
- translate([0, 0, height_m]) difference() {
- union() {
- //hull() {
- #translate([-8, -(lever_h/2), 32.5]) rounded_cube(38-14+fillet, lever_h, 10, noback = true);
- translate([-13, -(lever_h/2), 39.5]) rotate([-90, 0, 0]) rounded_cylinder(3, lever_h-1, fillet, true, true);
- translate([-13, -(lever_h/2), 35.5]) rotate([-90, 0, 0]) rounded_cylinder(3, lever_h-1, fillet, true, true);
- //}
-
- //hull() {
- translate([-13, -(lever_h/2), 39.5]) rotate([-90, 0, 0]) rounded_cylinder(3, lever_h-1, fillet, true, true);
- translate([-13, -(lever_h/2), 35.5]) rotate([-90, 0, 0]) rounded_cylinder(3, lever_h-1, fillet, true, true);
- translate([-18.5, -(lever_h/2), 35.5]) rotate([-90, 0, 0]) rounded_cylinder(3, lever_h-1, fillet, true, true);
- translate([-25, -(lever_h/2), 39.5]) rotate([-90, 0, 0]) rounded_cylinder(3, lever_h-1, fillet, true, true);
- //}
- //hull()
- {
- translate([bearing_x-bearing_od/2+1, -(lever_h/2), 21.5])
- rounded_cube(bearing_od/2, lever_h, 15);
- translate([ 31/2, -(lever_h/2), 37]) rotate([-90, 0, 0])
-
- rounded_cylinder(r = 5.5, h = lever_h, rrnd=fillet, $fn=64);
-
- translate([bearing_x, 0, 21.5]) rotate([-90, 0, 0])
- rounded_cylinder((bearing_od-2)/2, lever_h, center=true);
-
- if (bearing_od <= 16)
- translate([min((bearing_x+2),20-(bearing_od-2)/2), 0, 21.5]) rotate([-90, 0, 0])
- rounded_cylinder((bearing_od-2)/2, lever_h, center=true);
- }
-
- //translate([-12,0, 30.5]) cylinder(d1 = 5, d2=8, h=2.1, $fn=64); //spring tip
-
- translate([filament_offset,0, 30]) cylinder(d1 = 6, d2=10, h=3, $fn=64); //filament tip
- }
-
- translate([filament_offset,0, 42.5-3]) cylinder(d1 = 4, d2=5, h=3, $fn=64);
-
- //mounting hole
- translate([ 31/2, -(lever_h/2), 37]) rotate([-90, 0, 0]) {
- hd = brass_tube ? 4.2 : 3;
- cylinder(d=hd, h = 20, $fn=32); //change to r=1.5 if no brass pipe
- cylinder(d=8, h = 7, $fn=32, center=true);
- }
-
- translate([bearing_x, 0, 21.5]) rotate([-90, 0, 0]){
- difference() {
- cylinder(d=bearing_od+2, h=bearing_h+0.5, $fn=64, center=true);
- difference() {
- cylinder(d=bearing_id+(bearing_od-bearing_id)/3, h=bearing_h+0.5, $fn=64, center=true);
- cylinder(d=bearing_od, h=bearing_h+0.1, $fn=64, center=true);
- }
- }
- cylinder(d=bearing_id*0.95, h=20, $fn=64, center=true);
- }
-
-
- //translate([filament_offset, -(bearing_h)/2, 0]) cube([20, bearing_h+0.1, 21.5]);
-
- // filament hole
- translate([filament_offset,0, 25]) cylinder(d=4.2, h=20, $fn=64);
-
- // spring screw
- translate([-12,0, 32.5]) {
- cylinder(r = 1.6, h=30, $fn=64, center=true);
- translate([-3, -3.3, 3]) cube([6, 10, 3.0]);
- }
-
-
-
- }
- }
-
-
-
-
- module cover() {
- difference() {
- union() {
-
- translate([-width/2, -cover_d, 0]) rounded_cube(width, cover_d, height_m, fillet,fillet,fillet);
- translate([filament_offset-5,-6, height_m-1]) cube ([10, 6, 20]);
- }
- translate([filament_offset,0,0]) hotend_mount();
- screw_hole_x(-5, 5);
-
- screw_holes_main();
-
- flex_guide();
-
- //front fan mounts
- screw_hole_y(filament_offset+5, -cover_d, 5);
- screw_hole_y(filament_offset-5, -cover_d, 5);
- screw_hole_y(filament_offset-15, -cover_d, 5);
- }
-
-
- }
-
-
-
- module hotend_mount() {
- cylinder(d=4.2, h=46, $fn=64);
- cylinder(d=12.2, h=8, $fn=64);
- translate([0,0,8 - 4.1]) cylinder(d=17, h= prometheus ? 5 : 4.1, $fn=64);
- translate([0,0,8]) cylinder(d=9, h=2, $fn=64);
- }
-
-
- module screw_hole_x(y, z, r=0, l=8, w=width) {
- translate([-w/2, y, z]) rotate([0, 90, 0]) {
- cylinder(r = 1.6, h = l*2, $fn=32, center=true);
- rotate([0, 0, r]) translate([-3.3, -3, 3]) cube([10, 6, 3.0]);
- }
- translate([w/2, y, z]) rotate([0, -90, 0]) {
- cylinder(r = 1.6, h = l*2, $fn=32, center=true);
- rotate([0, 0, -r]) translate([-6.6, -3, 3]) cube([10, 6, 3.0]);
- }
- }
-
- module screw_hole_y(x, y, z, l=7.5) {
- translate([x, y, z]) rotate([-90, 90, 0]) {
- cylinder(r = 1.6, h = l*2, $fn=32, center=true);
- translate([-3.3, -3, 3]) cube([10, 6, 3.0]);
- }
- }
-
-
- module screw_hole_carriage() {
- rotate([90, 0, 0]) {
- cylinder( r = 1.6, h = 8.1, $fn=32);
- translate([0, 0, 6])cylinder( d = 6.6, h = 3, $fn=6);
- translate([0, 0, 9.6])cube( [8,6,3], $fn=32, center=true);
- }
- }
-
- module screw_holes_main() {
- translate([width/2-5.5, -cover_d, height_m/2]) rotate([-90, 0, 0]) {
- cylinder(r = 1.6, h = 50, $fn=32);
- cylinder(r = 3.2, h = 11, $fn=32, center=true);
- }
- translate([-width/2+5.5, -cover_d, height_m/2]) rotate([-90, 0, 0]) {
- cylinder(r = 1.6, h = 50, $fn=32);
- cylinder(r = 3.2, h = 11, $fn=32, center=true);
- }
- translate([width/2-5.5, depth-4, height_m/2]) rotate([-90, 0, 0]) cylinder( d = 6.6, h = 4.1, $fn=6);
- translate([-width/2+5.5, depth-4, height_m/2]) rotate([-90, 0, 0]) cylinder( d = 6.6, h = 4.1, $fn=6);
- }
-
-
- module flex_guide()
- {
-
- difference() {
- translate([0, -10, height_m+6+31/2]) rotate([-90, 0, 0]) cylinder(d=gear_od+1, h=20, $fn=64);
- intersection() {
- translate([0, -10, height_m+6+31/2]) rotate([-90, 0, 0]) cylinder(d=gear_od+1, h=20, $fn=64);
- translate([0, 0, height_m+6+31/2]) rotate([90, 0, 0]) rotate_extrude($fn=64) {
- translate([gear_ed/2 + (gear_od - gear_ed)/2 +0.5, 0, 0])
- resize([(gear_od-gear_ed), gear_groove_width]) circle(d = gear_od-gear_ed, $fn=64);
- }
- }
- }
-
- 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);
- translate([0, 4, height_m+6+31/2]) rotate([-90, 0, 0]) cylinder(d=gear_od+2, h=20, $fn=64);
-
- 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);
- 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);
-
- translate([bearing_od/2 + gear_ed/2 + filament_d,-10, height_m+6+31/2]) {
- rotate([-90, 0, 0]) cylinder(d=bearing_od+1, h=20, $fn=64);
- translate([0,0,-(bearing_od+1)/2]) cube([(bearing_od+1)/2, 20, (bearing_od+1)/2]);
- }
-
-
- }
-
- module bearing() {
- translate([bearing_od/2 + gear_ed/2+filament_d, 0, height_m+6+31/2]) {
- difference() {
- rotate([-90, 0, 0]) cylinder(d=bearing_od, h=bearing_h, $fn=64, center=true);
- rotate([-90, 0, 0]) cylinder(d=bearing_id, h=bearing_h+0.1, $fn=64, center=true);
- }
- }
- }
-
-
-
-
- module ptfe_endmount() {
- $fn=32;
- difference() {
- rounded_cube(22, 26, 12, noback=false);
-
- //translate ([30,0,0]) rotate ([0,0,90])
-
- translate([0,0,3.4]) cube ([22, 13, 5.2]);
- translate([11,26-7,0]) cylinder(d=3.2, h=12);
- translate([11,26-7,0]) cylinder(d=5.5, h=7.5);
- translate([11,26-7,0]) cylinder(d=9.5, h=1.5);
- }
- }
-
-
- module fan_5015() {
- $fn=64;
- difference() {
- linear_extrude(15) {
- hull(){
- translate([0.5, 0]) circle(d=50);
- translate([-1, 0])circle(d=50);
- }
- hull() {
- translate([-43/2, 38/2]) circle(d=7);
- translate([43/2, -38/2]) circle(d=7);
- }
- translate([-26, -26]) square([20,26]);
- }
-
- difference(){
- union() {
- translate([-26+16+11,-2,1]) cylinder(d=32, h=15);
- translate([0,0,1]) hull(){
- translate([0.5, 0]) cylinder(d=48, h=13);
- translate([-1, 0]) cylinder(d=48, h=13);
- }
- translate([-25,-27,1]) cube([18,25,13]);
- }
- translate([-26+16+11,-2,1]) cylinder(d=24, h=15);
- }
-
- translate([-43/2, 38/2, -1]) cylinder(d=4.4, h=17);
- translate([43/2, -38/2, -1]) cylinder(d=4.4, h=17);
- }
- }
-
- module duct_5015() {
- op_l = 14;
- op_h = 4;
- difference() {
- union() {
- translate([-25,-26,1]) cube([18,3,13]);
- translate([-25.5,-27,0.5]) cube([19,1,14]);
- hull() {
- translate([-25.5,-27,0.5]) cube([19,0.1,14]);
- translate([-23,-34.5,-7]) rotate ([50,0,0]) cube([14,0.1,5]);
- }
- }
- union() {
- translate([-24,-27,2]) cube([16,4,11]);
- hull() {
- translate([-24,-27,2]) cube([16,0.1,11]);
- translate([-22,-36,-7]) rotate ([50,0,0]) cube([12,0.1,3]);
- }
- }
- }
- }
-
-
-
-
-
- module motor_mount() {
- linear_extrude (height = 5)
- difference() {
- translate([-21, -21]) square([42, 42]);
- circle(r = 11);
- translate([31/2, 31/2]) circle(r=1.6, $fn=32);
- translate([31/2, -31/2]) circle(r=1.6, $fn=32);
- translate([-31/2, 31/2]) circle(r=1.6, $fn=32);
- translate([-31/2, -31/2]) circle(r=1.6, $fn=32);
- }
- }
-
-
|