Browse Source

Update Delta example files

Signed-off-by: Joseivaldo Benito Junior <jrbenito@benito.qsl.br>
Joseivaldo Benito Junior 10 years ago
parent
commit
8e48e24c7f

+ 105
- 17
Marlin/example_configurations/delta/Configuration.h View File

@@ -5,6 +5,13 @@
5 5
 // Advanced settings can be found in Configuration_adv.h
6 6
 // BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
7 7
 
8
+//===========================================================================
9
+//============================= DELTA Printer ===============================
10
+//===========================================================================
11
+// For a Delta printer rplace the configuration files wilth the files in the
12
+// example_configurations/delta directory.
13
+//
14
+
8 15
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
9 16
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
10 17
 // build by the user have been successfully uploaded into firmware.
@@ -18,13 +25,18 @@
18 25
 
19 26
 // This determines the communication speed of the printer
20 27
 #define BAUDRATE 250000
21
-//#define BAUDRATE 115200
28
+
29
+// This enables the serial port associated to the Bluetooth interface
30
+//#define BTENABLED              // Enable BT interface on AT90USB devices
31
+
22 32
 
23 33
 //// The following define selects which electronics board you have. Please choose the one that matches your setup
24 34
 // 10 = Gen7 custom (Alfons3 Version) "https://github.com/Alfons3/Generation_7_Electronics"
25 35
 // 11 = Gen7 v1.1, v1.2 = 11
26 36
 // 12 = Gen7 v1.3
27 37
 // 13 = Gen7 v1.4
38
+// 2  = Cheaptronic v1.0
39
+// 20 = Sethi 3D_1
28 40
 // 3  = MEGA/RAMPS up to 1.2 = 3
29 41
 // 33 = RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Bed)
30 42
 // 34 = RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Bed)
@@ -38,6 +50,7 @@
38 50
 // 64 = STB V1.1
39 51
 // 65 = Azteeg X1
40 52
 // 66 = Melzi with ATmega1284 (MaKr3d version)
53
+// 67 = Azteeg X3
41 54
 // 7  = Ultimaker
42 55
 // 71 = Ultimaker (Older electronics. Pre 1.5.4. This is rare)
43 56
 // 77 = 3Drag Controller
@@ -45,6 +58,7 @@
45 58
 // 80 = Rumba
46 59
 // 81 = Printrboard (AT90USB1286)
47 60
 // 82 = Brainwave (AT90USB646)
61
+// 83 = SAV Mk-I (AT90USB1286)
48 62
 // 9  = Gen3+
49 63
 // 70 = Megatronics
50 64
 // 701= Megatronics v2.0
@@ -61,6 +75,10 @@
61 75
 // Define this to set a custom name for your generic Mendel,
62 76
 // #define CUSTOM_MENDEL_NAME "This Mendel"
63 77
 
78
+// Define this to set a unique identifier for this printer, (Used by some programs to differentiate between machines)
79
+// You can use an online service to generate a random UUID. (eg http://www.uuidgenerator.net/version4)
80
+// #define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
81
+
64 82
 // This defines the number of extruders
65 83
 #define EXTRUDERS 1
66 84
 
@@ -70,6 +88,8 @@
70 88
 
71 89
 #define POWER_SUPPLY 1
72 90
 
91
+// Define this to have the electronics keep the powersupply off on startup. If you don't know what this is leave it.
92
+// #define PS_DEFAULT_OFF
73 93
 
74 94
 //===========================================================================
75 95
 //============================== Delta Settings =============================
@@ -82,8 +102,6 @@
82 102
 // and processor overload (too many expensive sqrt calls).
83 103
 #define DELTA_SEGMENTS_PER_SECOND 200
84 104
 
85
-// NOTE NB all values for DELTA_* values MOUST be floating point, so always have a decimal point in them
86
-
87 105
 // Center-to-center distance of the holes in the diagonal push rods.
88 106
 #define DELTA_DIAGONAL_ROD 250.0 // mm
89 107
 
@@ -99,8 +117,6 @@
99 117
 // Effective horizontal distance bridged by diagonal push rods.
100 118
 #define DELTA_RADIUS (DELTA_SMOOTH_ROD_OFFSET-DELTA_EFFECTOR_OFFSET-DELTA_CARRIAGE_OFFSET)
101 119
 
