Move everything to box_frame/
[clinton/prusa3.git] / box_frame / y-drivetrain.scad
CommitLineData
2159eed1
VAH
1// PRUSA iteration3
2// Y drivetrain (idler and stepper holders)
7e896b17 3// GNU GPL v3
2159eed1
VAH
4// Josef Průša <josefprusa@me.com>
5// Václav 'ax' Hůla <axtheb@gmail.com>
7e896b17
VAH
6// http://www.reprap.org/wiki/Prusa_Mendel
7// http://github.com/prusajr/PrusaMendel
8
7e896b17
VAH
9include <configuration.scad>
10
11module motorholder(thickness=10){
12 difference(){
13 union(){
14 // Motor holding part
3ade0448 15 translate([29,-21+50,0])
7e896b17 16 {
4bf15d1b 17 //#cube([42,42,2], center=true);
7e896b17
VAH
18 difference(){
19 union(){
4bf15d1b 20 translate([-21+4.5,0,5]) cube([9,31,thickness], center=true);
f35bb1ce
KY
21 nema17([0,1,1,0], thickness=thickness, shadow=false);
22 mirror([0,0,1])translate([0,0,-10])nema17([0,1,1,0], thickness=thickness, shadow=7);
7e896b17 23 // Parts joining part
4bf15d1b 24 translate([-29,-21,0]) cube([14,30,thickness]);
7e896b17
VAH
25 }
26 // Motor mounting holes
6acc0330 27 translate([0,0,thickness]) mirror([0,0,1]) nema17([0,1,1,0], thickness=thickness, holes=true);
7e896b17
VAH
28 }
29 }
30
31 // Front holding part
3ade0448 32 translate([0,10,0]) cylinder(h = thickness, r=8);
4bf15d1b 33 translate([0,20,5]) cube([16,20,thickness], center=true);
3ade0448 34 translate([0,30,0]) cylinder(h = thickness, r=8);
7e896b17 35 }
3ade0448
VAH
36 translate([0,10,-1]) cylinder(h = 12, r=4.5);
37 translate([0,30,-1]) cylinder(h = 12, r=4.5);
7e896b17
VAH
38 }
39}
40
41
42module idlermount(support=false){
43 difference(){
44 union(){
762d2003
JG
45 //translate([8,8,0]) cylinder(h = 19, r=8);
46 //translate([8,33,0]) cylinder(h = 19, r=8);
40b3ea68 47 translate([0,0,0]) cube_fillet([16,41,10+idler_width], vertical = [0,0,0,0], top = [3,0,3,0], bottom = [3,0,3,0]);
7e896b17 48 }
3ade0448
VAH
49 translate([8,8,-1]) cylinder(h = 120, r=idler_size_inner_r);
50 translate([8,33,-1]) cylinder(h = 25, r=4.5);
7e896b17 51
3ade0448 52 translate([8,8,4]) {
762d2003
JG
53 %translate([0,0,1]) cylinder(h = idler_width, r=(idler_size/2)+2*single_wall_width);
54 cylinder(h = idler_width+2, r=(idler_size/2)+8);
6acc0330 55 }
7e896b17
VAH
56 }
57 if (support) {
58 translate([0,-2,15]) cube([16,16,0.4]);
59 translate([0,-2,0]) cube([16,1.3,15]);
60 }
61
62}
63
42e0b559 64motorholder();
ce74aa02 65translate([25,0,16]) rotate([0,90,0]) idlermount();
7337be14 66