My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

thermistors.h 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  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. #include "../../inc/MarlinConfig.h"
  24. #define THERMISTOR_TABLE_ADC_RESOLUTION 10
  25. #define THERMISTOR_TABLE_SCALE (HAL_ADC_RANGE / _BV(THERMISTOR_TABLE_ADC_RESOLUTION))
  26. #if ENABLED(HAL_ADC_FILTERED)
  27. #define OVERSAMPLENR 1
  28. #else
  29. #define OVERSAMPLENR 16
  30. #endif
  31. #define MAX_RAW_THERMISTOR_VALUE (HAL_ADC_RANGE * (OVERSAMPLENR) - 1)
  32. // Currently Marlin stores all oversampled ADC values as int16_t, make sure the HAL settings do not overflow 15bit
  33. #if MAX_RAW_THERMISTOR_VALUE > ((1 << 15) - 1)
  34. #error "MAX_RAW_THERMISTOR_VALUE is too large for int16_t. Reduce OVERSAMPLENR or HAL_ADC_RESOLUTION."
  35. #endif
  36. #define OV_SCALE(N) (N)
  37. #define OV(N) int16_t(OV_SCALE(N) * (OVERSAMPLENR) * (THERMISTOR_TABLE_SCALE))
  38. #define ANY_THERMISTOR_IS(n) (THERMISTOR_HEATER_0 == n || THERMISTOR_HEATER_1 == n || THERMISTOR_HEATER_2 == n || THERMISTOR_HEATER_3 == n || THERMISTOR_HEATER_4 == n || THERMISTOR_HEATER_5 == n || THERMISTOR_HEATER_6 == n || THERMISTOR_HEATER_7 == n || THERMISTORBED == n || THERMISTORCHAMBER == n || THERMISTORPROBE == n)
  39. // Pt1000 and Pt100 handling
  40. //
  41. // Rt=R0*(1+a*T+b*T*T) [for T>0]
  42. // a=3.9083E-3, b=-5.775E-7
  43. #define PtA 3.9083E-3
  44. #define PtB -5.775E-7
  45. #define PtRt(T,R0) ((R0) * (1.0 + (PtA) * (T) + (PtB) * (T) * (T)))
  46. #define PtAdVal(T,R0,Rup) (short)(1024 / (Rup / PtRt(T, R0) + 1))
  47. #define PtLine(T,R0,Rup) { OV(PtAdVal(T, R0, Rup)), T }
  48. #if ANY_THERMISTOR_IS(1) // beta25 = 4092 K, R25 = 100 kOhm, Pull-up = 4.7 kOhm, "EPCOS"
  49. #include "thermistor_1.h"
  50. #endif
  51. #if ANY_THERMISTOR_IS(2) // 4338 K, R25 = 200 kOhm, Pull-up = 4.7 kOhm, "ATC Semitec 204GT-2"
  52. #include "thermistor_2.h"
  53. #endif
  54. #if ANY_THERMISTOR_IS(3) // beta25 = 4120 K, R25 = 100 kOhm, Pull-up = 4.7 kOhm, "Mendel-parts"
  55. #include "thermistor_3.h"
  56. #endif
  57. #if ANY_THERMISTOR_IS(4) // beta25 = 3950 K, R25 = 10 kOhm, Pull-up = 4.7 kOhm, "Generic"
  58. #include "thermistor_4.h"
  59. #endif
  60. #if ANY_THERMISTOR_IS(5) // beta25 = 4267 K, R25 = 100 kOhm, Pull-up = 4.7 kOhm, "ParCan, ATC 104GT-2"
  61. #include "thermistor_5.h"
  62. #endif
  63. #if ANY_THERMISTOR_IS(501) // 100K Zonestar thermistor
  64. #include "thermistor_501.h"
  65. #endif
  66. #if ANY_THERMISTOR_IS(512) // 100k thermistor in RPW-Ultra hotend, Pull-up = 4.7 kOhm, "unknown model"
  67. #include "thermistor_512.h"
  68. #endif
  69. #if ANY_THERMISTOR_IS(6) // beta25 = 4092 K, R25 = 100 kOhm, Pull-up = 8.2 kOhm, "EPCOS ?"
  70. #include "thermistor_6.h"
  71. #endif
  72. #if ANY_THERMISTOR_IS(7) // beta25 = 3974 K, R25 = 100 kOhm, Pull-up = 4.7 kOhm, "Honeywell 135-104LAG-J01"
  73. #include "thermistor_7.h"
  74. #endif
  75. #if ANY_THERMISTOR_IS(71) // beta25 = 3974 K, R25 = 100 kOhm, Pull-up = 4.7 kOhm, "Honeywell 135-104LAF-J01"
  76. #include "thermistor_71.h"
  77. #endif
  78. #if ANY_THERMISTOR_IS(8) // beta25 = 3950 K, R25 = 100 kOhm, Pull-up = 10 kOhm, "Vishay E3104FHT"
  79. #include "thermistor_8.h"
  80. #endif
  81. #if ANY_THERMISTOR_IS(9) // beta25 = 3960 K, R25 = 100 kOhm, Pull-up = 4.7 kOhm, "GE Sensing AL03006-58.2K-97-G1"
  82. #include "thermistor_9.h"
  83. #endif
  84. #if ANY_THERMISTOR_IS(10) // beta25 = 3960 K, R25 = 100 kOhm, Pull-up = 4.7 kOhm, "RS 198-961"
  85. #include "thermistor_10.h"
  86. #endif
  87. #if ANY_THERMISTOR_IS(11) // beta25 = 3950 K, R25 = 100 kOhm, Pull-up = 4.7 kOhm, "QU-BD silicone bed, QWG-104F-3950"
  88. #include "thermistor_11.h"
  89. #endif
  90. #if ANY_THERMISTOR_IS(13) // beta25 = 4100 K, R25 = 100 kOhm, Pull-up = 4.7 kOhm, "Hisens"
  91. #include "thermistor_13.h"
  92. #endif
  93. #if ANY_THERMISTOR_IS(15) // JGAurora A5 thermistor calibration
  94. #include "thermistor_15.h"
  95. #endif
  96. #if ANY_THERMISTOR_IS(18) // ATC Semitec 204GT-2 (4.7k pullup) Dagoma.Fr - MKS_Base_DKU001327
  97. #include "thermistor_18.h"
  98. #endif
  99. #if ANY_THERMISTOR_IS(20) // Pt100 with INA826 amp on Ultimaker v2.0 electronics
  100. #include "thermistor_20.h"
  101. #endif
  102. #if ANY_THERMISTOR_IS(21) // Pt100 with INA826 amp with 3.3v excitation based on "Pt100 with INA826 amp on Ultimaker v2.0 electronics"
  103. #include "thermistor_21.h"
  104. #endif
  105. #if ANY_THERMISTOR_IS(22) // Thermistor in a Rostock 301 hot end, calibrated with a multimeter
  106. #include "thermistor_22.h"
  107. #endif
  108. #if ANY_THERMISTOR_IS(23) // By AluOne #12622. Formerly 22 above. May need calibration/checking.
  109. #include "thermistor_23.h"
  110. #endif
  111. #if ANY_THERMISTOR_IS(51) // beta25 = 4092 K, R25 = 100 kOhm, Pull-up = 1 kOhm, "EPCOS"
  112. #include "thermistor_51.h"
  113. #endif
  114. #if ANY_THERMISTOR_IS(52) // beta25 = 4338 K, R25 = 200 kOhm, Pull-up = 1 kOhm, "ATC Semitec 204GT-2"
  115. #include "thermistor_52.h"
  116. #endif
  117. #if ANY_THERMISTOR_IS(55) // beta25 = 4267 K, R25 = 100 kOhm, Pull-up = 1 kOhm, "ATC Semitec 104GT-2 (Used on ParCan)"
  118. #include "thermistor_55.h"
  119. #endif
  120. #if ANY_THERMISTOR_IS(60) // beta25 = 3950 K, R25 = 100 kOhm, Pull-up = 4.7 kOhm, "Maker's Tool Works Kapton Bed"
  121. #include "thermistor_60.h"
  122. #endif
  123. #if ANY_THERMISTOR_IS(61) // beta25 = 3950 K, R25 = 100 kOhm, Pull-up = 4.7 kOhm, "Formbot 350°C Thermistor"
  124. #include "thermistor_61.h"
  125. #endif
  126. #if ANY_THERMISTOR_IS(66) // beta25 = 4500 K, R25 = 2.5 MOhm, Pull-up = 4.7 kOhm, "DyzeDesign 500 °C Thermistor"
  127. #include "thermistor_66.h"
  128. #endif
  129. #if ANY_THERMISTOR_IS(67) // R25 = 500 KOhm, beta25 = 3800 K, 4.7 kOhm pull-up, SliceEngineering 450 °C Thermistor
  130. #include "thermistor_67.h"
  131. #endif
  132. #if ANY_THERMISTOR_IS(12) // beta25 = 4700 K, R25 = 100 kOhm, Pull-up = 4.7 kOhm, "Personal calibration for Makibox hot bed"
  133. #include "thermistor_12.h"
  134. #endif
  135. #if ANY_THERMISTOR_IS(70) // beta25 = 4100 K, R25 = 100 kOhm, Pull-up = 4.7 kOhm, "Hephestos 2, bqh2 stock thermistor"
  136. #include "thermistor_70.h"
  137. #endif
  138. #if ANY_THERMISTOR_IS(75) // beta25 = 4100 K, R25 = 100 kOhm, Pull-up = 4.7 kOhm, "MGB18-104F39050L32 thermistor"
  139. #include "thermistor_75.h"
  140. #endif
  141. #if ANY_THERMISTOR_IS(99) // 100k bed thermistor with a 10K pull-up resistor (on some Wanhao i3 models)
  142. #include "thermistor_99.h"
  143. #endif
  144. #if ANY_THERMISTOR_IS(110) // Pt100 with 1k0 pullup
  145. #include "thermistor_110.h"
  146. #endif
  147. #if ANY_THERMISTOR_IS(147) // Pt100 with 4k7 pullup
  148. #include "thermistor_147.h"
  149. #endif
  150. #if ANY_THERMISTOR_IS(201) // Pt100 with LMV324 Overlord
  151. #include "thermistor_201.h"
  152. #endif
  153. #if ANY_THERMISTOR_IS(202) // 200K thermistor in Copymaker3D hotend
  154. #include "thermistor_202.h"
  155. #endif
  156. #if ANY_THERMISTOR_IS(331) // Like table 1, but with 3V3 as input voltage for MEGA
  157. #include "thermistor_331.h"
  158. #endif
  159. #if ANY_THERMISTOR_IS(332) // Like table 1, but with 3V3 as input voltage for DUE
  160. #include "thermistor_332.h"
  161. #endif
  162. #if ANY_THERMISTOR_IS(666) // beta25 = UNK, R25 = 200K, Pull-up = 10 kOhm, "Unidentified 200K NTC thermistor (Einstart S)"
  163. #include "thermistor_666.h"
  164. #endif
  165. #if ANY_THERMISTOR_IS(1010) // Pt1000 with 1k0 pullup
  166. #include "thermistor_1010.h"
  167. #endif
  168. #if ANY_THERMISTOR_IS(1047) // Pt1000 with 4k7 pullup
  169. #include "thermistor_1047.h"
  170. #endif
  171. #if ANY_THERMISTOR_IS(998) // User-defined table 1
  172. #include "thermistor_998.h"
  173. #endif
  174. #if ANY_THERMISTOR_IS(999) // User-defined table 2
  175. #include "thermistor_999.h"
  176. #endif
  177. #if ANY_THERMISTOR_IS(1000) // Custom
  178. const short temptable_1000[][2] PROGMEM = { { 0, 0 } };
  179. #endif
  180. #define _TT_NAME(_N) temptable_ ## _N
  181. #define TT_NAME(_N) _TT_NAME(_N)
  182. #if THERMISTOR_HEATER_0
  183. #define HEATER_0_TEMPTABLE TT_NAME(THERMISTOR_HEATER_0)
  184. #define HEATER_0_TEMPTABLE_LEN COUNT(HEATER_0_TEMPTABLE)
  185. #elif defined(HEATER_0_USES_THERMISTOR)
  186. #error "No heater 0 thermistor table specified"
  187. #else
  188. #define HEATER_0_TEMPTABLE nullptr
  189. #define HEATER_0_TEMPTABLE_LEN 0
  190. #endif
  191. #if THERMISTOR_HEATER_1
  192. #define HEATER_1_TEMPTABLE TT_NAME(THERMISTOR_HEATER_1)
  193. #define HEATER_1_TEMPTABLE_LEN COUNT(HEATER_1_TEMPTABLE)
  194. #elif defined(HEATER_1_USES_THERMISTOR)
  195. #error "No heater 1 thermistor table specified"
  196. #else
  197. #define HEATER_1_TEMPTABLE nullptr
  198. #define HEATER_1_TEMPTABLE_LEN 0
  199. #endif
  200. #if THERMISTOR_HEATER_2
  201. #define HEATER_2_TEMPTABLE TT_NAME(THERMISTOR_HEATER_2)
  202. #define HEATER_2_TEMPTABLE_LEN COUNT(HEATER_2_TEMPTABLE)
  203. #elif defined(HEATER_2_USES_THERMISTOR)
  204. #error "No heater 2 thermistor table specified"
  205. #else
  206. #define HEATER_2_TEMPTABLE nullptr
  207. #define HEATER_2_TEMPTABLE_LEN 0
  208. #endif
  209. #if THERMISTOR_HEATER_3
  210. #define HEATER_3_TEMPTABLE TT_NAME(THERMISTOR_HEATER_3)
  211. #define HEATER_3_TEMPTABLE_LEN COUNT(HEATER_3_TEMPTABLE)
  212. #elif defined(HEATER_3_USES_THERMISTOR)
  213. #error "No heater 3 thermistor table specified"
  214. #else
  215. #define HEATER_3_TEMPTABLE nullptr
  216. #define HEATER_3_TEMPTABLE_LEN 0
  217. #endif
  218. #if THERMISTOR_HEATER_4
  219. #define HEATER_4_TEMPTABLE TT_NAME(THERMISTOR_HEATER_4)
  220. #define HEATER_4_TEMPTABLE_LEN COUNT(HEATER_4_TEMPTABLE)
  221. #elif defined(HEATER_4_USES_THERMISTOR)
  222. #error "No heater 4 thermistor table specified"
  223. #else
  224. #define HEATER_4_TEMPTABLE nullptr
  225. #define HEATER_4_TEMPTABLE_LEN 0
  226. #endif
  227. #if THERMISTOR_HEATER_5
  228. #define HEATER_5_TEMPTABLE TT_NAME(THERMISTOR_HEATER_5)
  229. #define HEATER_5_TEMPTABLE_LEN COUNT(HEATER_5_TEMPTABLE)
  230. #elif defined(HEATER_5_USES_THERMISTOR)
  231. #error "No heater 5 thermistor table specified"
  232. #else
  233. #define HEATER_5_TEMPTABLE nullptr
  234. #define HEATER_5_TEMPTABLE_LEN 0
  235. #endif
  236. #if THERMISTOR_HEATER_6
  237. #define HEATER_6_TEMPTABLE TT_NAME(THERMISTOR_HEATER_6)
  238. #define HEATER_6_TEMPTABLE_LEN COUNT(HEATER_6_TEMPTABLE)
  239. #elif defined(HEATER_6_USES_THERMISTOR)
  240. #error "No heater 6 thermistor table specified"
  241. #else
  242. #define HEATER_6_TEMPTABLE nullptr
  243. #define HEATER_6_TEMPTABLE_LEN 0
  244. #endif
  245. #if THERMISTOR_HEATER_7
  246. #define HEATER_7_TEMPTABLE TT_NAME(THERMISTOR_HEATER_7)
  247. #define HEATER_7_TEMPTABLE_LEN COUNT(HEATER_7_TEMPTABLE)
  248. #elif defined(HEATER_7_USES_THERMISTOR)
  249. #error "No heater 7 thermistor table specified"
  250. #else
  251. #define HEATER_7_TEMPTABLE nullptr
  252. #define HEATER_7_TEMPTABLE_LEN 0
  253. #endif
  254. #ifdef THERMISTORBED
  255. #define BED_TEMPTABLE TT_NAME(THERMISTORBED)
  256. #define BED_TEMPTABLE_LEN COUNT(BED_TEMPTABLE)
  257. #elif defined(HEATER_BED_USES_THERMISTOR)
  258. #error "No bed thermistor table specified"
  259. #else
  260. #define BED_TEMPTABLE_LEN 0
  261. #endif
  262. #ifdef THERMISTORCHAMBER
  263. #define CHAMBER_TEMPTABLE TT_NAME(THERMISTORCHAMBER)
  264. #define CHAMBER_TEMPTABLE_LEN COUNT(CHAMBER_TEMPTABLE)
  265. #elif defined(HEATER_CHAMBER_USES_THERMISTOR)
  266. #error "No chamber thermistor table specified"
  267. #else
  268. #define CHAMBER_TEMPTABLE_LEN 0
  269. #endif
  270. #ifdef THERMISTORPROBE
  271. #define PROBE_TEMPTABLE TT_NAME(THERMISTORPROBE)
  272. #define PROBE_TEMPTABLE_LEN COUNT(PROBE_TEMPTABLE)
  273. #else
  274. #define PROBE_TEMPTABLE_LEN 0
  275. #endif
  276. // The SCAN_THERMISTOR_TABLE macro needs alteration?
  277. static_assert(
  278. HEATER_0_TEMPTABLE_LEN < 256 && HEATER_1_TEMPTABLE_LEN < 256
  279. && HEATER_2_TEMPTABLE_LEN < 256 && HEATER_3_TEMPTABLE_LEN < 256
  280. && HEATER_4_TEMPTABLE_LEN < 256 && HEATER_5_TEMPTABLE_LEN < 256
  281. && HEATER_6_TEMPTABLE_LEN < 258 && HEATER_7_TEMPTABLE_LEN < 258
  282. && BED_TEMPTABLE_LEN < 256 && CHAMBER_TEMPTABLE_LEN < 256
  283. && PROBE_TEMPTABLE_LEN < 256,
  284. "Temperature conversion tables over 255 entries need special consideration."
  285. );
  286. // Set the high and low raw values for the heaters
  287. // For thermistors the highest temperature results in the lowest ADC value
  288. // For thermocouples the highest temperature results in the highest ADC value
  289. #ifndef HEATER_0_RAW_HI_TEMP
  290. #if defined(REVERSE_TEMP_SENSOR_RANGE) || !defined(HEATER_0_USES_THERMISTOR)
  291. #define HEATER_0_RAW_HI_TEMP MAX_RAW_THERMISTOR_VALUE
  292. #define HEATER_0_RAW_LO_TEMP 0
  293. #else
  294. #define HEATER_0_RAW_HI_TEMP 0
  295. #define HEATER_0_RAW_LO_TEMP MAX_RAW_THERMISTOR_VALUE
  296. #endif
  297. #endif
  298. #ifndef HEATER_1_RAW_HI_TEMP
  299. #if defined(REVERSE_TEMP_SENSOR_RANGE) || !defined(HEATER_1_USES_THERMISTOR)
  300. #define HEATER_1_RAW_HI_TEMP MAX_RAW_THERMISTOR_VALUE
  301. #define HEATER_1_RAW_LO_TEMP 0
  302. #else
  303. #define HEATER_1_RAW_HI_TEMP 0
  304. #define HEATER_1_RAW_LO_TEMP MAX_RAW_THERMISTOR_VALUE
  305. #endif
  306. #endif
  307. #ifndef HEATER_2_RAW_HI_TEMP
  308. #if defined(REVERSE_TEMP_SENSOR_RANGE) || !defined(HEATER_2_USES_THERMISTOR)
  309. #define HEATER_2_RAW_HI_TEMP MAX_RAW_THERMISTOR_VALUE
  310. #define HEATER_2_RAW_LO_TEMP 0
  311. #else
  312. #define HEATER_2_RAW_HI_TEMP 0
  313. #define HEATER_2_RAW_LO_TEMP MAX_RAW_THERMISTOR_VALUE
  314. #endif
  315. #endif
  316. #ifndef HEATER_3_RAW_HI_TEMP
  317. #if defined(REVERSE_TEMP_SENSOR_RANGE) || !defined(HEATER_3_USES_THERMISTOR)
  318. #define HEATER_3_RAW_HI_TEMP MAX_RAW_THERMISTOR_VALUE
  319. #define HEATER_3_RAW_LO_TEMP 0
  320. #else
  321. #define HEATER_3_RAW_HI_TEMP 0
  322. #define HEATER_3_RAW_LO_TEMP MAX_RAW_THERMISTOR_VALUE
  323. #endif
  324. #endif
  325. #ifndef HEATER_4_RAW_HI_TEMP
  326. #if defined(REVERSE_TEMP_SENSOR_RANGE) || !defined(HEATER_4_USES_THERMISTOR)
  327. #define HEATER_4_RAW_HI_TEMP MAX_RAW_THERMISTOR_VALUE
  328. #define HEATER_4_RAW_LO_TEMP 0
  329. #else
  330. #define HEATER_4_RAW_HI_TEMP 0
  331. #define HEATER_4_RAW_LO_TEMP MAX_RAW_THERMISTOR_VALUE
  332. #endif
  333. #endif
  334. #ifndef HEATER_5_RAW_HI_TEMP
  335. #if defined(REVERSE_TEMP_SENSOR_RANGE) || !defined(HEATER_5_USES_THERMISTOR)
  336. #define HEATER_5_RAW_HI_TEMP MAX_RAW_THERMISTOR_VALUE
  337. #define HEATER_5_RAW_LO_TEMP 0
  338. #else
  339. #define HEATER_5_RAW_HI_TEMP 0
  340. #define HEATER_5_RAW_LO_TEMP MAX_RAW_THERMISTOR_VALUE
  341. #endif
  342. #endif
  343. #ifndef HEATER_6_RAW_HI_TEMP
  344. #if defined(REVERSE_TEMP_SENSOR_RANGE) || !defined(HEATER_6_USES_THERMISTOR)
  345. #define HEATER_6_RAW_HI_TEMP MAX_RAW_THERMISTOR_VALUE
  346. #define HEATER_6_RAW_LO_TEMP 0
  347. #else
  348. #define HEATER_6_RAW_HI_TEMP 0
  349. #define HEATER_6_RAW_LO_TEMP MAX_RAW_THERMISTOR_VALUE
  350. #endif
  351. #endif
  352. #ifndef HEATER_7_RAW_HI_TEMP
  353. #if defined(REVERSE_TEMP_SENSOR_RANGE) || !defined(HEATER_7_USES_THERMISTOR)
  354. #define HEATER_7_RAW_HI_TEMP MAX_RAW_THERMISTOR_VALUE
  355. #define HEATER_7_RAW_LO_TEMP 0
  356. #else
  357. #define HEATER_7_RAW_HI_TEMP 0
  358. #define HEATER_7_RAW_LO_TEMP MAX_RAW_THERMISTOR_VALUE
  359. #endif
  360. #endif
  361. #ifndef HEATER_BED_RAW_HI_TEMP
  362. #if defined(REVERSE_TEMP_SENSOR_RANGE) || !defined(HEATER_BED_USES_THERMISTOR)
  363. #define HEATER_BED_RAW_HI_TEMP MAX_RAW_THERMISTOR_VALUE
  364. #define HEATER_BED_RAW_LO_TEMP 0
  365. #else
  366. #define HEATER_BED_RAW_HI_TEMP 0
  367. #define HEATER_BED_RAW_LO_TEMP MAX_RAW_THERMISTOR_VALUE
  368. #endif
  369. #endif
  370. #ifndef HEATER_CHAMBER_RAW_HI_TEMP
  371. #if defined(REVERSE_TEMP_SENSOR_RANGE) || !defined(HEATER_CHAMBER_USES_THERMISTOR)
  372. #define HEATER_CHAMBER_RAW_HI_TEMP MAX_RAW_THERMISTOR_VALUE
  373. #define HEATER_CHAMBER_RAW_LO_TEMP 0
  374. #else
  375. #define HEATER_CHAMBER_RAW_HI_TEMP 0
  376. #define HEATER_CHAMBER_RAW_LO_TEMP MAX_RAW_THERMISTOR_VALUE
  377. #endif
  378. #endif
  379. #undef REVERSE_TEMP_SENSOR_RANGE