| 1 |
ron |
1 |
/**
|
|
|
2 |
* Marlin 3D Printer Firmware
|
|
|
3 |
* Copyright (C) 2016 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 |
|
|
|
23 |
// PT100 with INA826 amp on Ultimaker v2.0 electronics
|
|
|
24 |
// The PT100 in the Ultimaker v2.0 electronics has a high sample value for a high temperature.
|
|
|
25 |
// This does not match the normal thermistor behaviour so we need to set the following defines
|
|
|
26 |
#if THERMISTORHEATER_0 == 20
|
|
|
27 |
#define HEATER_0_RAW_HI_TEMP 16383
|
|
|
28 |
#define HEATER_0_RAW_LO_TEMP 0
|
|
|
29 |
#endif
|
|
|
30 |
#if THERMISTORHEATER_1 == 20
|
|
|
31 |
#define HEATER_1_RAW_HI_TEMP 16383
|
|
|
32 |
#define HEATER_1_RAW_LO_TEMP 0
|
|
|
33 |
#endif
|
|
|
34 |
#if THERMISTORHEATER_2 == 20
|
|
|
35 |
#define HEATER_2_RAW_HI_TEMP 16383
|
|
|
36 |
#define HEATER_2_RAW_LO_TEMP 0
|
|
|
37 |
#endif
|
|
|
38 |
#if THERMISTORHEATER_3 == 20
|
|
|
39 |
#define HEATER_3_RAW_HI_TEMP 16383
|
|
|
40 |
#define HEATER_3_RAW_LO_TEMP 0
|
|
|
41 |
#endif
|
|
|
42 |
#if THERMISTORHEATER_4 == 20
|
|
|
43 |
#define HEATER_4_RAW_HI_TEMP 16383
|
|
|
44 |
#define HEATER_4_RAW_LO_TEMP 0
|
|
|
45 |
#endif
|
|
|
46 |
#if THERMISTORBED == 20
|
|
|
47 |
#define HEATER_BED_RAW_HI_TEMP 16383
|
|
|
48 |
#define HEATER_BED_RAW_LO_TEMP 0
|
|
|
49 |
#endif
|
|
|
50 |
#if THERMISTORCHAMBER == 20
|
|
|
51 |
#define HEATER_CHAMBER_RAW_HI_TEMP 16383
|
|
|
52 |
#define HEATER_CHAMBER_RAW_LO_TEMP 0
|
|
|
53 |
#endif
|
|
|
54 |
const short temptable_20[][2] PROGMEM = {
|
|
|
55 |
{ OV( 0), 0 },
|
|
|
56 |
{ OV(227), 1 },
|
|
|
57 |
{ OV(236), 10 },
|
|
|
58 |
{ OV(245), 20 },
|
|
|
59 |
{ OV(253), 30 },
|
|
|
60 |
{ OV(262), 40 },
|
|
|
61 |
{ OV(270), 50 },
|
|
|
62 |
{ OV(279), 60 },
|
|
|
63 |
{ OV(287), 70 },
|
|
|
64 |
{ OV(295), 80 },
|
|
|
65 |
{ OV(304), 90 },
|
|
|
66 |
{ OV(312), 100 },
|
|
|
67 |
{ OV(320), 110 },
|
|
|
68 |
{ OV(329), 120 },
|
|
|
69 |
{ OV(337), 130 },
|
|
|
70 |
{ OV(345), 140 },
|
|
|
71 |
{ OV(353), 150 },
|
|
|
72 |
{ OV(361), 160 },
|
|
|
73 |
{ OV(369), 170 },
|
|
|
74 |
{ OV(377), 180 },
|
|
|
75 |
{ OV(385), 190 },
|
|
|
76 |
{ OV(393), 200 },
|
|
|
77 |
{ OV(401), 210 },
|
|
|
78 |
{ OV(409), 220 },
|
|
|
79 |
{ OV(417), 230 },
|
|
|
80 |
{ OV(424), 240 },
|
|
|
81 |
{ OV(432), 250 },
|
|
|
82 |
{ OV(440), 260 },
|
|
|
83 |
{ OV(447), 270 },
|
|
|
84 |
{ OV(455), 280 },
|
|
|
85 |
{ OV(463), 290 },
|
|
|
86 |
{ OV(470), 300 },
|
|
|
87 |
{ OV(478), 310 },
|
|
|
88 |
{ OV(485), 320 },
|
|
|
89 |
{ OV(493), 330 },
|
|
|
90 |
{ OV(500), 340 },
|
|
|
91 |
{ OV(507), 350 },
|
|
|
92 |
{ OV(515), 360 },
|
|
|
93 |
{ OV(522), 370 },
|
|
|
94 |
{ OV(529), 380 },
|
|
|
95 |
{ OV(537), 390 },
|
|
|
96 |
{ OV(544), 400 },
|
|
|
97 |
{ OV(614), 500 },
|
|
|
98 |
{ OV(681), 600 },
|
|
|
99 |
{ OV(744), 700 },
|
|
|
100 |
{ OV(805), 800 },
|
|
|
101 |
{ OV(862), 900 },
|
|
|
102 |
{ OV(917), 1000 },
|
|
|
103 |
{ OV(968), 1100 }
|
|
|
104 |
};
|