Grow Y axis corners up when needed
[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
88fc28e9 42module idlermount(){
7e896b17
VAH
43 difference(){
44 union(){
88fc28e9 45 cube_fillet([16,41,10 + idler_width], vertical = [0,0,0,0], top = [3,0,3,0], bottom = [3,0,3,0], center=true);
7e896b17 46 }
88fc28e9
VAH
47 translate([0,12,-1]) cylinder(h = 120, r=idler_bearing[2]/2 + 1, $fn=7, center=true);
48 translate([0,-12,-1]) cylinder(h = 25, r=4.5, center=true);
7e896b17 49
88fc28e9
VAH
50 translate([0,12,0]) {
51 %cylinder(h = idler_width, r=(idler_bearing[0] / 2) + 2 * single_wall_width, center=true);
52 cylinder(h = idler_width + 1, r=(idler_bearing[0] / 2) + 8, center=true);
6acc0330 53 }
7e896b17 54 }
7e896b17
VAH
55}
56
42e0b559 57motorholder();
88fc28e9 58translate([32,20,8]) rotate([0,90,0]) idlermount();
7337be14 59