Skip to content

Commit 8e64106

Browse files
committed
Add PT100 on 32 bit mcu temptable
1 parent ebc6fec commit 8e64106

File tree

4 files changed

+81
-4
lines changed

4 files changed

+81
-4
lines changed

Marlin/Configuration.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@
380380
* 15 : 100k thermistor calibration for JGAurora A5 hotend
381381
* 18 : ATC Semitec 204GT-2 (4.7k pullup) Dagoma.Fr - MKS_Base_DKU001327
382382
* 20 : Pt100 with circuit in the Ultimainboard V2.x
383+
* 21 : Pt100 with circuit on 32 bit mcu
383384
* 201 : Pt100 with circuit in Overlord, similar to Ultimainboard V2.x
384385
* 60 : 100k Maker's Tool Works Kapton Bed Thermistor beta=3950
385386
* 61 : 100k Formbot / Vivedino 3950 350C thermistor 4.7k pullup
@@ -406,7 +407,7 @@
406407
* 998 : Dummy Table that ALWAYS reads 25°C or the temperature defined below.
407408
* 999 : Dummy Table that ALWAYS reads 100°C or the temperature defined below.
408409
*/
409-
#define TEMP_SENSOR_0 147 // I'm using PT100. Set 1 for stock thermistor
410+
#define TEMP_SENSOR_0 21 // I'm using PT100. Set 1 for stock thermistor
410411
#define TEMP_SENSOR_1 0
411412
#define TEMP_SENSOR_2 0
412413
#define TEMP_SENSOR_3 0
@@ -504,9 +505,9 @@
504505
//#define DEFAULT_Kd 61
505506

506507
// Sapphire Pro stock hotend with PT100 AutoTuned
507-
#define DEFAULT_Kp 16
508-
#define DEFAULT_Ki 3
509-
#define DEFAULT_Kd 22
508+
#define DEFAULT_Kp 16.61
509+
#define DEFAULT_Ki 2.41
510+
#define DEFAULT_Kd 28.63
510511

511512
#endif // PIDTEMP
512513

Marlin/src/lcd/thermistornames.h

+2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@
8686
#define THERMISTOR_NAME "ATC Semitec 204GT-2"
8787
#elif THERMISTOR_ID == 20
8888
#define THERMISTOR_NAME "Pt100 UltiMB"
89+
#elif THERMISTOR_ID == 21
90+
#define THERMISTOR_NAME "Pt100 32 bit"
8991
#elif THERMISTOR_ID == 201
9092
#define THERMISTOR_NAME "Pt100 OverLord"
9193
#elif THERMISTOR_ID == 60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
/**
2+
* Marlin 3D Printer Firmware
3+
* Copyright (c) 2019 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+
#define REVERSE_TEMP_SENSOR_RANGE
25+
26+
// Pt100 with INA826 amp on 32 bit mcu based on "Pt100 with INA826 amp on Ultimaker v2.0 electronics"
27+
const short temptable_21[][2] PROGMEM = {
28+
{ OV( 0), 0 },
29+
{ OV(344), 1 },
30+
{ OV(358), 10 },
31+
{ OV(371), 20 },
32+
{ OV(383), 30 },
33+
{ OV(397), 40 },
34+
{ OV(409), 50 },
35+
{ OV(423), 60 },
36+
{ OV(435), 70 },
37+
{ OV(447), 80 },
38+
{ OV(461), 90 },
39+
{ OV(473), 100 },
40+
{ OV(485), 110 },
41+
{ OV(498), 120 },
42+
{ OV(511), 130 },
43+
{ OV(523), 140 },
44+
{ OV(535), 150 },
45+
{ OV(547), 160 },
46+
{ OV(559), 170 },
47+
{ OV(571), 180 },
48+
{ OV(583), 190 },
49+
{ OV(595), 200 },
50+
{ OV(608), 210 },
51+
{ OV(620), 220 },
52+
{ OV(632), 230 },
53+
{ OV(642), 240 },
54+
{ OV(655), 250 },
55+
{ OV(667), 260 },
56+
{ OV(677), 270 },
57+
{ OV(689), 280 },
58+
{ OV(702), 290 },
59+
{ OV(712), 300 },
60+
{ OV(724), 310 },
61+
{ OV(735), 320 },
62+
{ OV(747), 330 },
63+
{ OV(758), 340 },
64+
{ OV(768), 350 },
65+
{ OV(780), 360 },
66+
{ OV(791), 370 },
67+
{ OV(802), 380 },
68+
{ OV(814), 390 },
69+
{ OV(824), 400 },
70+
{ OV(930), 500 }
71+
};

Marlin/src/module/thermistor/thermistors.h

+3
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@
105105
#if ANY_THERMISTOR_IS(20) // Pt100 with INA826 amp on Ultimaker v2.0 electronics
106106
#include "thermistor_20.h"
107107
#endif
108+
#if ANY_THERMISTOR_IS(21) // Pt100 with INA826 amp on 32 bit mcu based "Pt100 with INA826 amp on Ultimaker v2.0 electronics"
109+
#include "thermistor_21.h"
110+
#endif
108111
#if ANY_THERMISTOR_IS(51) // beta25 = 4092 K, R25 = 100 kOhm, Pull-up = 1 kOhm, "EPCOS"
109112
#include "thermistor_51.h"
110113
#endif

0 commit comments

Comments
 (0)