瀏覽代碼

Merge remote-tracking branch 'upstream/Marlin_v1' into Marlin_v1

Dirk Eichel 12 年之前
父節點
當前提交
fa58be3cb8
共有 6 個文件被更改,包括 2386 次插入2186 次删除
  1. 3
    1
      Marlin/Configuration.h
  2. 2155
    2126
      Marlin/Marlin_main.cpp
  3. 4
    2
      Marlin/language.h
  4. 87
    0
      Marlin/pins.h
  5. 2
    2
      Marlin/temperature.cpp
  6. 135
    55
      Marlin/thermistortables.h

+ 3
- 1
Marlin/Configuration.h 查看文件

38
 // 7  = Ultimaker
38
 // 7  = Ultimaker
39
 // 71 = Ultimaker (Older electronics. Pre 1.5.4. This is rare)
39
 // 71 = Ultimaker (Older electronics. Pre 1.5.4. This is rare)
40
 // 8  = Teensylu
40
 // 8  = Teensylu
41
+// 80 = Rumba
41
 // 81 = Printrboard (AT90USB1286)
42
 // 81 = Printrboard (AT90USB1286)
42
 // 82 = Brainwave (AT90USB646)
43
 // 82 = Brainwave (AT90USB646)
43
 // 9  = Gen3+
44
 // 9  = Gen3+
117
 // PID settings:
118
 // PID settings:
118
 // Comment the following line to disable PID and enable bang-bang.
119
 // Comment the following line to disable PID and enable bang-bang.
119
 #define PIDTEMP
120
 #define PIDTEMP
120
-#define PID_MAX 256 // limits current to nozzle; 256=full current
121
+#define BANG_MAX 256 // limits current to nozzle while in bang-bang mode; 256=full current
122
+#define PID_MAX 256 // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 256=full current
121
 #ifdef PIDTEMP
123
 #ifdef PIDTEMP
122
   //#define PID_DEBUG // Sends debug data to the serial port. 
124
   //#define PID_DEBUG // Sends debug data to the serial port. 
123
   //#define PID_OPENLOOP 1 // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX
125
   //#define PID_OPENLOOP 1 // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX

+ 2155
- 2126
Marlin/Marlin_main.cpp
文件差異過大導致無法顯示
查看文件


+ 4
- 2
Marlin/language.h 查看文件

26
 #if MOTHERBOARD == 7 || MOTHERBOARD == 71
26
 #if MOTHERBOARD == 7 || MOTHERBOARD == 71
27
 	#define MACHINE_NAME "Ultimaker"
27
 	#define MACHINE_NAME "Ultimaker"
28
 	#define FIRMWARE_URL "http://firmware.ultimaker.com"
28
 	#define FIRMWARE_URL "http://firmware.ultimaker.com"
29
+#elif MOTHERBOARD == 80
30
+	#define MACHINE_NAME "Rumba"
31
+	#define FIRMWARE_URL "https://github.com/ErikZalm/Marlin/"
29
 #else
32
 #else
30
 	#define MACHINE_NAME "Mendel"
33
 	#define MACHINE_NAME "Mendel"
31
 	#define FIRMWARE_URL "http://www.mendel-parts.com"
34
 	#define FIRMWARE_URL "http://www.mendel-parts.com"
1461
 	#define MSG_ERR_LONG_EXTRUDE_STOP " liian pitka pursotus estetty"
1464
 	#define MSG_ERR_LONG_EXTRUDE_STOP " liian pitka pursotus estetty"
1462
 
1465
 
1463
 #endif
1466
 #endif
1464
-#endif // ifndef LANGUAGE_H
1465
-</pre></body></html>
1467
+#endif // ifndef LANGUAGE_H

+ 87
- 0
Marlin/pins.h 查看文件

979
 
979
 
980
 #endif
980
 #endif
981
 
981
 
