Commit | Line | Data |
---|---|---|
2159eed1 | 1 | // PRUSA iteration3 |
692cedb6 VAH |
2 | // Bearing guide |
3 | // GNU GPL v3 | |
2159eed1 VAH |
4 | // Josef Průša <josefprusa@me.com> |
5 | // Václav 'ax' Hůla <axtheb@gmail.com> | |
6 | // Original design by Greg Frost | |
692cedb6 VAH |
7 | // http://www.reprap.org/wiki/Prusa_Mendel |
8 | // http://github.com/prusajr/PrusaMendel | |
9 | ||
10 | ||
11 | /** | |
12 | * Helps to hold belt aligned on the bearing. | |
13 | * @id bearing-guide | |
14 | * @name Bearing guide | |
15 | * @category Printed | |
16 | */ | |
17 | ||
eff6608e | 18 | include <../configuration.scad> |
692cedb6 | 19 | |
88fc28e9 | 20 | //thickness of guiding wall |
28c7ae8b | 21 | thickness=1; |
88fc28e9 VAH |
22 | |
23 | belt_width = 7; | |
24 | height = belt_width + thickness; | |
25 | //height of the guiding wall, from beraring surface | |
690004c7 | 26 | wall_ascent = 4.5; |
88fc28e9 VAH |
27 | //guiding wall extends to sides of bearing too |
28 | wall_descent = 1; | |
692cedb6 | 29 | |
690004c7 | 30 | module bearing_guide_inner() |
692cedb6 | 31 | { |
88fc28e9 VAH |
32 | difference(){ |
33 | cylinder(r=idler_bearing[0] / 2 + single_wall_width * 2, h=height - (belt_width - idler_bearing[1])/2); | |
692cedb6 | 34 | translate([0,0,-1]) |
88fc28e9 | 35 | cylinder(r=idler_bearing[0]/2,h=height+2); |
692cedb6 VAH |
36 | } |
37 | ||
88fc28e9 VAH |
38 | difference(){ |
39 | union() { | |
40 | cylinder(r=idler_bearing[0] / 2 + wall_ascent, h=thickness); | |
41 | cylinder(r=idler_bearing[0] / 2, h=thickness + (belt_width - idler_bearing[1])/2); | |
42 | } | |
692cedb6 | 43 | translate([0,0,-1]) |
88fc28e9 | 44 | cylinder(r=idler_bearing[0]/2-wall_descent,h=thickness+10); |
692cedb6 VAH |
45 | } |
46 | } | |
47 | ||
690004c7 | 48 | module bearing_guide_outer() |
692cedb6 | 49 | { |
88fc28e9 VAH |
50 | difference(){ |
51 | cylinder(r=idler_bearing[0]/2+2*single_wall_width*2+0.2,h=height); | |
692cedb6 | 52 | translate([0,0,-1]) |
88fc28e9 | 53 | cylinder(r=idler_bearing[0]/2+single_wall_width*2+0.2,h=height+2); |
692cedb6 VAH |
54 | } |
55 | ||
88fc28e9 VAH |
56 | difference(){ |
57 | union(){ | |
58 | cylinder(r=idler_bearing[0]/2+wall_ascent,h=thickness); | |
59 | cylinder(r=idler_bearing[0] / 2, h=thickness + (belt_width - idler_bearing[1])/2); | |
60 | } | |
692cedb6 | 61 | translate([0,0,-1]) |
88fc28e9 | 62 | cylinder(r=idler_bearing[0]/2-wall_descent,h=thickness+2); |
692cedb6 VAH |
63 | } |
64 | } | |
65 | ||
88fc28e9 | 66 | if (idler_bearing[3] == 1) { |
88fc28e9 VAH |
67 | |
68 | translate([0,idler_bearing[0]+2*wall_ascent+2,0]){ | |
690004c7 | 69 | bearing_guide_inner(); |
88fc28e9 | 70 | translate([idler_bearing[0]+2*wall_ascent+2,0,0]) |
690004c7 | 71 | bearing_guide_outer(); |
692cedb6 | 72 | |
88fc28e9 VAH |
73 | } |
74 | } else { | |
75 | cube([0.1,0.1,0.1]); | |
76 | echo ("None"); | |
2159eed1 | 77 | } |