102
-#define DELTA_DIAGONAL_ROD_2 sq(DELTA_DIAGONAL_ROD)
103
-
104 120
 // Effective X/Y positions of the three vertical towers.
105 121
 #define SIN_60 0.8660254037844386
106 122
 #define COS_60 0.5
@@ -125,9 +141,10 @@
125 141
 // 2 is 200k thermistor - ATC Semitec 204GT-2 (4.7k pullup)
126 142
 // 3 is mendel-parts thermistor (4.7k pullup)
127 143
 // 4 is 10k thermistor !! do not use it for a hotend. It gives bad resolution at high temp. !!
128
-// 5 is 100K thermistor - ATC Semitec 104GT-2 (Used in ParCan) (4.7k pullup)
144
+// 5 is 100K thermistor - ATC Semitec 104GT-2 (Used in ParCan & J-Head) (4.7k pullup)
129 145
 // 6 is 100k EPCOS - Not as accurate as table 1 (created using a fluke thermocouple) (4.7k pullup)
130 146
 // 7 is 100k Honeywell thermistor 135-104LAG-J01 (4.7k pullup)
147
+// 71 is 100k Honeywell thermistor 135-104LAF-J01 (4.7k pullup)
131 148
 // 8 is 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup)
132 149
 // 9 is 100k GE Sensing AL03006-58.2K-97-G1 (4.7k pullup)
133 150
 // 10 is 100k RS thermistor 198-961 (4.7k pullup)
@@ -137,7 +154,7 @@
137 154
 //                          (but gives greater accuracy and more stable PID)
138 155
 // 51 is 100k thermistor - EPCOS (1k pullup)
139 156
 // 52 is 200k thermistor - ATC Semitec 204GT-2 (1k pullup)
140
-// 55 is 100k thermistor - ATC Semitec 104GT-2 (Used in ParCan) (1k pullup)
157
+// 55 is 100k thermistor - ATC Semitec 104GT-2 (Used in ParCan & J-Head) (1k pullup)
141 158
 
142 159
 #define TEMP_SENSOR_0 -1
143 160
 #define TEMP_SENSOR_1 -1
@@ -282,16 +299,15 @@
282 299
 #endif
283 300
 
284 301
 // The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.
285
-const bool X_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
286
-const bool Y_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
287
-const bool Z_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
288
-const bool X_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
289
-const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
290
-const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
291
-
292
-// deltas never have min endstops
302
+const bool X_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
303
+const bool Y_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
304
+const bool Z_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
305
+const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
306
+const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
307
+const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
308
+//#define DISABLE_MAX_ENDSTOPS
309
+// Deltas never have min endstops
293 310
 #define DISABLE_MIN_ENDSTOPS
294
-
295 311
 // Disable max endstops for compatibility with endstop checking routine
296 312
 #if defined(COREXY) && !defined(DISABLE_MAX_ENDSTOPS)
297 313
   #define DISABLE_MAX_ENDSTOPS
@@ -338,6 +354,58 @@ const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic o
338 354
 #define X_MAX_LENGTH (X_MAX_POS - X_MIN_POS)
339 355
 #define Y_MAX_LENGTH (Y_MAX_POS - Y_MIN_POS)
340 356
 #define Z_MAX_LENGTH (Z_MAX_POS - Z_MIN_POS)
