Browse Source

First working version for CTC DIY i3 Pro B printer

Thomas Buck 6 years ago
parent
commit
1c04ec5832
No account linked to committer's email address
2 changed files with 47 additions and 42 deletions
  1. 44
    39
      Marlin/Configuration.h
  2. 3
    3
      Marlin/Configuration_adv.h

+ 44
- 39
Marlin/Configuration.h View File

@@ -74,7 +74,7 @@
74 74
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
75 75
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
76 76
 // build by the user have been successfully uploaded into firmware.
77
-#define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
77
+#define STRING_CONFIG_H_AUTHOR "(xythobuz, CTC DIY)" // Who made the changes.
78 78
 #define SHOW_BOOTSCREEN
79 79
 #define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
80 80
 #define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during bootup in line 2
@@ -111,7 +111,7 @@
111 111
  *
112 112
  * :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000]
113 113
  */
114
-#define BAUDRATE 250000
114
+#define BAUDRATE 115200
115 115
 
116 116
 // Enable the Bluetooth serial interface on AT90USB devices
117 117
 //#define BLUETOOTH
@@ -119,12 +119,12 @@
119 119
 // The following define selects which electronics board you have.
120 120
 // Please choose the name from boards.h that matches your setup
121 121
 #ifndef MOTHERBOARD
122
-  #define MOTHERBOARD BOARD_RAMPS_14_EFB
122
+  #define MOTHERBOARD BOARD_GT2560_REV_A
123 123
 #endif
124 124
 
125 125
 // Optional custom name for your RepStrap or other custom machine
126 126
 // Displayed in the LCD "Ready" message
127
-//#define CUSTOM_MACHINE_NAME "3D Printer"
127
+#define CUSTOM_MACHINE_NAME "CTC i3 Pro B"
128 128
 
129 129
 // Define this to set a unique identifier for this printer, (Used by some programs to differentiate between machines)
130 130
 // You can use an online service to generate a random UUID. (eg http://www.uuidgenerator.net/version4)
@@ -283,12 +283,12 @@
283 283
  *
284 284
  * :{ '0': "Not used", '1':"100k / 4.7k - EPCOS", '2':"200k / 4.7k - ATC Semitec 204GT-2", '3':"Mendel-parts / 4.7k", '4':"10k !! do not use for a hotend. Bad resolution at high temp. !!", '5':"100K / 4.7k - ATC Semitec 104GT-2 (Used in ParCan & J-Head)", '6':"100k / 4.7k EPCOS - Not as accurate as Table 1", '7':"100k / 4.7k Honeywell 135-104LAG-J01", '8':"100k / 4.7k 0603 SMD Vishay NTCS0603E3104FXT", '9':"100k / 4.7k GE Sensing AL03006-58.2K-97-G1", '10':"100k / 4.7k RS 198-961", '11':"100k / 4.7k beta 3950 1%", '12':"100k / 4.7k 0603 SMD Vishay NTCS0603E3104FXT (calibrated for Makibox hot bed)", '13':"100k Hisens 3950  1% up to 300°C for hotend 'Simple ONE ' & hotend 'All In ONE'", '20':"PT100 (Ultimainboard V2.x)", '51':"100k / 1k - EPCOS", '52':"200k / 1k - ATC Semitec 204GT-2", '55':"100k / 1k - ATC Semitec 104GT-2 (Used in ParCan & J-Head)", '60':"100k Maker's Tool Works Kapton Bed Thermistor beta=3950", '66':"Dyze Design 4.7M High Temperature thermistor", '70':"the 100K thermistor found in the bq Hephestos 2", '71':"100k / 4.7k Honeywell 135-104LAF-J01", '147':"Pt100 / 4.7k", '1047':"Pt1000 / 4.7k", '110':"Pt100 / 1k (non-standard)", '1010':"Pt1000 / 1k (non standard)", '-3':"Thermocouple + MAX31855 (only for sensor 0)", '-2':"Thermocouple + MAX6675 (only for sensor 0)", '-1':"Thermocouple + AD595",'998':"Dummy 1", '999':"Dummy 2" }
285 285
  */
286
-#define TEMP_SENSOR_0 1
286
+#define TEMP_SENSOR_0 5
287 287
 #define TEMP_SENSOR_1 0
288 288
 #define TEMP_SENSOR_2 0
289 289
 #define TEMP_SENSOR_3 0
290 290
 #define TEMP_SENSOR_4 0
291
-#define TEMP_SENSOR_BED 0
291
+#define TEMP_SENSOR_BED 5
292 292
 
