Browse Source

Zonestar P802M bed thermistor (#18289)

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
Per Ivar Nerseth 4 years ago
parent
commit
10601a932a
No account linked to committer's email address

+ 2
- 0
Marlin/src/lcd/thermistornames.h View File

@@ -60,6 +60,8 @@
60 60
   #define THERMISTOR_NAME "ATC 104GT-2"
61 61
 #elif THERMISTOR_ID == 501
62 62
   #define THERMISTOR_NAME "Zonestar (Tronxy X3A)"
63
+#elif THERMISTOR_ID == 502
64
+  #define THERMISTOR_NAME "Zonestar (P802M Hot Bed)"
63 65
 #elif THERMISTOR_ID == 512
64 66
   #define THERMISTOR_NAME "RPW-Ultra"
65 67
 #elif THERMISTOR_ID == 6

+ 60
- 0
Marlin/src/module/thermistor/thermistor_502.h View File

@@ -0,0 +1,60 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#pragma once
23
+
24
+// Unknown thermistor for the Zonestar P802M hot bed. Adjusted By Nerseth
25
+// These were the shipped settings from Zonestar in original firmware: P802M_8_Repetier_V1.6_Zonestar.zip
26
+const short temptable_502[][2] PROGMEM = {
27
+   { OV(  56.0 / 4), 300 },
28
+   { OV( 187.0 / 4), 250 },
29
+   { OV( 615.0 / 4), 190 },
30
+   { OV( 690.0 / 4), 185 },
31
+   { OV( 750.0 / 4), 180 },
32
+   { OV( 830.0 / 4), 175 },
33
+   { OV( 920.0 / 4), 170 },
34
+   { OV(1010.0 / 4), 165 },
35
+   { OV(1118.0 / 4), 160 },
36
+   { OV(1215.0 / 4), 155 },
37
+   { OV(1330.0 / 4), 145 },
38
+   { OV(1460.0 / 4), 140 },
39
+   { OV(1594.0 / 4), 135 },
40
+   { OV(1752.0 / 4), 130 },
41
+   { OV(1900.0 / 4), 125 },
42
+   { OV(2040.0 / 4), 120 },
43
+   { OV(2200.0 / 4), 115 },
44
+   { OV(2350.0 / 4), 110 },
45
+   { OV(2516.0 / 4), 105 },
46
+   { OV(2671.0 / 4),  98 },
47
+   { OV(2831.0 / 4),  92 },
48
+   { OV(2975.0 / 4),  85 },
49
+   { OV(3115.0 / 4),  76 },
50
+   { OV(3251.0 / 4),  72 },
51
+   { OV(3480.0 / 4),  62 },
52
+   { OV(3580.0 / 4),  52 },
53
+   { OV(3660.0 / 4),  46 },
54
+   { OV(3740.0 / 4),  40 },
55
+   { OV(3869.0 / 4),  30 },
56
+   { OV(3912.0 / 4),  25 },
57
+   { OV(3948.0 / 4),  20 },
58
+   { OV(4077.0 / 4), -20 },
59
+   { OV(4094.0 / 4), -55 }
60
+};

+ 3
- 0
Marlin/src/module/thermistor/thermistors.h View File

@@ -70,6 +70,9 @@
70 70
 #if ANY_THERMISTOR_IS(501) // 100K Zonestar thermistor
71 71
   #include "thermistor_501.h"
72 72
 #endif
73
+#if ANY_THERMISTOR_IS(502) // Unknown thermistor used by the Zonestar Prusa P802M hot bed
74
+  #include "thermistor_502.h"
75
+#endif
73 76
 #if ANY_THERMISTOR_IS(512) // 100k thermistor in RPW-Ultra hotend, Pull-up = 4.7 kOhm, "unknown model"
74 77
   #include "thermistor_512.h"
75 78
 #endif

+ 1
- 1
Marlin/src/pins/pins.h View File

@@ -291,7 +291,7 @@
291 291
 #elif MB(MELZI_MAKR3D)
292 292
   #include "sanguino/pins_MELZI_MAKR3D.h"       // ATmega644P, ATmega1284P                env:sanguino644p env:sanguino1284p
293 293
 #elif MB(MELZI_CREALITY)
294
-  #include "sanguino/pins_MELZI_CREALITY.h"     // ATmega1284P                            env:melzi env:melzi_optiboot
294
+  #include "sanguino/pins_MELZI_CREALITY.h"     // ATmega1284P                            env:melzi env:melzi_optimized env:melzi_optiboot
295 295
 #elif MB(MELZI_MALYAN)
296 296
   #include "sanguino/pins_MELZI_MALYAN.h"       // ATmega644P, ATmega1284P                env:sanguino644p env:sanguino1284p
297 297
 #elif MB(MELZI_TRONXY)

+ 10
- 0
platformio.ini View File

@@ -167,6 +167,16 @@ extends       = env:melzi
167 167
 upload_speed  = 115200
168 168
 
169 169
 #
170
+# Melzi and clones (Zonestar Melzi2 with tuned flags)
171
+#
172
+[env:melzi_optimized]
173
+platform      = atmelavr
174
+extends       = env:melzi
175
+upload_speed  = 115200
176
+build_flags   = ${common.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -Wl,--relax -mcall-prologues
177
+build_unflags = -g -ggdb
178
+
179
+#
170 180
 # AT90USB1286 boards using CDC bootloader
171 181
 # - BRAINWAVE
172 182
 # - BRAINWAVE_PRO

Loading…
Cancel
Save