// http://www.reprap.org/wiki/Prusa_Mendel
// http://github.com/prusajr/PrusaMendel
-// PLEASE SELECT ONE OF THE CONFIGURATIONS BELOW
-// BY UN-COMMENTING IT
-
-// Uncomment for metric settings
-// METRIC METRIC METRIC METRIC METRIC METRIC METRIC METRIC
-
include <inc/metric.scad>;
+include <inc/conf_bushing.scad>;
// Custom settings here, tailor to your supplies and print settings
+layer_height = 0.3;
+width_over_thickness = 2.2;
+
// Select your belt type ******************************************************
//T2.5
belt_tooth_distance = 2.5;
-belt_tooth_ratio = 0.5;
+belt_tooth_ratio = 0.75;
//T5 (strongly discouraged)
//belt_tooth_distance = 5;
//belt_tooth_distance = 2.032;
//belt_tooth_ratio = 0.64;
-//GT2
+//GT2 there is bunch of GT2 belts with different tooth-to-tooth distance
+//adjust to your needs
//belt_tooth_distance = 2;
//belt_tooth_ratio = 0.5;
+// For T type belts you will probably want 0.8mm or so.
+belt_thickness = 1.75;
+
// Choose bearing/bushing configuration ***************************************
+// conf_b_* are in inc/conf_bushing.scad
+
+bushing_xy = conf_b_lm8uu;
+bushing_z = conf_b_lm8uu;
+// for longer bearings use one shorter in x-carriage to make place for belt attachment
+// by default use same as xy
+bushing_carriage = bushing_xy;
-//Choose from:
+// Select idler bearing size **************************************************
+// [outer_diameter, width, inner_diameter, uses_guide]
+// 608 [standard skate bearings] with bearing guide
+bearing_608 = [22, 7, 8, 1];
+//608 bearings with fender washers. Not good at all, the belt brushes against the carriage
+bearing_608_washers = [22, 10, 8, 0];
+// one 625 with guides
+bearing_625 = [16, 5, 5, 1];
+// two 625 - for use without bearing guides.
+bearing_625_double = [16, 10, 5, 0];
-// 0 = Z as lm[e]8uu, X and Y bushings
-// 1 = all bushings
-// 2 = all bearings [default. Do not change unless you really know what you are doing]
-// DO NOT OFFER 0 or 1 VARIANTS FOR SALE. We really mean that. In the long run it hurts everyone.
+// those two here are really good:
+bearing_624_double = [13, 10, 4, 0];
+// this one has roughly same diameter as pulley, makes belt parallel so its prettier
+bearing_623_double = [10, 8, 3, 0];
-bearing_choice = 2;
+idler_bearing = bearing_624_double;
-// Bushing version
-// 0 = square igus housings. By igus we mean JFM-0810-10 or GFM-0810-10
-// 1 = round igus (works better if printed precisely)
-// 2 = bronze self-aligning bushings
-bushing_type = 0;
+//Select carriage lenght
+// 30 for single carriage extruder (two holes with centers 30mm apart)
+// 50 for wade or single with fan (three holes, 30-20)
+// 80 for full length carriage (four holes, 30-20-30)
-//Bearing version
-// 0 = default lm8uu
-// 1 = lme8uu
-bearing_type = 0;
+carriage_l_base = 50;
-// Select idler bearing size **************************************************
+// Fillets ********************************************************************
+// fillets are rounded corners of boxes. The right engineering term is probably radius
+// but cad software calls it fillet.
+// mostly cosmetic, except z axis.
+// 0 = no fillets
+// 1 = fillet
+// 2 = chamfer (cut the edges at 45deg. angle)
+// Please do put only parts with fillets on sale, other options are not really tested
+
+use_fillets = 1;
+
+//set to 0 for single plate (affects z axis and screws that attach RP parts to frame)
+i_am_box = 1;
+
+//if you do your own plate and can move bottom Z screws 5mm up set this to 0 to
+//get stronger motor mount. Only for i_am_box = 0
+i_want_to_use_single_plate_dxf_and_make_my_z_weaker = 1;
-// 0 = 608 [standard skate bearings]
-// 1 = 624 [roughly same diameter as pulley, makes belt parallel so its prettier]
-idler_bearing = 0;
+// Radius of long threaded rod on Y frame
-// Thickness of the XZ plate board
+// Affects y-axis-corner (both box and single plate)
+// and y-axis-bracket (box only)
+
+//Use 5.4 for M10 or 4.4 for M8
+y_threaded_rod_long_r = 5.4;
+
+
+// Thickness of the boards that make the box frame.
+
+// in y-axis-corner it governs the height of the corners by adjusting the
+// distance between ground and M10 threaded rod. (both box and single plate)
+
+// For box model, the parts that hold Z smooth rod have one hole from front
+// and one from side, and this setting makes sure that the screw from side
+// is in the center of the plank.
+
+// Use 12 for single plate
+// or 20 if you want to use the Y lm8uu holders
+// (extras/bearing-holder-single-plate-y)
board_thickness = 12;
-//Layer height * width over thickness. Used for idler sleeve
-single_wall_width = 0.3*2.2;
+// segments of small holes. some poeple claim that a low value makes them easier to print.
+small_hole_segments=7;
// END of custom settings
// You are not supposed to change this
board_to_xz_distance = 26;
xaxis_rod_distance = 45;
-carriage_l = 74;
-carriage_hole_to_side = 5;
-carriage_hole_height = 4;
//calculated from settings
+single_wall_width = width_over_thickness * layer_height;
-idler_size = (idler_bearing == 0) ? 22 : 13;
-
-//use 4.5 for 608, 2.5 for 624
-idler_size_inner_r = (idler_bearing == 0) ? 4.5 : 2.5;
+idler_width = (idler_bearing[1] > 7 ? idler_bearing[1] : 7) + 2.5 * idler_bearing[3] ;
-idler_width = (idler_bearing == 0) ? 9 : 5;
+//deltas are used to enlarge parts for bigger bearings
+xy_delta = ((bushing_xy[1] <= 7.7) ? 0 : bushing_xy[1] - 7.7) * 0.9;
+z_delta = (bushing_z[1] <= 7.7) ? 0 : bushing_z[1] - 7.7;
// CHANGE ONLY THE STUFF YOU KNOW
// IT WILL REPLACE DEFAULT SETTING
// functions
include <inc/functions.scad>
-
// These constants define the geometry of the complete-printer.scad
//x_smooth_rod_length=325;
bed_x_size=225;
bed_y_size=225;
-x_smooth_rod_length=450+board_thickness*2+10; // 492 for 16mm thickness; 484 for 12mm thickness
+x_smooth_rod_length=460+board_thickness*2; // 492 for 16mm thickness; 484 for 12mm thickness
y_smooth_rod_length=470;
-z_smooth_rod_length=405;
-bed_x_size=225;
-bed_y_size=225;
+z_smooth_rod_length=405;