Bladeren bron

K8200: Example configuration back in sync

Configuration.h: back in sync, new features configured
Configuration_adv.h: back in sync, new features configured
README.md: text updated
CONSULitAS 7 jaren geleden
bovenliggende
commit
cbae44df64

+ 59
- 42
Marlin/example_configurations/K8200/Configuration.h Bestand weergeven

@@ -21,13 +21,6 @@
21 21
  */
22 22
 
23 23
 /**
24
- * Sample configuration file for Vellemann K8200
25
- * tested on K8200 with VM8201 (Display)
26
- * and Arduino 1.6.8 (Mac) by @CONSULitAS, 2016-02-21
27
- * https://github.com/CONSULitAS/Marlin-K8200/archive/K8200_stable_2016-02-21.zip
28
- */
29
-
30
-/**
31 24
  * Configuration.h
32 25
  *
33 26
  * Basic settings such as:
@@ -58,6 +51,22 @@
58 51
  */
59 52
 #define CONFIGURATION_H_VERSION 010100
60 53
 
54
+/**
55
+ * Sample configuration file for Vellemann K8200
56
+ * tested on K8200 with VM8201 (Display)
57
+ * and Arduino 1.6.12 (Mac OS X) by @CONSULitAS, 2016-11-18
58
+ * https://github.com/CONSULitAS/Marlin-K8200/archive/K8200_stable_2016-11-18.zip
59
+ *
60
+ * Please choose your hardware options for the K8200:
61
+ */
62
+
63
+// VM8201 Display unit
64
+#define K8200_VM8201
65
+// K8204 Z axis upgrade rod and coupler -> TODO
66
+// #define K8200_K8204
67
+// K8203 direct drive extruder -> TODO
68
+// #define K8200_K8203
69
+
61 70
 //===========================================================================
62 71
 //============================= Getting Started =============================
63 72
 //===========================================================================
@@ -146,7 +155,11 @@
146 155
 
147 156
 // Define this to set a unique identifier for this printer, (Used by some programs to differentiate between machines)
148 157
 // You can use an online service to generate a random UUID. (eg http://www.uuidgenerator.net/version4)
149
-#define MACHINE_UUID "2b7dea3b-844e-4ab1-aa96-bb6406607d6e" // K8200 standard config with VM8201 (Display)
158
+#if ENABLED(K8200_VM8201)
159
+  #define MACHINE_UUID "2b7dea3b-844e-4ab1-aa96-bb6406607d6e" // K8200 standard config with VM8201 (Display)
160
+#else
161
+  #define MACHINE_UUID "92f72de1-c211-452e-9f2b-61ef88a4751e" // K8200 standard config without VM8201 (Display)
162
+#endif
150 163
 
151 164
 // This defines the number of extruders
152 165
 // :[1, 2, 3, 4]
@@ -194,7 +207,7 @@
194 207
  *
195 208
  * :{ 0:'No power switch', 1:'ATX', 2:'X-Box 360' }
196 209
  */
197
-#define POWER_SUPPLY 1
210
+#define POWER_SUPPLY 0
198 211
 
199 212
 #if POWER_SUPPLY > 0
200 213
   // Enable this option to leave the PSU off at startup.
@@ -265,7 +278,7 @@
265 278
 #define TEMP_WINDOW     1       // (degC) Window around target to start the residency timer x degC early.
266 279
 
267 280
 // Bed temperature must be close to target for this long before M190 returns success
268
-#define TEMP_BED_RESIDENCY_TIME 0   // (seconds)
281
+#define TEMP_BED_RESIDENCY_TIME 10  // (seconds)
269 282
 #define TEMP_BED_HYSTERESIS 3       // (degC) range of +/- temperatures considered "close" to the target one
270 283
 #define TEMP_BED_WINDOW     1       // (degC) Window around target to start the residency timer x degC early.
271 284
 
@@ -369,11 +382,11 @@
369 382
 
370 383
   // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
371 384
 
372
-  // Vellemann K8200 PCB heatbed with standard PCU at 60 degreesC - calculated with PID Autotune and tested
373
-  // from pidautotune
374
-  #define  DEFAULT_bedKp 341.88
375
-  #define  DEFAULT_bedKi 25.32
376
-  #define  DEFAULT_bedKd 1153.89
385
+    // Vellemann K8200 PCB heatbed with standard PCU at 60 degreesC - calculated with PID Autotune and tested
386
+    // from pidautotune
387
+    #define  DEFAULT_bedKp 341.88
388
+    #define  DEFAULT_bedKi 25.32
389
+    #define  DEFAULT_bedKd 1153.89
377 390
 #endif // PIDTEMPBED
