Quellcode durchsuchen

Introducing the Kossel Pro Build Configuration

Richard Wackerbarth vor 9 Jahren
Ursprung
Commit
b878bc5620

+ 11
- 11
Marlin/SanityCheck.h Datei anzeigen

@@ -152,18 +152,18 @@
152 152
      * Check if Probe_Offset * Grid Points is greater than Probing Range
153 153
      */
154 154
     #ifdef AUTO_BED_LEVELING_GRID
155
-
156
-      // Make sure probing points are reachable
157
-      #if LEFT_PROBE_BED_POSITION < MIN_PROBE_X
158
-        #error "The given LEFT_PROBE_BED_POSITION can't be reached by the probe."
159
-      #elif RIGHT_PROBE_BED_POSITION > MAX_PROBE_X
160
-        #error "The given RIGHT_PROBE_BED_POSITION can't be reached by the probe."
161
-      #elif FRONT_PROBE_BED_POSITION < MIN_PROBE_Y
162
-        #error "The given FRONT_PROBE_BED_POSITION can't be reached by the probe."
163
-      #elif BACK_PROBE_BED_POSITION > MAX_PROBE_Y
164
-        #error "The given BACK_PROBE_BED_POSITION can't be reached by the probe."
155
+      #ifndef DELTA_PROBABLE_RADIUS
156
+        // Make sure probing points are reachable
157
+        #if LEFT_PROBE_BED_POSITION < MIN_PROBE_X
158
+          #error "The given LEFT_PROBE_BED_POSITION can't be reached by the probe."
159
+        #elif RIGHT_PROBE_BED_POSITION > MAX_PROBE_X
160
+          #error "The given RIGHT_PROBE_BED_POSITION can't be reached by the probe."
161
+        #elif FRONT_PROBE_BED_POSITION < MIN_PROBE_Y
162
+          #error "The given FRONT_PROBE_BED_POSITION can't be reached by the probe."
163
+        #elif BACK_PROBE_BED_POSITION > MAX_PROBE_Y
164
+          #error "The given BACK_PROBE_BED_POSITION can't be reached by the probe."
165
+        #endif
165 166
       #endif
166
-
167 167
       #define PROBE_SIZE_X (X_PROBE_OFFSET_FROM_EXTRUDER * (AUTO_BED_LEVELING_GRID_POINTS-1))
168 168
       #define PROBE_SIZE_Y (Y_PROBE_OFFSET_FROM_EXTRUDER * (AUTO_BED_LEVELING_GRID_POINTS-1))
169 169
       #define PROBE_AREA_WIDTH (RIGHT_PROBE_BED_POSITION - LEFT_PROBE_BED_POSITION)

+ 1083
- 0
Marlin/example_configurations/delta/kossel_pro/Configuration.h
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 660
- 0
Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h Datei anzeigen

