|
@@ -9,7 +9,7 @@
|
9
|
9
|
//Implementation of an idea by Prof Braino to inform user that any changes made
|
10
|
10
|
//to this build by the user have been successfully uploaded into firmware.
|
11
|
11
|
#define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
|
12
|
|
-#define STRING_CONFIG_H_AUTHOR "(none, default config)" //Who made the changes.
|
|
12
|
+#define STRING_CONFIG_H_AUTHOR "(jcrocholl, deltabot)" //Who made the changes.
|
13
|
13
|
|
14
|
14
|
// SERIAL_PORT selects which serial port should be used for communication with the host.
|
15
|
15
|
// This allows the connection of wireless adapters (for instance) to non-default port pins.
|
|
@@ -46,10 +46,42 @@
|
46
|
46
|
// Rambo = 301
|
47
|
47
|
|
48
|
48
|
#ifndef MOTHERBOARD
|
49
|
|
-#define MOTHERBOARD 7
|
|
49
|
+#define MOTHERBOARD 33
|
50
|
50
|
#endif
|
51
|
51
|
|
|
52
|
+//===========================================================================
|
|
53
|
+//============================== Delta Settings =============================
|
|
54
|
+//===========================================================================
|
|
55
|
+
|
|
56
|
+// Make delta curves from many straight lines (linear interpolation).
|
|
57
|
+// This is a trade-off between visible corners (not enough segments)
|
|
58
|
+// and processor overload (too many expensive sqrt calls).
|
|
59
|
+#define DELTA_SEGMENTS_PER_SECOND 200
|
|
60
|
+
|
|
61
|
+// Center-to-center distance of the holes in the diagonal push rods.
|
|
62
|
+#define DELTA_DIAGONAL_ROD 250.0 // mm
|
|
63
|
+
|
|
64
|
+// Horizontal offset from middle of printer to smooth rod center.
|
|
65
|
+#define DELTA_SMOOTH_ROD_OFFSET 175.0 // mm
|
52
|
66
|
|
|
67
|
+// Horizontal offset of the universal joints on the end effector.
|
|
68
|
+#define DELTA_EFFECTOR_OFFSET 33.0 // mm
|
|
69
|
+
|
|
70
|
+// Horizontal offset of the universal joints on the carriages.
|
|
71
|
+#define DELTA_CARRIAGE_OFFSET 18.0 // mm
|
|
72
|
+
|
|
73
|
+// Effective horizontal distance bridged by diagonal push rods.
|
|
74
|
+#define DELTA_RADIUS (DELTA_SMOOTH_ROD_OFFSET-DELTA_EFFECTOR_OFFSET-DELTA_CARRIAGE_OFFSET)
|
|
75
|
+
|
|
76
|
+// Effective X/Y positions of the three vertical towers.
|
|
77
|
+#define SIN_60 0.8660254037844386
|
|
78
|
+#define COS_60 0.5
|
|
79
|
+#define DELTA_TOWER1_X -SIN_60*DELTA_RADIUS // front left tower
|
|
80
|
+#define DELTA_TOWER1_Y -COS_60*DELTA_RADIUS
|
|
81
|
+#define DELTA_TOWER2_X SIN_60*DELTA_RADIUS // front right tower
|
|
82
|
+#define DELTA_TOWER2_Y -COS_60*DELTA_RADIUS
|
|
83
|
+#define DELTA_TOWER3_X 0.0 // back middle tower
|
|
84
|
+#define DELTA_TOWER3_Y DELTA_RADIUS
|
53
|
85
|
|
54
|
86
|
//===========================================================================
|
55
|
87
|
//=============================Thermal Settings ============================
|
|
@@ -75,7 +107,7 @@
|
75
|
107
|
// 52 is 200k thermistor - ATC Semitec 204GT-2 (1k pullup)
|
76
|
108
|
// 55 is 100k thermistor - ATC Semitec 104GT-2 (Used in ParCan) (1k pullup)
|
77
|
109
|
|
78
|
|
-#define TEMP_SENSOR_0 -1
|
|
110
|
+#define TEMP_SENSOR_0 1
|
79
|
111
|
#define TEMP_SENSOR_1 0
|
80
|
112
|
#define TEMP_SENSOR_2 0
|
81
|
113
|
#define TEMP_SENSOR_BED 0
|
|
@@ -211,9 +243,9 @@
|
211
|
243
|
#endif
|
212
|
244
|
|
213
|
245
|
// The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.
|
214
|
|
-const bool X_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops.
|
215
|
|
-const bool Y_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops.
|
216
|
|
-const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops.
|
|
246
|
+const bool X_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops.
|
|
247
|
+const bool Y_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops.
|
|
248
|
+const bool Z_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops.
|
217
|
249
|
//#define DISABLE_MAX_ENDSTOPS
|
218
|
250
|
|
219
|
251
|
// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
|
|
@@ -228,27 +260,29 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
|
228
|
260
|
#define DISABLE_Z false
|
229
|
261
|
#define DISABLE_E false // For all extruders
|
230
|
262
|
|
231
|
|
-#define INVERT_X_DIR true // for Mendel set to false, for Orca set to true
|
|
263
|
+#define INVERT_X_DIR false // for Mendel set to false, for Orca set to true
|
232
|
264
|
#define INVERT_Y_DIR false // for Mendel set to true, for Orca set to false
|
233
|
|
-#define INVERT_Z_DIR true // for Mendel set to false, for Orca set to true
|
|
265
|
+#define INVERT_Z_DIR false // for Mendel set to false, for Orca set to true
|
234
|
266
|
#define INVERT_E0_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
|
235
|
|
-#define INVERT_E1_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
|
|
267
|
+#define INVERT_E1_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
|
236
|
268
|
#define INVERT_E2_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
|
237
|
269
|
|
238
|
270
|
// ENDSTOP SETTINGS:
|
239
|
271
|
// Sets direction of endstops when homing; 1=MAX, -1=MIN
|
240
|
|
-#define X_HOME_DIR -1
|
241
|
|
-#define Y_HOME_DIR -1
|
242
|
|
-#define Z_HOME_DIR -1
|
|
272
|
+#define X_HOME_DIR 1
|
|
273
|
+#define Y_HOME_DIR 1
|
|
274
|
+#define Z_HOME_DIR 1
|
|
275
|
+
|
|
276
|
+#define min_software_endstops false //If true, axis won't move to coordinates less than HOME_POS.
|
|
277
|
+#define max_software_endstops false //If true, axis won't move to coordinates greater than the defined lengths below.
|
243
|
278
|
|
244
|
|
-#define min_software_endstops true //If true, axis won't move to coordinates less than HOME_POS.
|
245
|
|
-#define max_software_endstops true //If true, axis won't move to coordinates greater than the defined lengths below.
|
246
|
279
|
// Travel limits after homing
|
247
|
|
-#define X_MAX_POS 205
|
|
280
|
+// For deltabots, the MAX_POS doesn't have to be exact, it will be recalculated from MANUAL_Z_HOME_POS below.
|
|
281
|
+#define X_MAX_POS 620
|
248
|
282
|
#define X_MIN_POS 0
|
249
|
|
-#define Y_MAX_POS 205
|
|
283
|
+#define Y_MAX_POS 620
|
250
|
284
|
#define Y_MIN_POS 0
|
251
|
|
-#define Z_MAX_POS 200
|
|
285
|
+#define Z_MAX_POS 620
|
252
|
286
|
#define Z_MIN_POS 0
|
253
|
287
|
|
254
|
288
|
#define X_MAX_LENGTH (X_MAX_POS - X_MIN_POS)
|
|
@@ -256,31 +290,32 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
|
256
|
290
|
#define Z_MAX_LENGTH (Z_MAX_POS - Z_MIN_POS)
|
257
|
291
|
|
258
|
292
|
// The position of the homing switches
|
259
|
|
-//#define MANUAL_HOME_POSITIONS // If defined, manualy programed locations will be used
|
|
293
|
+#define MANUAL_HOME_POSITIONS // If defined, manualy programed locations will be used
|
260
|
294
|
//#define BED_CENTER_AT_0_0 // If defined the center of the bed is defined as (0,0)
|
261
|
295
|
|
262
|
|
-//Manual homing switch locations:
|
|
296
|
+// Manual homing switch locations:
|
|
297
|
+// For deltabots this means top and center of the cartesian print volume.
|
263
|
298
|
#define MANUAL_X_HOME_POS 0
|
264
|
299
|
#define MANUAL_Y_HOME_POS 0
|
265
|
|
-#define MANUAL_Z_HOME_POS 0
|
|
300
|
+#define MANUAL_Z_HOME_POS 402 // Distance between nozzle and print surface after homing.
|
266
|
301
|
|
267
|
302
|
//// MOVEMENT SETTINGS
|
268
|
303
|
#define NUM_AXIS 4 // The axis order in all axis related arrays is X, Y, Z, E
|
269
|
|
-#define HOMING_FEEDRATE {50*60, 50*60, 4*60, 0} // set the homing speeds (mm/min)
|
|
304
|
+#define HOMING_FEEDRATE {100*60, 100*60, 100*60, 0} // set the homing speeds (mm/min)
|
270
|
305
|
|
271
|
306
|
// default settings
|
272
|
307
|
|
273
|
|
-#define DEFAULT_AXIS_STEPS_PER_UNIT {78.7402,78.7402,200*8/3,760*1.1} // default steps per unit for ultimaker
|
274
|
|
-#define DEFAULT_MAX_FEEDRATE {500, 500, 5, 45} // (mm/sec)
|
275
|
|
-#define DEFAULT_MAX_ACCELERATION {9000,9000,100,10000} // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for skeinforge 40+, for older versions raise them a lot.
|
|
308
|
+#define DEFAULT_AXIS_STEPS_PER_UNIT {40, 40, 40, 100}
|
|
309
|
+#define DEFAULT_MAX_FEEDRATE {300, 300, 300, 300} // (mm/sec)
|
|
310
|
+#define DEFAULT_MAX_ACCELERATION {9000, 9000, 9000, 9000} // X, Y, Z, E maximum start speed for accelerated moves.
|
276
|
311
|
|
277
|
|
-#define DEFAULT_ACCELERATION 3000 // X, Y, Z and E max acceleration in mm/s^2 for printing moves
|
|
312
|
+#define DEFAULT_ACCELERATION 3000 // X, Y, Z and E max acceleration in mm/s^2 for printing moves
|
278
|
313
|
#define DEFAULT_RETRACT_ACCELERATION 3000 // X, Y, Z and E max acceleration in mm/s^2 for r retracts
|
279
|
314
|
|
280
|
315
|
//
|
281
|
|
-#define DEFAULT_XYJERK 20.0 // (mm/sec)
|
282
|
|
-#define DEFAULT_ZJERK 0.4 // (mm/sec)
|
283
|
|
-#define DEFAULT_EJERK 5.0 // (mm/sec)
|
|
316
|
+#define DEFAULT_XYJERK 20.0 // (mm/sec)
|
|
317
|
+#define DEFAULT_ZJERK 20.0 // (mm/sec)
|
|
318
|
+#define DEFAULT_EJERK 20.0 // (mm/sec)
|
284
|
319
|
|
285
|
320
|
//===========================================================================
|
286
|
321
|
//=============================Additional Features===========================
|