378 391
 
379 392
 // @section extruder
@@ -457,9 +470,9 @@
457 470
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
458 471
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
459 472
 #define Z_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
460
-#define X_MAX_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
461
-#define Y_MAX_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
462
-#define Z_MAX_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
473
+#define X_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
474
+#define Y_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
475
+#define Z_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
463 476
 #define Z_MIN_PROBE_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
464 477
 
465 478
 
@@ -480,13 +493,12 @@
480 493
  * Default Axis Steps Per Unit (steps/mm)
481 494
  * Override with M92
482 495
  */
483
-#define DEFAULT_AXIS_STEPS_PER_UNIT   { 64.25, 64.25, 2560, 600 }  // default steps per unit for K8200
484
-
496
+#define DEFAULT_AXIS_STEPS_PER_UNIT   { 64.25, 64.25, 2560, 600}  // for K8200
485 497
 /**
486 498
  * Default Max Feed Rate (mm/s)
487 499
  * Override with M203
488 500
  */
489
-#define DEFAULT_MAX_FEEDRATE          { 500, 500, 5, 500 }
501
+#define DEFAULT_MAX_FEEDRATE          { 500, 500, 5, 25 }
490 502
 
491 503
 /**
492 504
  * Default Max Acceleration (change/s) change = mm/s
@@ -571,9 +583,9 @@
571 583
 //    |           |
572 584
 //    O-- FRONT --+
573 585
 //  (0,0)
574
-#define X_PROBE_OFFSET_FROM_EXTRUDER -25     // X offset: -left  +right  [of the nozzle]
575
-#define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
576
-#define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
586
+#define X_PROBE_OFFSET_FROM_EXTRUDER 10  // X offset: -left  +right  [of the nozzle]
587
+#define Y_PROBE_OFFSET_FROM_EXTRUDER 10  // Y offset: -front +behind [the nozzle]
588
+#define Z_PROBE_OFFSET_FROM_EXTRUDER 0   // Z offset: -below +above  [the nozzle]
577 589
 
578 590
 // X and Y axis travel speed (mm/m) between probes
579 591
 #define XY_PROBE_SPEED 8000
@@ -648,7 +660,7 @@
648 660
  * Example: `M851 Z-5` with a CLEARANCE of 4  =>  9mm from bed to nozzle.
649 661
  *     But: `M851 Z+1` with a CLEARANCE of 2  =>  2mm from bed to nozzle.
650 662
  */
651
-#define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
663
+#define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
652 664
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
653 665
 
654 666
 //
@@ -668,7 +680,7 @@
668 680
 // WARNING: When motors turn off there is a chance of losing position accuracy!
669 681
 #define DISABLE_X false
670 682
 #define DISABLE_Y false
671
-#define DISABLE_Z false // not for K8200 -> looses Steps
683
+#define DISABLE_Z false
672 684
 // Warn on display about possibly reduced accuracy
673 685
 //#define DISABLE_REDUCED_ACCURACY_WARNING
674 686
 
@@ -681,7 +693,7 @@
681 693
 
682 694
 // Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
683 695
 #define INVERT_X_DIR false
684
-#define INVERT_Y_DIR false // was true -> why for K8200?
696
+#define INVERT_Y_DIR false // K8200: false
685 697
 #define INVERT_Z_DIR false
686 698
 
687 699
 // @section extruder
@@ -693,9 +705,9 @@
693 705
 #define INVERT_E3_DIR true
694 706
 
695 707
 // @section homing
696
-
697
-//#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
698
-                             // Be sure you have this distance over your Z_MAX_POS in case.
708
+// K8200: it is usual to have clamps for the glass plate on the heatbed
709
+#define Z_HOMING_HEIGHT 4   // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
710
+                            // Be sure you have this distance over your Z_MAX_POS in case.
699 711
 
700 712
 // ENDSTOP SETTINGS:
701 713
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
@@ -871,7 +883,7 @@
871 883
 // M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).
872 884
 // M502 - reverts to the default "factory settings".  You still need to store them in EEPROM afterwards if you want to.
873 885
 //define this to enable EEPROM support
