Fix bearing names
[clinton/prusa3.git] / box_frame / configuration.scad.dist
1 // PRUSA iteration3
2 // Configuration file
3 // GNU GPL v3
4 // Josef Průša <josefprusa@me.com>
5 // Václav 'ax' Hůla <axtheb@gmail.com>
6 // http://www.reprap.org/wiki/Prusa_Mendel
7 // http://github.com/prusajr/PrusaMendel
8
9 // PLEASE SELECT ONE OF THE CONFIGURATIONS BELOW
10 // BY UN-COMMENTING IT
11
12 include <inc/metric.scad>;
13 include <inc/conf_bushing.scad>;
14
15 // Custom settings here, tailor to your supplies and print settings
16
17 layer_height = 0.3;
18 width_over_thickness = 2.2;
19
20 // Select your belt type ******************************************************
21
22 //T2.5
23 //belt_tooth_distance = 2.5;
24 //belt_tooth_ratio = 0.5;
25
26 //T5 (strongly discouraged)
27 //belt_tooth_distance = 5;
28 //belt_tooth_ratio = 0.75;
29
30 //HTD3
31 belt_tooth_distance = 3;
32 belt_tooth_ratio = 0.75;
33
34 //MXL
35 //belt_tooth_distance = 2.032;
36 //belt_tooth_ratio = 0.64;
37
38 //GT2 there is bunch of GT2 belts with different tooth-to-tooth distance
39 //adjust to your needs
40 //belt_tooth_distance = 2;
41 //belt_tooth_ratio = 0.5;
42
43 // For T type belts you will probably want 0.8mm or so.
44 belt_thickness = 1.75;
45
46 // Choose bearing/bushing configuration ***************************************
47 // conf_b_* are in inc/conf_bushing.scad
48
49 bushing_xy = conf_b_lm8uu;
50 bushing_z = conf_b_lm8uu;
51 // for longer bearings use one shorter in x-carriage to make place for belt attachment
52 // by default use same as xy
53 bushing_carriage = bushing_xy;
54
55 // Select idler bearing size **************************************************
56 // [outer_diameter, width, inner_diameter, uses_guide]
57 // 608 [standard skate bearings] with bearing guide
58 bearing_608 = [22, 7, 8, 1];
59 //608 bearings with fender washers
60 bearing_608_washers = [22, 10, 8, 0];
61 bearing_625 = [16, 5, 5, 1];
62 // two 625 - for use without bearing guides. My favourite [ax]
63 bearing_625_double = [16, 10, 5, 0];
64 // 624 [roughly same diameter as pulley, makes belt parallel so its prettier]
65 bearing_624_double = [13, 9, 4, 0];
66
67 idler_bearing = bearing_625_double;
68
69 //Select carriage lenght
70 // 30 for single carriage extruder (two holes 30mm apart)
71 // 50 for wade or single with fan (three holes, 30-20)
72 // 80 for full length carriage (four holes, 30-20-30)
73
74 carriage_l_base = 80;
75
76 // Fillets ********************************************************************
77 // mostly cosmetic, except z axis.
78 // 0 = no fillets
79 // 1 = fillet
80
81 use_fillets = 1;
82
83 //set to 0 for single plate (affects z axis)
84 i_am_box = 1;
85
86 //if you do your own plate and can move bottom Z screws 5mm up set this to 0 to
87 //get stronger motor mount. Only for i_am_box = 0
88 i_want_to_use_single_plate_dxf_and_make_my_z_weaker = 1;
89
90 //radius of long threaded rod on Y frame
91 //Use 5.4 for M10 or 4.4 for M8
92 y_threaded_rod_long_r = 5.4;
93
94 // Thickness of the XZ plate board. Leave at 12 for single plate
95 board_thickness = 12;
96
97 // END of custom settings
98
99
100 // You are not supposed to change this
101 board_to_xz_distance = 26;
102 xaxis_rod_distance = 45;
103
104 //calculated from settings
105 single_wall_width = width_over_thickness * layer_height;
106
107 idler_width = (idler_bearing[1] > 7 ? idler_bearing[1] : 7) + 2.5 * idler_bearing[3] ;
108
109 //deltas are used to enlarge parts for bigger bearings
110 xy_delta = ((bushing_xy[1] <= 7.7) ? 0 : bushing_xy[1] - 7.7) * 0.9;
111 z_delta = (bushing_z[1] <= 7.7) ? 0 : bushing_z[1] - 7.7;
112
113 // CHANGE ONLY THE STUFF YOU KNOW
114 // IT WILL REPLACE DEFAULT SETTING
115
116 // RODS
117
118 // threaded_rod_diameter = 0;
119 // threaded_rod_diameter_horizontal = 0;
120 // smooth_bar_diameter = 0;
121 // smooth_bar_diameter_horizontal = 0;
122
123 // Nuts and bolts
124
125 // m8_diameter = 0;
126 // m8_nut_diameter = 0;
127
128 // m4_diameter = 0;
129 // m4_nut_diameter = 0;
130
131 // m3_diameter = 0;
132 // m3_nut_diameter = 0;
133
134 // Bushing holder
135
136 // bushing_core_diameter = smooth_bar_diameter;
137 // bushing_material_thickness = 0;
138
139 ///counted stuff
140 m3_nut_diameter_bigger = ((m3_nut_diameter / 2) / cos (180 / 6))*2;
141
142 // functions
143 include <inc/functions.scad>
144
145 // These constants define the geometry of the complete-printer.scad
146
147 //x_smooth_rod_length=325;
148 //y_smooth_rod_length=405;
149 //z_smooth_rod_length=235;
150 bed_x_size=225;
151 bed_y_size=225;
152
153 x_smooth_rod_length=460+board_thickness*2; // 492 for 16mm thickness; 484 for 12mm thickness
154 y_smooth_rod_length=470;
155 z_smooth_rod_length=405;