@@ -0,0 +1,660 @@
1
+// Example configuration file for OpenBeam Kossel Pro
2
+// tested on 2015-05-19 by @Wackerbarth
3
+// using Arduino 1.6.5 (Mac)
4
+
5
+#ifndef CONFIGURATION_ADV_H
6
+#define CONFIGURATION_ADV_H
7
+
8
+#include "Conditionals.h"
9
+
10
+// @section temperature
11
+
12
+//===========================================================================
13
+//=============================Thermal Settings  ============================
14
+//===========================================================================
15
+
16
+#ifdef BED_LIMIT_SWITCHING
17
+  #define BED_HYSTERESIS 2 //only disable heating if T>target+BED_HYSTERESIS and enable heating if T>target-BED_HYSTERESIS
18
+#endif
19
+#define BED_CHECK_INTERVAL 5000 //ms between checks in bang-bang control
20
+
21
+/**
22
+ * Heating Sanity Check
23
+ *
24
+ * Whenever an M104 or M109 increases the target temperature this will wait for WATCH_TEMP_PERIOD milliseconds,
25
+ * and if the temperature hasn't increased by WATCH_TEMP_INCREASE degrees, the machine is halted, requiring a
26
+ * hard reset. This test restarts with any M104/M109, but only if the current temperature is below the target
27
+ * by at least 2 * WATCH_TEMP_INCREASE degrees celsius.
28
+ */
29
+#ifdef THERMAL_RUNAWAY_PROTECTION_HOTENDS
30
+  #define THERMAL_RUNAWAY_PROTECTION_PERIOD 40        // Seconds
31
+  #define THERMAL_RUNAWAY_PROTECTION_HYSTERESIS 4     // Degrees Celsius
32
+
33
+  /**
34
+   * Whenever an M104 or M109 increases the target temperature the firmware will wait for the
35
+   * WATCH_TEMP_PERIOD to expire, and if the temperature hasn't increased by WATCH_TEMP_INCREASE
36
+   * degrees, the machine is halted, requiring a hard reset. This test restarts with any M104/M109,
37
+   * but only if the current temperature is far enough below the target for a reliable test.
38
+   */
39
+  #define WATCH_TEMP_PERIOD 16                // Seconds
40
+  #define WATCH_TEMP_INCREASE 4               // Degrees Celsius
41
+#endif
42
+
43
+#ifdef THERMAL_RUNAWAY_PROTECTION_BED
44
+  #define THERMAL_RUNAWAY_PROTECTION_BED_PERIOD 20    // Seconds
45
+  #define THERMAL_RUNAWAY_PROTECTION_BED_HYSTERESIS 2 // Degrees Celsius
46
+#endif
47
+
48
+#ifdef PIDTEMP
49
+  // this adds an experimental additional term to the heating power, proportional to the extrusion speed.
50
+  // if Kc is chosen well, the additional required power due to increased melting should be compensated.
51
+  #define PID_ADD_EXTRUSION_RATE
52
+  #ifdef PID_ADD_EXTRUSION_RATE
53
+    #define  DEFAULT_Kc (1) //heating power=Kc*(e_speed)
54
+  #endif
55
+#endif
56
+
57
+
58
+//automatic temperature: The hot end target temperature is calculated by all the buffered lines of gcode.
59
+//The maximum buffered steps/sec of the extruder motor are called "se".
60
+//You enter the autotemp mode by a M109 S<mintemp> B<maxtemp> F<factor>
61
+// the target temperature is set to mintemp+factor*se[steps/sec] and limited by mintemp and maxtemp
62
+// you exit the value by any M109 without F*
63
+// Also, if the temperature is set to a value <mintemp, it is not changed by autotemp.
64
+// on an Ultimaker, some initial testing worked with M109 S215 B260 F1 in the start.gcode
65
+#define AUTOTEMP
66
+#ifdef AUTOTEMP
67
+  #define AUTOTEMP_OLDWEIGHT 0.98
68
+#endif
69
+
70
+//Show Temperature ADC value
71
+//The M105 command return, besides traditional information, the ADC value read from temperature sensors.
72
+//#define SHOW_TEMP_ADC_VALUES
73
+
74
+// @section extruder
75
+
76
+//  extruder run-out prevention.
77
+//if the machine is idle, and the temperature over MINTEMP, every couple of SECONDS some filament is extruded
78
+//#define EXTRUDER_RUNOUT_PREVENT
79
+#define EXTRUDER_RUNOUT_MINTEMP 190
80
+#define EXTRUDER_RUNOUT_SECONDS 30.
81
+#define EXTRUDER_RUNOUT_ESTEPS 14. //mm filament
82
+#define EXTRUDER_RUNOUT_SPEED 1500.  //extrusion speed
83
+#define EXTRUDER_RUNOUT_EXTRUDE 100
84
+
85
+// @section temperature
86
+
87
+//These defines help to calibrate the AD595 sensor in case you get wrong temperature measurements.
88
+//The measured temperature is defined as "actualTemp = (measuredTemp * TEMP_SENSOR_AD595_GAIN) + TEMP_SENSOR_AD595_OFFSET"
89
+#define TEMP_SENSOR_AD595_OFFSET 0.0
90
+#define TEMP_SENSOR_AD595_GAIN   1.0
91
+
92
+//This is for controlling a fan to cool down the stepper drivers
93
+//it will turn on when any driver is enabled
94
+//and turn off after the set amount of seconds from last driver being disabled again
95
+#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable)
96
+#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run
97
+#define CONTROLLERFAN_SPEED 255  // == full speed
98
+
99
+// When first starting the main fan, run it at full speed for the
100
+// given number of milliseconds.  This gets the fan spinning reliably
101
+// before setting a PWM value. (Does not work with software PWM for fan on Sanguinololu)
102
+//#define FAN_KICKSTART_TIME 100
103
+
104
+// @section extruder
105
+
106
+// Extruder cooling fans
107
+// Configure fan pin outputs to automatically turn on/off when the associated
108
+// extruder temperature is above/below EXTRUDER_AUTO_FAN_TEMPERATURE.
109
+// Multiple extruders can be assigned to the same pin in which case
110
+// the fan will turn on when any selected extruder is above the threshold.
111
+#define EXTRUDER_0_AUTO_FAN_PIN -1
112
+#define EXTRUDER_1_AUTO_FAN_PIN -1
113
+#define EXTRUDER_2_AUTO_FAN_PIN -1
114
+#define EXTRUDER_3_AUTO_FAN_PIN -1
115
+#define EXTRUDER_AUTO_FAN_TEMPERATURE 50
116
+#define EXTRUDER_AUTO_FAN_SPEED   255  // == full speed
117
+
118
+
119
+//===========================================================================
120
+//=============================Mechanical Settings===========================
121
+//===========================================================================
122
+
123
+// @section homing
124
+
125
+#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
126
+
127
+// @section extras
128
+
129
+//// AUTOSET LOCATIONS OF LIMIT SWITCHES
130
+//// Added by ZetaPhoenix 09-15-2012
131
+#ifdef MANUAL_HOME_POSITIONS  // Use manual limit switch locations
132
+  #define X_HOME_POS MANUAL_X_HOME_POS
133
+  #define Y_HOME_POS MANUAL_Y_HOME_POS
134
+  #define Z_HOME_POS MANUAL_Z_HOME_POS
135
+#else //Set min/max homing switch positions based upon homing direction and min/max travel limits
136
+  //X axis
137
+  #if X_HOME_DIR == -1
138
+    #ifdef BED_CENTER_AT_0_0
139
+      #define X_HOME_POS X_MAX_LENGTH * -0.5
140
+    #else
141
+      #define X_HOME_POS X_MIN_POS
142
+    #endif //BED_CENTER_AT_0_0
143
+  #else
144
+    #ifdef BED_CENTER_AT_0_0
145
+      #define X_HOME_POS X_MAX_LENGTH * 0.5
146
+    #else
147
+      #define X_HOME_POS X_MAX_POS
148
+    #endif //BED_CENTER_AT_0_0
149
+  #endif //X_HOME_DIR == -1
150
+
151
+  //Y axis
152
+  #if Y_HOME_DIR == -1
153
+    #ifdef BED_CENTER_AT_0_0
154
+      #define Y_HOME_POS Y_MAX_LENGTH * -0.5
155
+    #else
156
+      #define Y_HOME_POS Y_MIN_POS
157
+    #endif //BED_CENTER_AT_0_0
158
+  #else
159
+    #ifdef BED_CENTER_AT_0_0
160
+      #define Y_HOME_POS Y_MAX_LENGTH * 0.5
161
+    #else
162
+      #define Y_HOME_POS Y_MAX_POS
163
+    #endif //BED_CENTER_AT_0_0
164
+  #endif //Y_HOME_DIR == -1
165
+
166
+  // Z axis
167
+  #if Z_HOME_DIR == -1 //BED_CENTER_AT_0_0 not used
168
+    #define Z_HOME_POS Z_MIN_POS
169
+  #else
170
+    #define Z_HOME_POS Z_MAX_POS
171
+  #endif //Z_HOME_DIR == -1
172
+#endif //End auto min/max positions
173
+//END AUTOSET LOCATIONS OF LIMIT SWITCHES -ZP
174
+
175
+
176
+//#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
177
+
178
+// A single Z stepper driver is usually used to drive 2 stepper motors.
179
+// Uncomment this define to utilize a separate stepper driver for each Z axis motor.
180
+// Only a few motherboards support this, like RAMPS, which have dual extruder support (the 2nd, often unused, extruder driver is used
181
+// to control the 2nd Z axis stepper motor). The pins are currently only defined for a RAMPS motherboards.
182
+// On a RAMPS (or other 5 driver) motherboard, using this feature will limit you to using 1 extruder.
183
+//#define Z_DUAL_STEPPER_DRIVERS
184
+
185
+#ifdef Z_DUAL_STEPPER_DRIVERS
186
+  #undef EXTRUDERS
187
+  #define EXTRUDERS 1
188
+#endif
189
+
190
+// Same again but for Y Axis.
191
+//#define Y_DUAL_STEPPER_DRIVERS
192
+
193
+// Define if the two Y drives need to rotate in opposite directions
194
+#define INVERT_Y2_VS_Y_DIR true
195
+
196
+#ifdef Y_DUAL_STEPPER_DRIVERS
197
+  #undef EXTRUDERS
198
+  #define EXTRUDERS 1
199
+#endif
200
+
201
+#if defined (Z_DUAL_STEPPER_DRIVERS) && defined (Y_DUAL_STEPPER_DRIVERS)
202
+  #error "You cannot have dual drivers for both Y and Z"
203
+#endif
204
+
205
+// Enable this for dual x-carriage printers.
206
+// A dual x-carriage design has the advantage that the inactive extruder can be parked which
207
+// prevents hot-end ooze contaminating the print. It also reduces the weight of each x-carriage
208
+// allowing faster printing speeds.
209
+//#define DUAL_X_CARRIAGE
210
+#ifdef DUAL_X_CARRIAGE
211
+  // Configuration for second X-carriage
212
+  // Note: the first x-carriage is defined as the x-carriage which homes to the minimum endstop;
213
+  // the second x-carriage always homes to the maximum endstop.
214
+  #define X2_MIN_POS 80     // set minimum to ensure second x-carriage doesn't hit the parked first X-carriage
215
+  #define X2_MAX_POS 353    // set maximum to the distance between toolheads when both heads are homed
216
+  #define X2_HOME_DIR 1     // the second X-carriage always homes to the maximum endstop position
217
+  #define X2_HOME_POS X2_MAX_POS // default home position is the maximum carriage position
218
+      // However: In this mode the EXTRUDER_OFFSET_X value for the second extruder provides a software
219
+      // override for X2_HOME_POS. This also allow recalibration of the distance between the two endstops
220
+      // without modifying the firmware (through the "M218 T1 X???" command).
221
+      // Remember: you should set the second extruder x-offset to 0 in your slicer.
222
+
223
+  // Pins for second x-carriage stepper driver (defined here to avoid further complicating pins.h)
224
+  #define X2_ENABLE_PIN 29
225
+  #define X2_STEP_PIN 25
226
+  #define X2_DIR_PIN 23
227
+
228
+  // There are a few selectable movement modes for dual x-carriages using M605 S<mode>
229
+  //    Mode 0: Full control. The slicer has full control over both x-carriages and can achieve optimal travel results
230
+  //                           as long as it supports dual x-carriages. (M605 S0)
231
+  //    Mode 1: Auto-park mode. The firmware will automatically park and unpark the x-carriages on tool changes so
232
+  //                           that additional slicer support is not required. (M605 S1)
233
+  //    Mode 2: Duplication mode. The firmware will transparently make the second x-carriage and extruder copy all
234
+  //                           actions of the first x-carriage. This allows the printer to print 2 arbitrary items at
235
+  //                           once. (2nd extruder x offset and temp offset are set using: M605 S2 [Xnnn] [Rmmm])
236
+
237
+  // This is the default power-up mode which can be later using M605.
238
+  #define DEFAULT_DUAL_X_CARRIAGE_MODE 0
239
+
240
+  // Default settings in "Auto-park Mode"
241
+  #define TOOLCHANGE_PARK_ZLIFT   0.2      // the distance to raise Z axis when parking an extruder
242
+  #define TOOLCHANGE_UNPARK_ZLIFT 1        // the distance to raise Z axis when unparking an extruder
243
+
244
+  // Default x offset in duplication mode (typically set to half print bed width)
245
+  #define DEFAULT_DUPLICATION_X_OFFSET 100
246
+
247
+#endif //DUAL_X_CARRIAGE
248
+
249
+// @section homing
250
+
251
+//homing hits the endstop, then retracts by this distance, before it tries to slowly bump again:
252
+#define X_HOME_BUMP_MM 5
253
+#define Y_HOME_BUMP_MM 5
254
+#define Z_HOME_BUMP_MM 5 // deltas need the same for all three axis
255
+#define HOMING_BUMP_DIVISOR {10, 10, 20}  // Re-Bump Speed Divisor (Divides the Homing Feedrate)
256
+//#define QUICK_HOME  //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
257
+
258
+// When G28 is called, this option will make Y home before X
259
+// #define HOME_Y_BEFORE_X
260
+
261
+// @section machine
262
+
263
+#define AXIS_RELATIVE_MODES {false, false, false, false}
264
+
265
+// @section machine
266
+
267
+#ifdef CONFIG_STEPPERS_TOSHIBA
268
+#define MAX_STEP_FREQUENCY 10000 // Max step frequency for Toshiba Stepper Controllers
269
+#else
270
+#define MAX_STEP_FREQUENCY 40000 // Max step frequency for Ultimaker (5000 pps / half step)
271
+#endif
272
+//By default pololu step drivers require an active high signal. However, some high power drivers require an active low signal as step.
273
+#define INVERT_X_STEP_PIN false
274
+#define INVERT_Y_STEP_PIN false
275
+#define INVERT_Z_STEP_PIN false
276
+#define INVERT_E_STEP_PIN false
277
+
278
+// Default stepper release if idle. Set to 0 to deactivate.
279
+#define DEFAULT_STEPPER_DEACTIVE_TIME 60
280
+
281
+#define DEFAULT_MINIMUMFEEDRATE       0.0     // minimum feedrate
282
+#define DEFAULT_MINTRAVELFEEDRATE     0.0
283
+
284
+// @section lcd
285
+
286
+#ifdef ULTIPANEL
287
+  #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60} // Feedrates for manual moves along X, Y, Z, E from panel
288
+  #define ULTIPANEL_FEEDMULTIPLY  // Comment to disable setting feedrate multiplier via encoder
289
+#endif
290
+
291
+// @section extras
292
+
293
+// minimum time in microseconds that a movement needs to take if the buffer is emptied.
294
+#define DEFAULT_MINSEGMENTTIME        20000
295
+
296
+// If defined the movements slow down when the look ahead buffer is only half full
297
+// (don't use SLOWDOWN with DELTA because DELTA generates hundreds of segments per second)
298
+//#define SLOWDOWN
299
+
300
+// Frequency limit
301
+// See nophead's blog for more info
302
+// Not working O
303
+//#define XY_FREQUENCY_LIMIT  15
304
+
305
+// Minimum planner junction speed. Sets the default minimum speed the planner plans for at the end
306
+// of the buffer and all stops. This should not be much greater than zero and should only be changed
307
+// if unwanted behavior is observed on a user's machine when running at very slow speeds.
308
+#define MINIMUM_PLANNER_SPEED 0.05// (mm/sec)
309
+
310
+// MS1 MS2 Stepper Driver Microstepping mode table
311
+#define MICROSTEP1 LOW,LOW
312
+#define MICROSTEP2 HIGH,LOW
313
+#define MICROSTEP4 LOW,HIGH
314
+#define MICROSTEP8 HIGH,HIGH
315
+#define MICROSTEP16 HIGH,HIGH
316
+
317
+// Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
318
+#define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
319
+
320
+// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
321
+#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
322
+
323
+// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
324
+//#define DIGIPOT_I2C
325
+// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
326
+#define DIGIPOT_I2C_NUM_CHANNELS 8
327
+// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
328
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
329
+
330
+//===========================================================================
331
+//=============================Additional Features===========================
332
+//===========================================================================
333
+
334
+//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
335
+#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
336
+
337
+// @section lcd
338
+
339
+#ifdef SDSUPPORT
340
+
341
+  // If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
342
+  // You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT
343
+  // in the pins.h file.  When using a push button pulling the pin to ground this will need inverted.  This setting should
344
+  // be commented out otherwise
345
+  #define SDCARDDETECTINVERTED
346
+
347
+  #define SD_FINISHED_STEPPERRELEASE true  //if sd support and the file is finished: disable steppers?
348
+  #define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place.
349
+
350
+  #define SDCARD_RATHERRECENTFIRST  //reverse file order of sd card menu display. Its sorted practically after the file system block order.
351
+  // if a file is deleted, it frees a block. hence, the order is not purely chronological. To still have auto0.g accessible, there is again the option to do that.
352
+  // using:
353
+  //#define MENU_ADDAUTOSTART
354
+
355
+  // Show a progress bar on HD44780 LCDs for SD printing
356
+  //#define LCD_PROGRESS_BAR
357
+
358
+  #ifdef LCD_PROGRESS_BAR
359
+    // Amount of time (ms) to show the bar
360
+    #define PROGRESS_BAR_BAR_TIME 2000
361
+    // Amount of time (ms) to show the status message
362
+    #define PROGRESS_BAR_MSG_TIME 3000
363
+    // Amount of time (ms) to retain the status message (0=forever)
364
+    #define PROGRESS_MSG_EXPIRE   0
365
+    // Enable this to show messages for MSG_TIME then hide them
366
+    //#define PROGRESS_MSG_ONCE
367
+  #endif
368
+
369
+#endif // SDSUPPORT
370
+
371
+// for dogm lcd displays you can choose some additional fonts:
372
+#ifdef DOGLCD
373
+  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
374
+  // we don't have a big font for Cyrillic, Kana
375
+  //#define USE_BIG_EDIT_FONT
376
+ 
377
+  // If you have spare 2300Byte of progmem and want to use a 
378
+  // smaller font on the Info-screen uncomment the next line.
379
+  //#define USE_SMALL_INFOFONT
380
+#endif // DOGLCD
381
+
382
+// @section more
383
+
384
+// The hardware watchdog should reset the microcontroller disabling all outputs, in case the firmware gets stuck and doesn't do temperature regulation.
385
+//#define USE_WATCHDOG
386
+
387
+#ifdef USE_WATCHDOG
388
+// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
389
+// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
390
+//  However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
391
+//#define WATCHDOG_RESET_MANUAL
392
+#endif
393
+
394
+// Enable the option to stop SD printing when hitting and endstops, needs to be enabled from the LCD menu when this option is enabled.
395
+//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
396
+
397
+// @section lcd
398
+
399
+// Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process
400
+// it can e.g. be used to change z-positions in the print startup phase in real-time
401
+// does not respect endstops!
402
+//#define BABYSTEPPING
403
+#ifdef BABYSTEPPING
404
+  #define BABYSTEP_XY  //not only z, but also XY in the menu. more clutter, more functions
405
+  #define BABYSTEP_INVERT_Z false  //true for inverse movements in Z
406
+  #define BABYSTEP_Z_MULTIPLICATOR 2 //faster z movements
407
+
408
+// @section extruder
409
+  #ifdef COREXY
410
+    #error BABYSTEPPING not implemented for COREXY yet.
411
+  #endif
412
+
413
+  #ifdef DELTA
414
+    #ifdef BABYSTEP_XY
415
+      #error BABYSTEPPING only implemented for Z axis on deltabots.
416
+    #endif
417
+  #endif
418
+#endif
419
+
420
+// extruder advance constant (s2/mm3)
421
+//
422
+// advance (steps) = STEPS_PER_CUBIC_MM_E * EXTRUDER_ADVANCE_K * cubic mm per second ^ 2
423
+//
424
+// Hooke's law says:    force = k * distance
425
+// Bernoulli's principle says:  v ^ 2 / 2 + g . h + pressure / density = constant
426
+// so: v ^ 2 is proportional to number of steps we advance the extruder
427
+//#define ADVANCE
428
+
429
+#ifdef ADVANCE
430
+  #define EXTRUDER_ADVANCE_K .0
431
+
432
+  #define D_FILAMENT 2.85
433
+  #define STEPS_MM_E 836
434
+  #define EXTRUSION_AREA (0.25 * D_FILAMENT * D_FILAMENT * 3.14159)
435
+  #define STEPS_PER_CUBIC_MM_E (axis_steps_per_unit[E_AXIS]/ EXTRUSION_AREA)
436
+
437
+// @section extras
438
+#endif // ADVANCE
439
+
440
+// Arc interpretation settings:
441
+#define MM_PER_ARC_SEGMENT 1
442
+#define N_ARC_CORRECTION 25
443
+
444
+const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
445
+
446
+#ifdef ULTIPANEL
447
+ #undef SDCARDDETECTINVERTED
448
+#endif
449
+
450
+// Power Signal Control Definitions
451
+// By default use ATX definition
452
+#ifndef POWER_SUPPLY
453
+  #define POWER_SUPPLY 1
454
+#endif
455
+// 1 = ATX
456
+#if (POWER_SUPPLY == 1)
457
+  #define PS_ON_AWAKE  LOW
458
+  #define PS_ON_ASLEEP HIGH
459
+#endif
460
+// 2 = X-Box 360 203W
461
+#if (POWER_SUPPLY == 2)
462
+  #define PS_ON_AWAKE  HIGH
463
+  #define PS_ON_ASLEEP LOW
464
+#endif
465
+
466
+// Control heater 0 and heater 1 in parallel.
467
+//#define HEATERS_PARALLEL
468
+
469
+//===========================================================================
470
+//================================= Buffers =================================
471
+//===========================================================================
472
+
473
+// @section hidden
474
+
475
+// The number of linear motions that can be in the plan at any give time.
476
+// THE BLOCK_BUFFER_SIZE NEEDS TO BE A POWER OF 2, i.g. 8,16,32 because shifts and ors are used to do the ring-buffering.
477
+#if defined SDSUPPORT
478
+  #define BLOCK_BUFFER_SIZE 16   // SD,LCD,Buttons take more memory, block buffer needs to be smaller
479
+#else
480
+  #define BLOCK_BUFFER_SIZE 64 // maximize block buffer
481
+#endif
482
+
483
+// @section more
484
+
485
+//The ASCII buffer for receiving from the serial:
486
+#define MAX_CMD_SIZE 96
487
+#define BUFSIZE 4
488
+
489
+// Bad Serial-connections can miss a received command by sending an 'ok'
490
+// Therefore some clients abort after 30 seconds in a timeout.
491
+// Some other clients start sending commands while receiving a 'wait'.
492
+// This "wait" is only sent when the buffer is empty. 1 second is a good value here.
493
+//#define NO_TIMEOUTS 1000 // Milliseconds
494
+
495
+// Some clients will have this feature soon. This could make the NO_TIMEOUTS unnecessary.
496
+//#define ADVANCED_OK
497
+
498
+// @section fwretract
499
+
500
+// Firmware based and LCD controlled retract
501
+// M207 and M208 can be used to define parameters for the retraction.
502
+// The retraction can be called by the slicer using G10 and G11
503
+// until then, intended retractions can be detected by moves that only extrude and the direction.
504
+// the moves are than replaced by the firmware controlled ones.
505
+
506
+// #define FWRETRACT  //ONLY PARTIALLY TESTED
507
+#ifdef FWRETRACT
508
+  #define MIN_RETRACT 0.1                //minimum extruded mm to accept a automatic gcode retraction attempt
509
+  #define RETRACT_LENGTH 3               //default retract length (positive mm)
510
+  #define RETRACT_LENGTH_SWAP 13         //default swap retract length (positive mm), for extruder change
511
+  #define RETRACT_FEEDRATE 45            //default feedrate for retracting (mm/s)
512
+  #define RETRACT_ZLIFT 0                //default retract Z-lift
513
+  #define RETRACT_RECOVER_LENGTH 0       //default additional recover length (mm, added to retract length when recovering)
514
+  #define RETRACT_RECOVER_LENGTH_SWAP 0  //default additional swap recover length (mm, added to retract length when recovering from extruder change)
515
+  #define RETRACT_RECOVER_FEEDRATE 8     //default feedrate for recovering from retraction (mm/s)
516
+#endif
517
+
518
+// Add support for experimental filament exchange support M600; requires display
519
+#ifdef ULTIPANEL
520
+  #define FILAMENTCHANGEENABLE
521
+  #ifdef FILAMENTCHANGEENABLE
522
+    #define FILAMENTCHANGE_XPOS 3
523
+    #define FILAMENTCHANGE_YPOS 3
524
+    #define FILAMENTCHANGE_ZADD 10
525
+    #define FILAMENTCHANGE_FIRSTRETRACT -2
526
+    #define FILAMENTCHANGE_FINALRETRACT -100
527
+  #endif
528
+#endif
529
+
530
+/******************************************************************************\
531
+ * enable this section if you have TMC26X motor drivers. 
532
+ * you need to import the TMC26XStepper library into the arduino IDE for this
533
+ ******************************************************************************/
534
+
535
+// @section tmc
536
+
537
+//#define HAVE_TMCDRIVER
538
+#ifdef HAVE_TMCDRIVER
539
+
540
+//  #define X_IS_TMC
541
+  #define X_MAX_CURRENT 1000  //in mA
542
+  #define X_SENSE_RESISTOR 91 //in mOhms
543
+  #define X_MICROSTEPS 16     //number of microsteps
544
+  
545
+//  #define X2_IS_TMC
546
+  #define X2_MAX_CURRENT 1000  //in mA
547
+  #define X2_SENSE_RESISTOR 91 //in mOhms
548
+  #define X2_MICROSTEPS 16     //number of microsteps
549
+  
550
+//  #define Y_IS_TMC
551
+  #define Y_MAX_CURRENT 1000  //in mA
552
+  #define Y_SENSE_RESISTOR 91 //in mOhms
553
+  #define Y_MICROSTEPS 16     //number of microsteps
554
+  
555
+//  #define Y2_IS_TMC
556
+  #define Y2_MAX_CURRENT 1000  //in mA
557
+  #define Y2_SENSE_RESISTOR 91 //in mOhms
558
+  #define Y2_MICROSTEPS 16     //number of microsteps 
559
+  
560
+//  #define Z_IS_TMC
561
+  #define Z_MAX_CURRENT 1000  //in mA
562
+  #define Z_SENSE_RESISTOR 91 //in mOhms
563
+  #define Z_MICROSTEPS 16     //number of microsteps
564
+  
565
+//  #define Z2_IS_TMC
566
+  #define Z2_MAX_CURRENT 1000  //in mA
567
+  #define Z2_SENSE_RESISTOR 91 //in mOhms
568
+  #define Z2_MICROSTEPS 16     //number of microsteps
569
+  
570
+//  #define E0_IS_TMC
571
+  #define E0_MAX_CURRENT 1000  //in mA
572
+  #define E0_SENSE_RESISTOR 91 //in mOhms
573
+  #define E0_MICROSTEPS 16     //number of microsteps
574
+  
575
+//  #define E1_IS_TMC
576
+  #define E1_MAX_CURRENT 1000  //in mA
577
+  #define E1_SENSE_RESISTOR 91 //in mOhms
578
+  #define E1_MICROSTEPS 16     //number of microsteps 
579
+  
580
+//  #define E2_IS_TMC
581
+  #define E2_MAX_CURRENT 1000  //in mA
582
+  #define E2_SENSE_RESISTOR 91 //in mOhms
583
+  #define E2_MICROSTEPS 16     //number of microsteps 
584
+  
585
+//  #define E3_IS_TMC
586
+  #define E3_MAX_CURRENT 1000  //in mA
587
+  #define E3_SENSE_RESISTOR 91 //in mOhms
588
+  #define E3_MICROSTEPS 16     //number of microsteps   
589
+
590
+#endif
591
+
592
+#ifdef FILAMENTCHANGEENABLE
593
+  #ifdef EXTRUDER_RUNOUT_PREVENT
594
+    #error EXTRUDER_RUNOUT_PREVENT currently incompatible with FILAMENTCHANGE
595
+  #endif
596
+#endif
597
+
598
+//===========================================================================
599
+//=============================  Define Defines  ============================
600
+//===========================================================================
601
+#if EXTRUDERS > 1 && defined TEMP_SENSOR_1_AS_REDUNDANT
602
+  #error "You cannot use TEMP_SENSOR_1_AS_REDUNDANT if EXTRUDERS > 1"
603
+#endif
604
+
605
+#if EXTRUDERS > 1 && defined HEATERS_PARALLEL
606
+  #error "You cannot use HEATERS_PARALLEL if EXTRUDERS > 1"
607
+#endif
608
+
609
+#if TEMP_SENSOR_0 > 0
610
+  #define THERMISTORHEATER_0 TEMP_SENSOR_0
611
+  #define HEATER_0_USES_THERMISTOR
612
+#endif
613
+#if TEMP_SENSOR_1 > 0
614
+  #define THERMISTORHEATER_1 TEMP_SENSOR_1
615
+  #define HEATER_1_USES_THERMISTOR
616
+#endif
617
+#if TEMP_SENSOR_2 > 0
618
+  #define THERMISTORHEATER_2 TEMP_SENSOR_2
619
+  #define HEATER_2_USES_THERMISTOR
620
+#endif
621
+#if TEMP_SENSOR_BED > 0
622
+  #define THERMISTORBED TEMP_SENSOR_BED
623
+  #define BED_USES_THERMISTOR
624
+#endif
625
+#if TEMP_SENSOR_0 == -1
626
+  #define HEATER_0_USES_AD595
627
+#endif
628
+#if TEMP_SENSOR_1 == -1
629
+  #define HEATER_1_USES_AD595
630
+#endif
631
+#if TEMP_SENSOR_2 == -1
632
+  #define HEATER_2_USES_AD595
633
+#endif
634
+#if TEMP_SENSOR_BED == -1
635
+  #define BED_USES_AD595
636
+#endif
637
+#if TEMP_SENSOR_0 == -2
638
+  #define HEATER_0_USES_MAX6675
639
+#endif
640
+#if TEMP_SENSOR_0 == 0
641
+  #undef HEATER_0_MINTEMP
642
+  #undef HEATER_0_MAXTEMP
643
+#endif
644
+#if TEMP_SENSOR_1 == 0
645
+  #undef HEATER_1_MINTEMP
646
+  #undef HEATER_1_MAXTEMP
647
+#endif
648
+#if TEMP_SENSOR_2 == 0
649
+  #undef HEATER_2_MINTEMP
650
+  #undef HEATER_2_MAXTEMP
651
+#endif
652
+#if TEMP_SENSOR_BED == 0
653
+  #undef BED_MINTEMP
654
+  #undef BED_MAXTEMP
655
+#endif
656
+
657
+#include "Conditionals.h"
658
+#include "SanityCheck.h"
659
+
660
+#endif //CONFIGURATION_ADV_H

+ 5
- 0
Marlin/example_configurations/delta/kossel_pro/readme.md Datei anzeigen

@@ -0,0 +1,5 @@
1
+# Example Configuration for OpenBeam Kossel Pro [BRAINWAVE_PRO](http://www.openbeamusa.com/3d-printers/kossel/)
2
+* Configuration files for the **Openbeam Kossel Pro** as delivered in their KickStarter distribution
3
+
4
+I [@Wackerbarth](https://github.com/Wackerbarth) tested this version on my Kossel Pro and Arduino 1.6.5 for Mac.
5
+This configuration is a transition to merge Terence Tam's configuration with up-to-date Marlin source and a current Arduino IDE

Laden…
Abbrechen
Speichern