874
-#define EEPROM_SETTINGS
886
+#define EEPROM_SETTINGS // K8200: uses EEPROM by default
875 887
 
876 888
 #if ENABLED(EEPROM_SETTINGS)
877 889
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
@@ -905,12 +917,12 @@
905 917
 // @section temperature
906 918
 
907 919
 // Preheat Constants
908
-#define PREHEAT_1_TEMP_HOTEND 190
909
-#define PREHEAT_1_TEMP_BED     50 // K8200: set back to 70 if you have an upgraded heatbed power supply
920
+#define PREHEAT_1_TEMP_HOTEND 180
921
+#define PREHEAT_1_TEMP_BED     50 // K8200: PLA / set back to 70 if you have an upgraded heatbed power supply
910 922
 #define PREHEAT_1_FAN_SPEED     0 // Value from 0 to 255
911 923
 
912 924
 #define PREHEAT_2_TEMP_HOTEND 240
913
-#define PREHEAT_2_TEMP_BED     60 // K8200: set back to 110 if you have an upgraded heatbed power supply
925
+#define PREHEAT_2_TEMP_BED     60 // K8200: ABS / set back to 110 if you have an upgraded heatbed power supply
914 926
 #define PREHEAT_2_FAN_SPEED     0 // Value from 0 to 255
915 927
 
916 928
 //
@@ -1012,7 +1024,7 @@
1012 1024
 //  - Total time printing
1013 1025
 //
1014 1026
 // This information can be viewed by the M78 command.
1015
-//#define PRINTCOUNTER
1027
+#define PRINTCOUNTER
1016 1028
 
1017 1029
 //=============================================================================
1018 1030
 //============================= LCD and SD support ============================
@@ -1020,6 +1032,9 @@
1020 1032
 
1021 1033
 // @section lcd
1022 1034
 
1035
+// K8200: for Display VM8201 with SD slot
1036
+#if ENABLED(K8200_VM8201)
1037
+
1023 1038
 //
1024 1039
 // LCD LANGUAGE
1025 1040
 //
@@ -1054,7 +1069,7 @@
1054 1069
 //
1055 1070
 // :['JAPANESE', 'WESTERN', 'CYRILLIC']
1056 1071
 //
1057
-#define DISPLAY_CHARSET_HD44780 JAPANESE     // K8200: for Display VM8201
1072
+#define DISPLAY_CHARSET_HD44780 JAPANESE // K8200: for Display VM8201 // this is the most common hardware
1058 1073
 
1059 1074
 //
1060 1075
 // LCD TYPE
@@ -1092,7 +1107,7 @@
1092 1107
 //
1093 1108
 // Use CRC checks and retries on the SD communication.
1094 1109
 //
1095
-//#define SD_CHECK_AND_RETRY
1110
+#define SD_CHECK_AND_RETRY
1096 1111
 
1097 1112
 //
1098 1113
 // ENCODER SETTINGS
@@ -1100,13 +1115,13 @@
1100 1115
 // This option overrides the default number of encoder pulses needed to
1101 1116
 // produce one step. Should be increased for high-resolution encoders.
1102 1117
 //
1103
-//#define ENCODER_PULSES_PER_STEP 1
1118
+#define ENCODER_PULSES_PER_STEP 4 // K8200_VM8201: four steps per encoder step
1104 1119
 
1105 1120
 //
1106 1121
 // Use this option to override the number of step signals required to
1107 1122
 // move between next/prev menu items.
1108 1123
 //
1109
-//#define ENCODER_STEPS_PER_MENU_ITEM 5
1124
+#define ENCODER_STEPS_PER_MENU_ITEM 1 // K8200_VM8201: One step per menu item
1110 1125
 
