Skip to content

Commit 827f9ae

Browse files
discipthinkyhead
authored andcommitted
✨ Pt1000 with 2k2 pullup (SKR 3 / EZ) (MarlinFirmware#24790)
1 parent e44f156 commit 827f9ae

File tree

4 files changed

+51
-0
lines changed

4 files changed

+51
-0
lines changed

Marlin/Configuration.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@
518518
* 110 : Pt100 with 1kΩ pullup (atypical)
519519
* 147 : Pt100 with 4.7kΩ pullup
520520
* 1010 : Pt1000 with 1kΩ pullup (atypical)
521+
* 1022 : Pt1000 with 2.2kΩ pullup
521522
* 1047 : Pt1000 with 4.7kΩ pullup (E3D)
522523
* 20 : Pt100 with circuit in the Ultimainboard V2.x with mainboard ADC reference voltage = INA826 amplifier-board supply voltage.
523524
* NOTE: (1) Must use an ADC input with no pullup. (2) Some INA826 amplifiers are unreliable at 3.3V so consider using sensor 147, 110, or 21.

Marlin/src/lcd/thermistornames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@
124124
#define THERMISTOR_NAME "ATC104GT-2 1K"
125125
#elif THERMISTOR_ID == 1047
126126
#define THERMISTOR_NAME "PT1000 4K7"
127+
#elif THERMISTOR_ID == 1022
128+
#define THERMISTOR_NAME "PT1000 2K2"
127129
#elif THERMISTOR_ID == 1010
128130
#define THERMISTOR_NAME "PT1000 1K"
129131
#elif THERMISTOR_ID == 147
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/**
2+
* Marlin 3D Printer Firmware
3+
* Copyright (c) 2022 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 <https://www.gnu.org/licenses/>.
20+
*
21+
*/
22+
#pragma once
23+
24+
#define REVERSE_TEMP_SENSOR_RANGE_1022 1
25+
26+
// Pt1000 with 1k0 pullup
27+
constexpr temp_entry_t temptable_1022[] PROGMEM = {
28+
PtLine( 0, 1000, 2200),
29+
PtLine( 25, 1000, 2200),
30+
PtLine( 50, 1000, 2200),
31+
PtLine( 75, 1000, 2200),
32+
PtLine(100, 1000, 2200),
33+
PtLine(125, 1000, 2200),
34+
PtLine(150, 1000, 2200),
35+
PtLine(175, 1000, 2200),
36+
PtLine(200, 1000, 2200),
37+
PtLine(225, 1000, 2200),
38+
PtLine(250, 1000, 2200),
39+
PtLine(275, 1000, 2200),
40+
PtLine(300, 1000, 2200),
41+
PtLine(350, 1000, 2200),
42+
PtLine(400, 1000, 2200),
43+
PtLine(450, 1000, 2200),
44+
PtLine(500, 1000, 2200)
45+
};

Marlin/src/module/thermistor/thermistors.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ typedef struct { raw_adc_t value; celsius_t celsius; } temp_entry_t;
193193
#if ANY_THERMISTOR_IS(1010) // Pt1000 with 1k0 pullup
194194
#include "thermistor_1010.h"
195195
#endif
196+
#if ANY_THERMISTOR_IS(1022) // Pt1000 with 2k2 pullup
197+
#include "thermistor_1022.h"
198+
#endif
196199
#if ANY_THERMISTOR_IS(1047) // Pt1000 with 4k7 pullup
197200
#include "thermistor_1047.h"
198201
#endif

0 commit comments

Comments
 (0)