293 293
 // Dummy thermistor constant temperature readings, for use with 998 and 999
294 294
 #define DUMMY_THERMISTOR_998_VALUE 25
@@ -339,7 +339,7 @@
339 339
 #define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
340 340
 #define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
341 341
 #if ENABLED(PIDTEMP)
342
-  //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
342
+  #define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
343 343
   //#define PID_DEBUG // Sends debug data to the serial port.
344 344
   //#define PID_OPENLOOP 1 // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX
345 345
   //#define SLOW_PWM_HEATERS // PWM with very low frequency (roughly 0.125Hz=8s) and minimum state time of approximately 1s useful for heaters driven by a relay
@@ -352,9 +352,9 @@
352 352
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
353 353
 
354 354
   // Ultimaker
355
-  #define  DEFAULT_Kp 22.2
356
-  #define  DEFAULT_Ki 1.08
357
-  #define  DEFAULT_Kd 114
355
+  //#define  DEFAULT_Kp 22.2
356
+  //#define  DEFAULT_Ki 1.08
357
+  //#define  DEFAULT_Kd 114
358 358
 
359 359
   // MakerGear
360 360
   //#define  DEFAULT_Kp 7.0
@@ -366,6 +366,11 @@
366 366
   //#define  DEFAULT_Ki 2.25
367 367
   //#define  DEFAULT_Kd 440
368 368
 
369
+  // Anet A8 - using for CTC i3 Pro B
370
+  #define DEFAULT_Kp 21.0
371
+  #define DEFAULT_Ki 1.25
372
+  #define DEFAULT_Kd 86.0
373
+
369 374
 #endif // PIDTEMP
370 375
 
371 376
 //===========================================================================
@@ -416,12 +421,12 @@
416 421
 // or to allow moving the extruder regardless of the hotend temperature.
417 422
 // *** IT IS HIGHLY RECOMMENDED TO LEAVE THIS OPTION ENABLED! ***
418 423
 #define PREVENT_COLD_EXTRUSION
419
-#define EXTRUDE_MINTEMP 170
424
+#define EXTRUDE_MINTEMP 180
420 425
 
421 426
 // This option prevents a single extrusion longer than EXTRUDE_MAXLENGTH.
422 427
 // Note that for Bowden Extruders a too-small value here may prevent loading.
423 428
 #define PREVENT_LENGTHY_EXTRUDE
424
-#define EXTRUDE_MAXLENGTH 200
429
+#define EXTRUDE_MAXLENGTH 100
425 430
 
426 431
 //===========================================================================
427 432
 //======================== Thermal Runaway Protection =======================
@@ -525,14 +530,14 @@
525 530
  * Override with M92
526 531
  *                                      X, Y, Z, E0 [, E1[, E2[, E3[, E4]]]]
527 532
  */
528
-#define DEFAULT_AXIS_STEPS_PER_UNIT   { 80, 80, 4000, 500 }
533
+#define DEFAULT_AXIS_STEPS_PER_UNIT   { 80.10, 80.10, 2560, 105.0 }
529 534
 
530 535
 /**
531 536
  * Default Max Feed Rate (mm/s)
532 537
  * Override with M203
533 538
  *                                      X, Y, Z, E0 [, E1[, E2[, E3[, E4]]]]
534 539
  */
535
-#define DEFAULT_MAX_FEEDRATE          { 300, 300, 5, 25 }
540
+#define DEFAULT_MAX_FEEDRATE          { 400, 400, 8, 50 }
536 541
 
537 542
 /**
538 543
  * Default Max Acceleration (change/s) change = mm/s
@@ -540,7 +545,7 @@
540 545
  * Override with M201
541 546
  *                                      X, Y, Z, E0 [, E1[, E2[, E3[, E4]]]]
542 547
  */
543
-#define DEFAULT_MAX_ACCELERATION      { 3000, 3000, 100, 10000 }
548
+#define DEFAULT_MAX_ACCELERATION      { 2000, 2000, 100, 10000 }
544 549
 
545 550
 /**
546 551
  * Default Acceleration (change/s) change = mm/s
@@ -550,9 +555,9 @@
550 555
  *   M204 R    Retract Acceleration
551 556
  *   M204 T    Travel Acceleration
552 557
  */
553
-#define DEFAULT_ACCELERATION          3000    // X, Y, Z and E acceleration for printing moves
554
-#define DEFAULT_RETRACT_ACCELERATION  3000    // E acceleration for retracts
555
-#define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration for travel (non printing) moves
558
+#define DEFAULT_ACCELERATION          400    // X, Y, Z and E acceleration for printing moves
559
+#define DEFAULT_RETRACT_ACCELERATION  1000    // E acceleration for retracts
560
+#define DEFAULT_TRAVEL_ACCELERATION   1000    // X, Y, Z acceleration for travel (non printing) moves
556 561
 