1111 1126
 /**
1112 1127
  * Encoder Direction Options
@@ -1131,14 +1146,14 @@
1131 1146
 //  If CLOCKWISE normally moves DOWN this makes it go UP.
1132 1147
 //  If CLOCKWISE normally moves UP this makes it go DOWN.
1133 1148
 //
1134
-//#define REVERSE_MENU_DIRECTION
1149
+#define REVERSE_MENU_DIRECTION // K8200: for Display VM8201 encoder on right side
1135 1150
 
1136 1151
 //
1137 1152
 // Individual Axis Homing
1138 1153
 //
1139 1154
 // Add individual axis homing items (Home X, Home Y, and Home Z) to the LCD menu.
1140 1155
 //
1141
-//#define INDIVIDUAL_AXIS_HOMING_MENU
1156
+#define INDIVIDUAL_AXIS_HOMING_MENU
1142 1157
 
1143 1158
 //
1144 1159
 // SPEAKER/BUZZER
@@ -1168,7 +1183,7 @@
1168 1183
 //
1169 1184
 // ULTIMAKER Controller.
1170 1185
 //
1171
-//#define ULTIMAKERCONTROLLER
1186
+#define ULTIMAKERCONTROLLER // K8200: for Display VM8201
1172 1187
 
1173 1188
 //
1174 1189
 // ULTIPANEL as seen on Thingiverse.
@@ -1326,6 +1341,8 @@
1326 1341
 //
1327 1342
 //#define SAV_3DLCD
1328 1343
 
1344
+#endif // K8200_VM8201
1345
+
1329 1346
 //=============================================================================
1330 1347
 //=============================== Extra Features ==============================
1331 1348
 //=============================================================================

+ 22
- 15
Marlin/example_configurations/K8200/Configuration_adv.h Bestand weergeven

@@ -20,12 +20,6 @@
20 20
  *
21 21
  */
22 22
 
23
-// Sample configuration file for Vellemann K8200
24
-// tested on K8200 with VM8201 (Display)
25
-// and Arduino 1.6.8 (Mac) by @CONSULitAS, 2016-02-21
26
-// https://github.com/CONSULitAS/Marlin-K8200/archive/K8200_stable_2016-02-21.zip
27
-
28
-
29 23
 /**
30 24
  * Configuration_adv.h
31 25
  *
@@ -36,6 +30,15 @@
36 30
  * Basic settings can be found in Configuration.h
37 31
  *
38 32
  */
33
+
34
+ /**
35
+  * Sample configuration file for Vellemann K8200
36
+  * tested on K8200 with VM8201 (Display)
37
+  * and Arduino 1.6.12 (Mac) by @CONSULitAS, 2016-11-18
38
+  * https://github.com/CONSULitAS/Marlin-K8200/archive/K8200_stable_2016-11-18.zip
39
+  *
40
+  */
41
+
39 42
 #ifndef CONFIGURATION_ADV_H
40 43
 #define CONFIGURATION_ADV_H
41 44
 
@@ -80,6 +83,7 @@
80 83
  * If you get false positives for "Thermal Runaway" increase THERMAL_PROTECTION_HYSTERESIS and/or THERMAL_PROTECTION_PERIOD
81 84
  */
82 85
 #if ENABLED(THERMAL_PROTECTION_HOTENDS)
86
+  // K8200 has weak heaters/power supply by default, so you have to relax!
83 87
   #define THERMAL_PROTECTION_PERIOD 60        // Seconds
84 88
   #define THERMAL_PROTECTION_HYSTERESIS 8     // Degrees Celsius
85 89
 
@@ -92,16 +96,19 @@
92 96
    * If you get false positives for "Heating failed" increase WATCH_TEMP_PERIOD and/or decrease WATCH_TEMP_INCREASE
93 97
    * WATCH_TEMP_INCREASE should not be below 2.
94 98
    */
99
+  // K8200 has weak heaters/power supply by default, so you have to relax!
95 100
   #define WATCH_TEMP_PERIOD 30                // Seconds
96
-  #define WATCH_TEMP_INCREASE 4               // Degrees Celsius
101
+  #define WATCH_TEMP_INCREASE 2               // Degrees Celsius
97 102
 #endif
98 103
 
99 104
 /**
100 105
  * Thermal Protection parameters for the bed are just as above for hotends.
101 106
  */
102 107
 #if ENABLED(THERMAL_PROTECTION_BED)
103
-  #define THERMAL_PROTECTION_BED_PERIOD 20    // Seconds
104
-  #define THERMAL_PROTECTION_BED_HYSTERESIS 2 // Degrees Celsius
108
+// K8200 has weak heaters/power supply by default, so you have to relax!
109
+// the default bed is so weak, that you can hardly go over 75°C
110
+  #define THERMAL_PROTECTION_BED_PERIOD 60    // Seconds
111
+  #define THERMAL_PROTECTION_BED_HYSTERESIS 10 // Degrees Celsius
105 112
 