982
+
983
+/****************************************************************************************
984
+* RUMBA pin assignment
985
+*
986
+****************************************************************************************/
987
+#if MOTHERBOARD == 80
988
+#define KNOWN_BOARD 1
989
+
990
+#ifndef __AVR_ATmega2560__
991
+ #error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
992
+#endif
993
+
994
+#define X_STEP_PIN         17
995
+#define X_DIR_PIN          16
996
+#define X_ENABLE_PIN       48
997
+#define X_MIN_PIN          37
998
+#define X_MAX_PIN          36 
999
+
1000
+#define Y_STEP_PIN         54
1001
+#define Y_DIR_PIN          47 
1002
+#define Y_ENABLE_PIN       55
1003
+#define Y_MIN_PIN          35
1004
+#define Y_MAX_PIN          34 
1005
+
1006
+#define Z_STEP_PIN         57 
1007
+#define Z_DIR_PIN          56
1008
+#define Z_ENABLE_PIN       62 
1009
+#define Z_MIN_PIN          33
1010
+#define Z_MAX_PIN          32
1011
+
1012
+#define E0_STEP_PIN        23
1013
+#define E0_DIR_PIN         22
1014
+#define E0_ENABLE_PIN      24
1015
+
1016
+#define E1_STEP_PIN        26
1017
+#define E1_DIR_PIN         25
1018
+#define E1_ENABLE_PIN      27
1019
+
1020
+#define E2_STEP_PIN        29
1021
+#define E2_DIR_PIN         28
1022
+#define E2_ENABLE_PIN      39
1023
+
1024
+#define LED_PIN            13
1025
+
1026
+#define FAN_PIN            7 
1027
+//additional FAN1 PIN (e.g. useful for electronics fan or light on/off) on PIN 8
1028
+
1029
+#define PS_ON_PIN          45
1030
+#define KILL_PIN           46
1031
+
1032
+#define HEATER_0_PIN       2    // EXTRUDER 1
1033
+#define HEATER_1_PIN       3    // EXTRUDER 2
1034
+#define HEATER_2_PIN       6    // EXTRUDER 3
1035
+//optional FAN1 can be used as 4th heater output: #define HEATER_3_PIN       8    // EXTRUDER 4
1036
+#define HEATER_BED_PIN     9    // BED
1037
+
1038
+#define TEMP_0_PIN         15   // ANALOG NUMBERING
1039
+#define TEMP_1_PIN         14   // ANALOG NUMBERING
1040
+#define TEMP_2_PIN         13   // ANALOG NUMBERING
1041
+//optional for extruder 4 or chamber: #define TEMP_2_PIN         12   // ANALOG NUMBERING
1042
+#define TEMP_BED_PIN       11   // ANALOG NUMBERING
1043
+
1044
+#define SDPOWER            -1
1045
+#define SDSS               53
1046
+#define SDCARDDETECT       49
1047
+#define BEEPER             44
1048
+#define LCD_PINS_RS        19 
1049
+#define LCD_PINS_ENABLE    42
1050
+#define LCD_PINS_D4        18
1051
+#define LCD_PINS_D5        38 
1052
+#define LCD_PINS_D6        41
1053
+#define LCD_PINS_D7        40
1054
+#define BTN_EN1            11
1055
+#define BTN_EN2            12
1056
+#define BTN_ENC            43
1057
+//encoder rotation values
1058
+#define BLEN_C 2
1059
+#define BLEN_B 1
1060
+#define BLEN_A 0
1061
+#define encrot0 0
1062
+#define encrot1 2
1063
+#define encrot2 3
1064
+#define encrot3 1
1065
+
1066
+#endif //MOTHERBOARD==80
1067
+
1068
+
982
 /****************************************************************************************
1069
 /****************************************************************************************
983
 * Teensylu 0.7 / Printrboard pin assignments (AT90USB1286)
1070
 * Teensylu 0.7 / Printrboard pin assignments (AT90USB1286)
984
 * Requires the Teensyduino software with Teensy++ 2.0 selected in Arduino IDE!
1071
 * Requires the Teensyduino software with Teensy++ 2.0 selected in Arduino IDE!

+ 2
- 2
Marlin/temperature.cpp 查看文件

325
     #ifndef PID_OPENLOOP
325
     #ifndef PID_OPENLOOP
326
         pid_error[e] = target_temperature[e] - pid_input;
326
         pid_error[e] = target_temperature[e] - pid_input;
327
         if(pid_error[e] > PID_FUNCTIONAL_RANGE) {
327
         if(pid_error[e] > PID_FUNCTIONAL_RANGE) {
328
-          pid_output = PID_MAX;
328
+          pid_output = BANG_MAX;
329
           pid_reset[e] = true;
329
           pid_reset[e] = true;
330
         }
330
         }
331
-        else if(pid_error[e] < -PID_FUNCTIONAL_RANGE) {
331
+        else if(pid_error[e] < -PID_FUNCTIONAL_RANGE || target_temperature[e] == 0) {
332
           pid_output = 0;
332
           pid_output = 0;
333
           pid_reset[e] = true;
333
           pid_reset[e] = true;
334
         }
334
         }

+ 135
- 55
Marlin/thermistortables.h 查看文件

254
 
254
 
255
 #if (THERMISTORHEATER_0 == 7) || (THERMISTORHEATER_1 == 7) || (THERMISTORHEATER_2 == 7) || (THERMISTORBED == 7) // 100k Honeywell 135-104LAG-J01
255
 #if (THERMISTORHEATER_0 == 7) || (THERMISTORHEATER_1 == 7) || (THERMISTORHEATER_2 == 7) || (THERMISTORBED == 7) // 100k Honeywell 135-104LAG-J01
256
 const short temptable_7[][2] PROGMEM = {
256
 const short temptable_7[][2] PROGMEM = {
257
-   {1*OVERSAMPLENR, 500},
258
-   {46*OVERSAMPLENR, 270}, //top rating 300C
259
-   {50*OVERSAMPLENR, 265},
260
-   {54*OVERSAMPLENR, 260},
261
-   {58*OVERSAMPLENR, 255},
262
-   {62*OVERSAMPLENR, 250},
263
-   {67*OVERSAMPLENR, 245},
264
-   {72*OVERSAMPLENR, 240},
265
-   {79*OVERSAMPLENR, 235},
266
-   {85*OVERSAMPLENR, 230},
267
-   {91*OVERSAMPLENR, 225},
268
-   {99*OVERSAMPLENR, 220},
269
-   {107*OVERSAMPLENR, 215},
270
-   {116*OVERSAMPLENR, 210},
271
-   {126*OVERSAMPLENR, 205},
272
-   {136*OVERSAMPLENR, 200},
273
-   {149*OVERSAMPLENR, 195},
274
-   {160*OVERSAMPLENR, 190},
275
-   {175*OVERSAMPLENR, 185},
276
-   {191*OVERSAMPLENR, 180},
277
-   {209*OVERSAMPLENR, 175},
278
-   {224*OVERSAMPLENR, 170},
279
-   {246*OVERSAMPLENR, 165},
280
-   {267*OVERSAMPLENR, 160},
281
-   {293*OVERSAMPLENR, 155},
282
-   {316*OVERSAMPLENR, 150},
283
-   {340*OVERSAMPLENR, 145},
284
-   {364*OVERSAMPLENR, 140},
285
-   {396*OVERSAMPLENR, 135},
286
-   {425*OVERSAMPLENR, 130},
287
-   {460*OVERSAMPLENR, 125},
288
-   {489*OVERSAMPLENR, 120},
289
-   {526*OVERSAMPLENR, 115},
290
-   {558*OVERSAMPLENR, 110},
291
-   {591*OVERSAMPLENR, 105},
292
-   {628*OVERSAMPLENR, 100},
293
-   {660*OVERSAMPLENR, 95},
294
-   {696*OVERSAMPLENR, 90},
295
-   {733*OVERSAMPLENR, 85},
296
-   {761*OVERSAMPLENR, 80},
297
-   {794*OVERSAMPLENR, 75},
298
-   {819*OVERSAMPLENR, 70},
299
-   {847*OVERSAMPLENR, 65},
300
-   {870*OVERSAMPLENR, 60},
301
-   {892*OVERSAMPLENR, 55},
302
-   {911*OVERSAMPLENR, 50},
303
-   {929*OVERSAMPLENR, 45},
304
-   {944*OVERSAMPLENR, 40},
305
-   {959*OVERSAMPLENR, 35},
306
-   {971*OVERSAMPLENR, 30},
307
-   {981*OVERSAMPLENR, 25},
308
-   {989*OVERSAMPLENR, 20},
309
-   {994*OVERSAMPLENR, 15},
310
-   {1001*OVERSAMPLENR, 10},
311
-   {1005*OVERSAMPLENR, 5},
257
+   {1*OVERSAMPLENR, 941},
258
+   {19*OVERSAMPLENR, 362},
259
+   {37*OVERSAMPLENR, 299}, //top rating 300C
260
+   {55*OVERSAMPLENR, 266},
261
+   {73*OVERSAMPLENR, 245},
262
+   {91*OVERSAMPLENR, 229},
263
+   {109*OVERSAMPLENR, 216},
264
+   {127*OVERSAMPLENR, 206},
265
+   {145*OVERSAMPLENR, 197},
266
+   {163*OVERSAMPLENR, 190},
267
+   {181*OVERSAMPLENR, 183},
268
+   {199*OVERSAMPLENR, 177},
269
+   {217*OVERSAMPLENR, 171},
270
+   {235*OVERSAMPLENR, 166},
271
+   {253*OVERSAMPLENR, 162},
272
+   {271*OVERSAMPLENR, 157},
273
+   {289*OVERSAMPLENR, 153},
274
+   {307*OVERSAMPLENR, 149},
275
+   {325*OVERSAMPLENR, 146},
276
+   {343*OVERSAMPLENR, 142},
277
+   {361*OVERSAMPLENR, 139},
278
+   {379*OVERSAMPLENR, 135},
279
+   {397*OVERSAMPLENR, 132},
280
+   {415*OVERSAMPLENR, 129},
281
+   {433*OVERSAMPLENR, 126},
282
+   {451*OVERSAMPLENR, 123},
283
+   {469*OVERSAMPLENR, 121},
284
+   {487*OVERSAMPLENR, 118},
285
+   {505*OVERSAMPLENR, 115},
286
+   {523*OVERSAMPLENR, 112},
287
+   {541*OVERSAMPLENR, 110},
288
+   {559*OVERSAMPLENR, 107},
289
+   {577*OVERSAMPLENR, 105},
290
+   {595*OVERSAMPLENR, 102},
291
+   {613*OVERSAMPLENR, 99},
292
+   {631*OVERSAMPLENR, 97},
293
+   {649*OVERSAMPLENR, 94},
294
+   {667*OVERSAMPLENR, 92},
295
+   {685*OVERSAMPLENR, 89},
296
+   {703*OVERSAMPLENR, 86},
297
+   {721*OVERSAMPLENR, 84},
298
+   {739*OVERSAMPLENR, 81},
299
+   {757*OVERSAMPLENR, 78},
300
+   {775*OVERSAMPLENR, 75},
301
+   {793*OVERSAMPLENR, 72},
302
+   {811*OVERSAMPLENR, 69},
303
+   {829*OVERSAMPLENR, 66},
304
+   {847*OVERSAMPLENR, 62},
305
+   {865*OVERSAMPLENR, 59},
306
+   {883*OVERSAMPLENR, 55},
307
+   {901*OVERSAMPLENR, 51},
308
+   {919*OVERSAMPLENR, 46},
309
+   {937*OVERSAMPLENR, 41},
310
+   {955*OVERSAMPLENR, 35},
311
+   {973*OVERSAMPLENR, 27},
312
+   {991*OVERSAMPLENR, 17},
313
+   {1009*OVERSAMPLENR, 1},
312
    {1023*OVERSAMPLENR, 0}  //to allow internal 0 degrees C
314
    {1023*OVERSAMPLENR, 0}  //to allow internal 0 degrees C
313
 };
315
 };
314
 #endif
316
 #endif
554
 };
556
 };
555
 #endif
557
 #endif
556
 
558
 
559
+#if (THERMISTORHEATER_0 == 60) || (THERMISTORHEATER_1 == 60) || (THERMISTORHEATER_2 == 60) || (THERMISTORBED == 60) // Maker's Tool Works Kapton Bed Thermister
560
+const short temptable_60[][2] PROGMEM = {
561
+   {51*OVERSAMPLENR, 272},
562
+   {61*OVERSAMPLENR, 258},
563
+   {71*OVERSAMPLENR, 247},
564
+   {81*OVERSAMPLENR, 237},
565
+   {91*OVERSAMPLENR, 229},
566
+   {101*OVERSAMPLENR, 221},
567
+   {131*OVERSAMPLENR, 204},
568
+   {161*OVERSAMPLENR, 190},
569
+   {191*OVERSAMPLENR, 179},
570
+   {231*OVERSAMPLENR, 167},
571
+   {271*OVERSAMPLENR, 157},
572
+   {311*OVERSAMPLENR, 148},
573
+   {351*OVERSAMPLENR, 140},
574
+   {381*OVERSAMPLENR, 135},
575
+   {411*OVERSAMPLENR, 130},
576
+   {441*OVERSAMPLENR, 125},
577
+   {451*OVERSAMPLENR, 123},
578
+   {461*OVERSAMPLENR, 122},
579
+   {471*OVERSAMPLENR, 120},
580
+   {481*OVERSAMPLENR, 119},
581
+   {491*OVERSAMPLENR, 117},
582
+   {501*OVERSAMPLENR, 116},
583
+   {511*OVERSAMPLENR, 114},
584
+   {521*OVERSAMPLENR, 113},
585
+   {531*OVERSAMPLENR, 111},
586
+   {541*OVERSAMPLENR, 110},
587
+   {551*OVERSAMPLENR, 108},
588
+   {561*OVERSAMPLENR, 107},
589
+   {571*OVERSAMPLENR, 105},
590
+   {581*OVERSAMPLENR, 104},
591
+   {591*OVERSAMPLENR, 102},
592
+   {601*OVERSAMPLENR, 101},
593
+   {611*OVERSAMPLENR, 100},
594
+   {621*OVERSAMPLENR, 98},
595
+   {631*OVERSAMPLENR, 97},
596
+   {641*OVERSAMPLENR, 95},
597
+   {651*OVERSAMPLENR, 94},
598
+   {661*OVERSAMPLENR, 92},
599
+   {671*OVERSAMPLENR, 91},
600
+   {681*OVERSAMPLENR, 90},
601
+   {691*OVERSAMPLENR, 88},
602
+   {701*OVERSAMPLENR, 87},
603
+   {711*OVERSAMPLENR, 85},
604
+   {721*OVERSAMPLENR, 84},
605
+   {731*OVERSAMPLENR, 82},
606
+   {741*OVERSAMPLENR, 81},
607
+   {751*OVERSAMPLENR, 79},
608
+   {761*OVERSAMPLENR, 77},
609
+   {771*OVERSAMPLENR, 76},
610
+   {781*OVERSAMPLENR, 74},
611
+   {791*OVERSAMPLENR, 72},
612
+   {801*OVERSAMPLENR, 71},
613
+   {811*OVERSAMPLENR, 69},
614
+   {821*OVERSAMPLENR, 67},
615
+   {831*OVERSAMPLENR, 65},
616
+   {841*OVERSAMPLENR, 63},
617
+   {851*OVERSAMPLENR, 62},
618
+   {861*OVERSAMPLENR, 60},
619
+   {871*OVERSAMPLENR, 57},
620
+   {881*OVERSAMPLENR, 55},
621
+   {891*OVERSAMPLENR, 53},
622
+   {901*OVERSAMPLENR, 51},
623
+   {911*OVERSAMPLENR, 48},
624
+   {921*OVERSAMPLENR, 45},
625
+   {931*OVERSAMPLENR, 42},
626
+   {941*OVERSAMPLENR, 39},
627
+   {951*OVERSAMPLENR, 36},
628
+   {961*OVERSAMPLENR, 32},
629
+   {981*OVERSAMPLENR, 23},
630
+   {991*OVERSAMPLENR, 17},
631
+   {1001*OVERSAMPLENR, 9},
632
+   {1008*OVERSAMPLENR, 0},
633
+};
634
+#endif
635
+
636
+
557
 #define _TT_NAME(_N) temptable_ ## _N
637
 #define _TT_NAME(_N) temptable_ ## _N
558
 #define TT_NAME(_N) _TT_NAME(_N)
638
 #define TT_NAME(_N) _TT_NAME(_N)
559
 
639
 

Loading…
取消
儲存