357
+//============================= Bed Auto Leveling ===========================
358
+
359
+//#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
360
+
361
+#ifdef ENABLE_AUTO_BED_LEVELING
362
+
363
+  // these are the positions on the bed to do the probing
364
+  #define LEFT_PROBE_BED_POSITION 15
365
+  #define RIGHT_PROBE_BED_POSITION 170
366
+  #define BACK_PROBE_BED_POSITION 180
367
+  #define FRONT_PROBE_BED_POSITION 20
368
+
369
+  // these are the offsets to the prob relative to the extruder tip (Hotend - Probe)
370
+  #define X_PROBE_OFFSET_FROM_EXTRUDER -25
371
+  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29
372
+  #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35
373
+
374
+  #define Z_RAISE_BEFORE_HOMING 4       // (in mm) Raise Z before homing (G28) for Probe Clearance.
375
+                                        // Be sure you have this distance over your Z_MAX_POS in case
376
+
377
+  #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min
378
+
379
+  #define Z_RAISE_BEFORE_PROBING 15    //How much the extruder will be raised before traveling to the first probing point.
380
+  #define Z_RAISE_BETWEEN_PROBINGS 5  //How much the extruder will be raised when traveling from between next probing points
381
+
382
+
383
+  //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
384
+  //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
385
+  // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
386
+
387
+//  #define PROBE_SERVO_DEACTIVATION_DELAY 300
388
+
389
+
390
+//If you have enabled the Bed Auto Levelling and are using the same Z Probe for Z Homing,
391
+//it is highly recommended you let this Z_SAFE_HOMING enabled!!!
392
+
393
+  #define Z_SAFE_HOMING   // This feature is meant to avoid Z homing with probe outside the bed area.
394
+                          // When defined, it will:
395
+                          // - Allow Z homing only after X and Y homing AND stepper drivers still enabled
396
+                          // - If stepper drivers timeout, it will need X and Y homing again before Z homing
397
+                          // - Position the probe in a defined XY point before Z Homing when homing all axis (G28)
398
+                          // - Block Z homing only when the probe is outside bed area.
399
+
400
+  #ifdef Z_SAFE_HOMING
401
+
402
+    #define Z_SAFE_HOMING_X_POINT (X_MAX_LENGTH/2)    // X point for Z homing when homing all axis (G28)
403
+    #define Z_SAFE_HOMING_Y_POINT (Y_MAX_LENGTH/2)    // Y point for Z homing when homing all axis (G28)
404
+
405
+  #endif
406
+
407
+#endif
408
+
341 409
 
342 410
 // The position of the homing switches
343 411
 //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
@@ -406,7 +474,8 @@ const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic o
406 474
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
407 475
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
408 476
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
409
-
477
+//#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
478
+//#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
410 479
 //#define ULTIMAKERCONTROLLER //as available from the ultimaker online store.
411 480
 //#define ULTIPANEL  //the ultipanel as on thingiverse
412 481
 
@@ -510,6 +579,17 @@ const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic o
510 579
   #define ULTIPANEL
511 580
 #endif
512 581
 
582
+// Shift register panels
583
+// ---------------------
584
+// 2 wire Non-latching LCD SR from:
585
+// https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
586
+//#define SR_LCD
587
+#ifdef SR_LCD
588
+   #define SR_LCD_2W_NL    // Non latching 2 wire shiftregister
589
+   //#define NEWPANEL
590
+#endif
591
+
592
+
513 593
 #ifdef ULTIPANEL
514 594
 //  #define NEWPANEL  //enable this if you have a click-encoder panel
515 595
   #define SDSUPPORT
@@ -543,6 +623,11 @@ const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic o
543 623
 // Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino
544 624
 //#define FAST_PWM_FAN
545 625
 
626
+// Temperature status leds that display the hotend and bet temperature.
627
+// If alle hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
628
+// Otherwise the RED led is on. There is 1C hysteresis.
629
+//#define TEMP_STAT_LEDS
630
+
546 631
 // Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
547 632
 // which is not ass annoying as with the hardware PWM. On the other hand, if this frequency
548 633
 // is too low, you should also increment SOFT_PWM_SCALE.
@@ -564,6 +649,9 @@ const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic o
564 649
 // Support for the BariCUDA Paste Extruder.
565 650
 //#define BARICUDA
566 651
 