106 113
   /**
107 114
    * Whenever an M140 or M190 increases the target temperature the firmware will wait for the
@@ -358,7 +365,7 @@
358 365
 // Default stepper release if idle. Set to 0 to deactivate.
359 366
 // Steppers will shut down DEFAULT_STEPPER_DEACTIVE_TIME seconds after the last move when DISABLE_INACTIVE_? is true.
360 367
 // Time can be set by M18 and M84.
361
-#define DEFAULT_STEPPER_DEACTIVE_TIME 60
368
+#define DEFAULT_STEPPER_DEACTIVE_TIME 120
362 369
 #define DISABLE_INACTIVE_X true
363 370
 #define DISABLE_INACTIVE_Y true
364 371
 #define DISABLE_INACTIVE_Z true  // set to false if the nozzle will fall down on your printed part when print has finished.
@@ -535,7 +542,7 @@
535 542
 //#define LIN_ADVANCE
536 543
 
537 544
 #if ENABLED(LIN_ADVANCE)
538
-  #define LIN_ADVANCE_K 75
545
+  #define LIN_ADVANCE_K 140 // start value for PLA on K8200
539 546
 #endif
540 547
 
541 548
 // @section leveling
@@ -567,7 +574,7 @@
567 574
 #endif
568 575
 
569 576
 // Moves (or segments) with fewer steps than this will be joined with the next move
570
-#define MIN_STEPS_PER_SEGMENT 3
577
+#define MIN_STEPS_PER_SEGMENT 6
571 578
 
572 579
 // The minimum pulse width (in µs) for stepping a stepper.
573 580
 // Set this if you find stepping unreliable, or if using a very fast CPU.
@@ -605,7 +612,7 @@
605 612
 // For debug-echo: 128 bytes for the optimal speed.
606 613
 // Other output doesn't need to be that speedy.
607 614
 // :[0, 2, 4, 8, 16, 32, 64, 128, 256]
608
-#define TX_BUFFER_SIZE 0
615
+#define TX_BUFFER_SIZE 128
609 616
 
610 617
 // Enable an emergency-command parser to intercept certain commands as they
611 618
 // enter the serial receive buffer, so they cannot be blocked.
@@ -644,9 +651,9 @@
644 651
 
645 652
 // Add support for experimental filament exchange support M600; requires display
646 653
 #if ENABLED(ULTIPANEL)
647
-  // #define FILAMENT_CHANGE_FEATURE             // Enable filament exchange menu and M600 g-code (used for runout sensor too)
654
+  #define FILAMENT_CHANGE_FEATURE               // Enable filament exchange menu and M600 g-code (used for runout sensor too)
648 655
   #if ENABLED(FILAMENT_CHANGE_FEATURE)
649
-    #define FILAMENT_CHANGE_X_POS 3             // X position of hotend
656
+    #define FILAMENT_CHANGE_X_POS (X_MAX_POS-3) // X position of hotend
650 657
     #define FILAMENT_CHANGE_Y_POS 3             // Y position of hotend
651 658
     #define FILAMENT_CHANGE_Z_ADD 10            // Z addition of hotend (lift)
652 659
     #define FILAMENT_CHANGE_XY_FEEDRATE 100     // X and Y axes feedrate in mm/s (also used for delta printers Z axis)

+ 1
- 1
Marlin/example_configurations/K8200/README.md Bestand weergeven

@@ -7,7 +7,7 @@
7 7
 * VM8201 uses "DISPLAY_CHARSET_HD44870_JAPAN" and "ULTIMAKERCONTROLLER"
8 8
 * german (de) translation with umlaut is supported now - thanks to @AnHardt for the great hardware based umlaut support
9 9
 
10
-I [@CONSULitAS](https://github.com/CONSULitAS) tested the changes on my K8200 with 20x4-LCD and Arduino 1.6.1 for Windows (SD library added to IDE manually) - everything works well.
10
+I [@CONSULitAS](https://github.com/CONSULitAS) tested the changes on my K8200 with 20x4-LCD and Arduino 1.6.12 for Mac (SD library added to IDE manually), 2016-11-18 - everything works well.
11 11
 
12 12
 **Source for genuine [Vellemann Firmware](http://www.k8200.eu/support/downloads/)**
13 13
 * V2.1.1 (for z axis upgrade, date branched: 2013-06-05): [firmware_k8200_v2.1.1.zip](http://www.k8200.eu/downloads/files/downloads/firmware_k8200_v2.1.1.zip)

Laden…
Annuleren
Opslaan