557 562
 /**
558 563
  * Default Jerk (mm/s)
@@ -564,7 +569,7 @@
564 569
  */
565 570
 #define DEFAULT_XJERK                 20.0
566 571
 #define DEFAULT_YJERK                 20.0
567
-#define DEFAULT_ZJERK                  0.4
572
+#define DEFAULT_ZJERK                  0.3
568 573
 #define DEFAULT_EJERK                  5.0
569 574
 
570 575
 //===========================================================================
@@ -752,7 +757,7 @@
752 757
 // @section extruder
753 758
 
754 759
 // For direct drive extruder v9 set to true, for geared extruder set to false.
755
-#define INVERT_E0_DIR false
760
+#define INVERT_E0_DIR true
756 761
 #define INVERT_E1_DIR false
757 762
 #define INVERT_E2_DIR false
758 763
 #define INVERT_E3_DIR false
@@ -762,7 +767,7 @@
762 767
 
763 768
 //#define NO_MOTION_BEFORE_HOMING  // Inhibit movement until all axes have been homed
764 769
 
765
-//#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
770
+#define Z_HOMING_HEIGHT 10  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
766 771
                              // Be sure you have this distance over your Z_MAX_POS in case.
767 772
 
768 773
 // Direction of endstops when homing; 1=MAX, -1=MIN
@@ -774,16 +779,16 @@
774 779
 // @section machine
775 780
 
776 781
 // The size of the print bed
777
-#define X_BED_SIZE 200
778
-#define Y_BED_SIZE 200
782
+#define X_BED_SIZE 215
783
+#define Y_BED_SIZE 215
779 784
 
780 785
 // Travel limits (mm) after homing, corresponding to endstop positions.
781
-#define X_MIN_POS 0
782
-#define Y_MIN_POS 0
786
+#define X_MIN_POS -33
787
+#define Y_MIN_POS -10
783 788
 #define Z_MIN_POS 0
784 789
 #define X_MAX_POS X_BED_SIZE
785 790
 #define Y_MAX_POS Y_BED_SIZE
786
-#define Z_MAX_POS 200
791
+#define Z_MAX_POS 240
787 792
 
788 793
 // If enabled, axes won't move below MIN_POS in response to movement commands.
789 794
 #define MIN_SOFTWARE_ENDSTOPS
@@ -998,7 +1003,7 @@
998 1003
 #endif
999 1004
 
1000 1005
 // Homing speeds (mm/m)
1001
-#define HOMING_FEEDRATE_XY (50*60)
1006
+#define HOMING_FEEDRATE_XY (25*60)
1002 1007
 #define HOMING_FEEDRATE_Z  (4*60)
1003 1008
 
1004 1009
 //=============================================================================
@@ -1015,7 +1020,7 @@
1015 1020
 // M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).
1016 1021
 // M502 - reverts to the default "factory settings".  You still need to store them in EEPROM afterwards if you want to.
1017 1022
 //
1018
-//#define EEPROM_SETTINGS // Enable for M500 and M501 commands
1023
+#define EEPROM_SETTINGS // Enable for M500 and M501 commands
1019 1024
 //#define DISABLE_M503    // Saves ~2700 bytes of PROGMEM. Disable for release!
1020 1025
 #define EEPROM_CHITCHAT   // Give feedback on EEPROM commands. Disable to save PROGMEM.
1021 1026
 
@@ -1047,12 +1052,12 @@
1047 1052
 // @section temperature
1048 1053
 
1049 1054
 // Preheat Constants
1050
-#define PREHEAT_1_TEMP_HOTEND 180
1051
-#define PREHEAT_1_TEMP_BED     70
1055
+#define PREHEAT_1_TEMP_HOTEND 190
1056
+#define PREHEAT_1_TEMP_BED     60
1052 1057
 #define PREHEAT_1_FAN_SPEED     0 // Value from 0 to 255
1053 1058
 
1054 1059
 #define PREHEAT_2_TEMP_HOTEND 240
1055
-#define PREHEAT_2_TEMP_BED    110
1060
+#define PREHEAT_2_TEMP_BED     90
1056 1061
 #define PREHEAT_2_FAN_SPEED     0 // Value from 0 to 255
1057 1062
 
1058 1063
 /**
@@ -1164,7 +1169,7 @@
1164 1169
  *
1165 1170
  * View the current statistics with M78.
1166 1171
  */