652
+//define BlinkM/CyzRgb Support
653
+//#define BLINKM
654
+
567 655
 /*********************************************************************\
568 656
 * R/C SERVO support
569 657
 * Sponsored by TrinityLabs, Reworked by codexmas

+ 84
- 6
Marlin/example_configurations/delta/Configuration_adv.h View File

@@ -40,6 +40,10 @@
40 40
   #define AUTOTEMP_OLDWEIGHT 0.98
41 41
 #endif
42 42
 
43
+//Show Temperature ADC value
44
+//The M105 command return, besides traditional information, the ADC value read from temperature sensors.
45
+//#define SHOW_TEMP_ADC_VALUES
46
+
43 47
 //  extruder run-out prevention. 
44 48
 //if the machine is idle, and the temperature over MINTEMP, every couple of SECONDS some filament is extruded
45 49
 //#define EXTRUDER_RUNOUT_PREVENT  
@@ -146,6 +150,21 @@
146 150
   #define EXTRUDERS 1
147 151
 #endif
148 152
 
153
+// Same again but for Y Axis.
154
+//#define Y_DUAL_STEPPER_DRIVERS
155
+
156
+// Define if the two Y drives need to rotate in opposite directions
157
+#define INVERT_Y2_VS_Y_DIR true
158
+
159
+#ifdef Y_DUAL_STEPPER_DRIVERS
160
+  #undef EXTRUDERS
161
+  #define EXTRUDERS 1
162
+#endif
163
+
164
+#if defined (Z_DUAL_STEPPER_DRIVERS) && defined (Y_DUAL_STEPPER_DRIVERS)
165
+  #error "You cannot have dual drivers for both Y and Z"
166
+#endif
167
+
149 168
 // Enable this for dual x-carriage printers. 
150 169
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which
151 170
 // prevents hot-end ooze contaminating the print. It also reduces the weight of each x-carriage
@@ -155,8 +174,8 @@
155 174
 // Configuration for second X-carriage
156 175
 // Note: the first x-carriage is defined as the x-carriage which homes to the minimum endstop;
157 176
 // the second x-carriage always homes to the maximum endstop.
158
-#define X2_MIN_POS 88     // set minimum to ensure second x-carriage doesn't hit the parked first X-carriage
159
-#define X2_MAX_POS 350.45 // set maximum to the distance between toolheads when both heads are homed 
177
+#define X2_MIN_POS 80     // set minimum to ensure second x-carriage doesn't hit the parked first X-carriage
178
+#define X2_MAX_POS 353    // set maximum to the distance between toolheads when both heads are homed 
160 179
 #define X2_HOME_DIR 1     // the second X-carriage always homes to the maximum endstop position
161 180
 #define X2_HOME_POS X2_MAX_POS // default home position is the maximum carriage position 
162 181
     // However: In this mode the EXTRUDER_OFFSET_X value for the second extruder provides a software 
@@ -169,14 +188,35 @@
169 188
 #define X2_STEP_PIN 25
170 189
 #define X2_DIR_PIN 23
171 190
 
172
-#endif // DUAL_X_CARRIAGE
191
+// There are a few selectable movement modes for dual x-carriages using M605 S<mode>
192
+//    Mode 0: Full control. The slicer has full control over both x-carriages and can achieve optimal travel results
193
+//                           as long as it supports dual x-carriages. (M605 S0)
194
+//    Mode 1: Auto-park mode. The firmware will automatically park and unpark the x-carriages on tool changes so
195
+//                           that additional slicer support is not required. (M605 S1)
196
+//    Mode 2: Duplication mode. The firmware will transparently make the second x-carriage and extruder copy all  
197
+//                           actions of the first x-carriage. This allows the printer to print 2 arbitrary items at
198
+//                           once. (2nd extruder x offset and temp offset are set using: M605 S2 [Xnnn] [Rmmm])
199
+
200
+// This is the default power-up mode which can be later using M605. 
201
+#define DEFAULT_DUAL_X_CARRIAGE_MODE 0 
202
+
203
+// As the x-carriages are independent we can now account for any relative Z offset
204
+#define EXTRUDER1_Z_OFFSET 0.0           // z offset relative to extruder 0
205
+
206
+// Default settings in "Auto-park Mode" 
207
+#define TOOLCHANGE_PARK_ZLIFT   0.2      // the distance to raise Z axis when parking an extruder
208
+#define TOOLCHANGE_UNPARK_ZLIFT 1        // the distance to raise Z axis when unparking an extruder
209
+
210
+// Default x offset in duplication mode (typically set to half print bed width)
211
+#define DEFAULT_DUPLICATION_X_OFFSET 100
212
+
213
+#endif //DUAL_X_CARRIAGE
173 214
     
174 215
 //homing hits the endstop, then retracts by this distance, before it tries to slowly bump again:
175 216
 #define X_HOME_RETRACT_MM 5 
176
-#define Y_HOME_RETRACT_MM 5
217
+#define Y_HOME_RETRACT_MM 5 
177 218
 #define Z_HOME_RETRACT_MM 5 // deltas need the same for all three axis
178 219
 
179
-
180 220
 //#define QUICK_HOME  //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
181 221
 
182 222
 #define AXIS_RELATIVE_MODES {false, false, false, false}
@@ -238,6 +278,11 @@
238 278
 #define SD_FINISHED_STEPPERRELEASE true  //if sd support and the file is finished: disable steppers?
239 279
 #define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place.
240 280
 
281
+#define SDCARD_RATHERRECENTFIRST  //reverse file order of sd card menu display. Its sorted practically after the filesystem block order. 
282
+// if a file is deleted, it frees a block. hence, the order is not purely cronological. To still have auto0.g accessible, there is again the option to do that.
283
+// using:
284
+//#define MENU_ADDAUTOSTART
285
+
241 286
 // The hardware watchdog should reset the Microcontroller disabling all outputs, in case the firmware gets stuck and doesn't do temperature regulation.
242 287
 //#define USE_WATCHDOG
243 288
 
@@ -251,6 +296,26 @@
251 296
 // Enable the option to stop SD printing when hitting and endstops, needs to be enabled from the LCD menu when this option is enabled.
252 297
 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
253 298
 
299
+// Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process
300
+// it can e.g. be used to change z-positions in the print startup phase in realtime
301
+// does not respect endstops!
302
+//#define BABYSTEPPING
303
+#ifdef BABYSTEPPING
304
+  #define BABYSTEP_XY  //not only z, but also XY in the menu. more clutter, more functions
305
+  #define BABYSTEP_INVERT_Z false  //true for inverse movements in Z
306
+  #define BABYSTEP_Z_MULTIPLICATOR 2 //faster z movements
307
+  
308
+  #ifdef COREXY
309
+    #error BABYSTEPPING not implemented for COREXY yet.
310
+  #endif
311
+
312
+  #ifdef DELTA
313
+    #ifdef BABYSTEP_XY
314
+      #error BABYSTEPPING only implemented for Z axis on deltabots.
315
+    #endif
316
+  #endif
317
+#endif
318
+
254 319
 // extruder advance constant (s2/mm3)
255 320
 //
256 321
 // advance (steps) = STEPS_PER_CUBIC_MM_E * EXTUDER_ADVANCE_K * cubic mm per second ^ 2
@@ -302,6 +367,9 @@ const unsigned int dropsegments=5; //everything with less than this number of st
302 367
   #define PS_ON_ASLEEP LOW
303 368
 #endif
304 369
 
370
+// Control heater 0 and heater 1 in parallel.
371
+//#define HEATERS_PARALLEL
372
+
305 373
 //===========================================================================
306 374
 //=============================Buffers           ============================
307 375
 //===========================================================================
@@ -332,7 +400,7 @@ const unsigned int dropsegments=5; //everything with less than this number of st
332 400
 
333 401
 //adds support for experimental filament exchange support M600; requires display
334 402
 #ifdef ULTIPANEL
335
-  //#define FILAMENTCHANGEENABLE
403
+  #define FILAMENTCHANGEENABLE
336 404
   #ifdef FILAMENTCHANGEENABLE
337 405
     #define FILAMENTCHANGE_XPOS 3
338 406
     #define FILAMENTCHANGE_YPOS 3
@@ -341,6 +409,12 @@ const unsigned int dropsegments=5; //everything with less than this number of st
341 409
     #define FILAMENTCHANGE_FINALRETRACT -100
342 410
   #endif
343 411
 #endif
412
+
413
+#ifdef FILAMENTCHANGEENABLE
414
+  #ifdef EXTRUDER_RUNOUT_PREVENT
415
+    #error EXTRUDER_RUNOUT_PREVENT currently incompatible with FILAMENTCHANGE
416
+  #endif 
417
+#endif
344 418
  
345 419
 //===========================================================================
346 420
 //=============================  Define Defines  ============================
@@ -349,6 +423,10 @@ const unsigned int dropsegments=5; //everything with less than this number of st
349 423
   #error "You cannot use TEMP_SENSOR_1_AS_REDUNDANT if EXTRUDERS > 1"
350 424
 #endif
351 425
 
426
+#if EXTRUDERS > 1 && defined HEATERS_PARALLEL
427
+  #error "You cannot use HEATERS_PARALLEL if EXTRUDERS > 1"
428
+#endif
429
+
352 430
 #if TEMP_SENSOR_0 > 0
353 431
   #define THERMISTORHEATER_0 TEMP_SENSOR_0
354 432
   #define HEATER_0_USES_THERMISTOR

Loading…
Cancel
Save