1167
-//#define PRINTCOUNTER
1172
+#define PRINTCOUNTER
1168 1173
 
1169 1174
 //=============================================================================
1170 1175
 //============================= LCD and SD support ============================
@@ -1229,7 +1234,7 @@
1229 1234
  * you must uncomment the following option or it won't work.
1230 1235
  *
1231 1236
  */
1232
-//#define SDSUPPORT
1237
+#define SDSUPPORT
1233 1238
 
1234 1239
 /**
1235 1240
  * SD CARD: SPI SPEED
@@ -1254,13 +1259,13 @@
1254 1259
 // This option overrides the default number of encoder pulses needed to
1255 1260
 // produce one step. Should be increased for high-resolution encoders.
1256 1261
 //
1257
-//#define ENCODER_PULSES_PER_STEP 1
1262
+#define ENCODER_PULSES_PER_STEP 3
1258 1263
 
1259 1264
 //
1260 1265
 // Use this option to override the number of step signals required to
1261 1266
 // move between next/prev menu items.
1262 1267
 //
1263
-//#define ENCODER_STEPS_PER_MENU_ITEM 5
1268
+#define ENCODER_STEPS_PER_MENU_ITEM 1
1264 1269
 
1265 1270
 /**
1266 1271
  * Encoder Direction Options
@@ -1277,7 +1282,7 @@
1277 1282
 //
1278 1283
 //  Set this option if CLOCKWISE causes values to DECREASE
1279 1284
 //
1280
-//#define REVERSE_ENCODER_DIRECTION
1285
+#define REVERSE_ENCODER_DIRECTION
1281 1286
 
1282 1287
 //
1283 1288
 // This option reverses the encoder direction for navigating LCD menus.
@@ -1292,7 +1297,7 @@
1292 1297
 //
1293 1298
 // Add individual axis homing items (Home X, Home Y, and Home Z) to the LCD menu.
1294 1299
 //
1295
-//#define INDIVIDUAL_AXIS_HOMING_MENU
1300
+#define INDIVIDUAL_AXIS_HOMING_MENU
1296 1301
 
1297 1302
 //
1298 1303
 // SPEAKER/BUZZER
@@ -1322,7 +1327,7 @@
1322 1327
 //
1323 1328
 // ULTIMAKER Controller.
1324 1329
 //
1325
-//#define ULTIMAKERCONTROLLER
1330
+#define ULTIMAKERCONTROLLER
1326 1331
 
1327 1332
 //
1328 1333
 // ULTIPANEL as seen on Thingiverse.
@@ -1588,7 +1593,7 @@
1588 1593
  * Adds the M150 command to set the LED (or LED strip) color.
1589 1594
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1590 1595
  * luminance values can be set from 0 to 255.
1591
- * For Neopixel LED overall brightness parameters is also available 
1596
+ * For Neopixel LED overall brightness parameters is also available
1592 1597
  *
1593 1598
  * *** CAUTION ***
1594 1599
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,

+ 3
- 3
Marlin/Configuration_adv.h View File

@@ -41,7 +41,7 @@
41 41
 //===========================================================================
42 42
 
43 43
 #if DISABLED(PIDTEMPBED)
44
-  #define BED_CHECK_INTERVAL 5000 // ms between checks in bang-bang control
44
+  #define BED_CHECK_INTERVAL 2000 // ms between checks in bang-bang control
45 45
   #if ENABLED(BED_LIMIT_SWITCHING)
46 46
     #define BED_HYSTERESIS 2 // Only disable heating if T>target+BED_HYSTERESIS and enable heating if T>target-BED_HYSTERESIS
47 47
   #endif
@@ -251,7 +251,7 @@
251 251
 
252 252
 // If you want endstops to stay on (by default) even when not homing
253 253
 // enable this option. Override at any time with M120, M121.
254
-//#define ENDSTOPS_ALWAYS_ON_DEFAULT
254
+#define ENDSTOPS_ALWAYS_ON_DEFAULT
255 255
 
256 256
 // @section extras
257 257
 
@@ -380,7 +380,7 @@
380 380
 #define DEFAULT_MINIMUMFEEDRATE       0.0     // minimum feedrate
381 381
 #define DEFAULT_MINTRAVELFEEDRATE     0.0
382 382
 
383
-//#define HOME_AFTER_DEACTIVATE  // Require rehoming after steppers are deactivated
383
+#define HOME_AFTER_DEACTIVATE  // Require rehoming after steppers are deactivated
384 384
 
385 385
 // @section lcd
386 386
 

Loading…
Cancel
Save