My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

thermistortables.h 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727
  1. #ifndef THERMISTORTABLES_H_
  2. #define THERMISTORTABLES_H_
  3. #include "Marlin.h"
  4. #define OVERSAMPLENR 16
  5. #if (THERMISTORHEATER_0 == 1) || (THERMISTORHEATER_1 == 1) || (THERMISTORHEATER_2 == 1) || (THERMISTORBED == 1) //100k bed thermistor
  6. const short temptable_1[][2] PROGMEM = {
  7. { 23*OVERSAMPLENR , 300 },
  8. { 25*OVERSAMPLENR , 295 },
  9. { 27*OVERSAMPLENR , 290 },
  10. { 28*OVERSAMPLENR , 285 },
  11. { 31*OVERSAMPLENR , 280 },
  12. { 33*OVERSAMPLENR , 275 },
  13. { 35*OVERSAMPLENR , 270 },
  14. { 38*OVERSAMPLENR , 265 },
  15. { 41*OVERSAMPLENR , 260 },
  16. { 44*OVERSAMPLENR , 255 },
  17. { 48*OVERSAMPLENR , 250 },
  18. { 52*OVERSAMPLENR , 245 },
  19. { 56*OVERSAMPLENR , 240 },
  20. { 61*OVERSAMPLENR , 235 },
  21. { 66*OVERSAMPLENR , 230 },
  22. { 71*OVERSAMPLENR , 225 },
  23. { 78*OVERSAMPLENR , 220 },
  24. { 84*OVERSAMPLENR , 215 },
  25. { 92*OVERSAMPLENR , 210 },
  26. { 100*OVERSAMPLENR , 205 },
  27. { 109*OVERSAMPLENR , 200 },
  28. { 120*OVERSAMPLENR , 195 },
  29. { 131*OVERSAMPLENR , 190 },
  30. { 143*OVERSAMPLENR , 185 },
  31. { 156*OVERSAMPLENR , 180 },
  32. { 171*OVERSAMPLENR , 175 },
  33. { 187*OVERSAMPLENR , 170 },
  34. { 205*OVERSAMPLENR , 165 },
  35. { 224*OVERSAMPLENR , 160 },
  36. { 245*OVERSAMPLENR , 155 },
  37. { 268*OVERSAMPLENR , 150 },
  38. { 293*OVERSAMPLENR , 145 },
  39. { 320*OVERSAMPLENR , 140 },
  40. { 348*OVERSAMPLENR , 135 },
  41. { 379*OVERSAMPLENR , 130 },
  42. { 411*OVERSAMPLENR , 125 },
  43. { 445*OVERSAMPLENR , 120 },
  44. { 480*OVERSAMPLENR , 115 },
  45. { 516*OVERSAMPLENR , 110 },
  46. { 553*OVERSAMPLENR , 105 },
  47. { 591*OVERSAMPLENR , 100 },
  48. { 628*OVERSAMPLENR , 95 },
  49. { 665*OVERSAMPLENR , 90 },
  50. { 702*OVERSAMPLENR , 85 },
  51. { 737*OVERSAMPLENR , 80 },
  52. { 770*OVERSAMPLENR , 75 },
  53. { 801*OVERSAMPLENR , 70 },
  54. { 830*OVERSAMPLENR , 65 },
  55. { 857*OVERSAMPLENR , 60 },
  56. { 881*OVERSAMPLENR , 55 },
  57. { 903*OVERSAMPLENR , 50 },
  58. { 922*OVERSAMPLENR , 45 },
  59. { 939*OVERSAMPLENR , 40 },
  60. { 954*OVERSAMPLENR , 35 },
  61. { 966*OVERSAMPLENR , 30 },
  62. { 977*OVERSAMPLENR , 25 },
  63. { 985*OVERSAMPLENR , 20 },
  64. { 993*OVERSAMPLENR , 15 },
  65. { 999*OVERSAMPLENR , 10 },
  66. { 1004*OVERSAMPLENR , 5 },
  67. { 1008*OVERSAMPLENR , 0 } //safety
  68. };
  69. #endif
  70. #if (THERMISTORHEATER_0 == 2) || (THERMISTORHEATER_1 == 2) || (THERMISTORHEATER_2 == 2) || (THERMISTORBED == 2) //200k bed thermistor
  71. const short temptable_2[][2] PROGMEM = {
  72. //200k ATC Semitec 204GT-2
  73. //Verified by linagee. Source: http://shop.arcol.hu/static/datasheets/thermistors.pdf
  74. // Calculated using 4.7kohm pullup, voltage divider math, and manufacturer provided temp/resistance
  75. {1*OVERSAMPLENR, 848},
  76. {30*OVERSAMPLENR, 300}, //top rating 300C
  77. {34*OVERSAMPLENR, 290},
  78. {39*OVERSAMPLENR, 280},
  79. {46*OVERSAMPLENR, 270},
  80. {53*OVERSAMPLENR, 260},
  81. {63*OVERSAMPLENR, 250},
  82. {74*OVERSAMPLENR, 240},
  83. {87*OVERSAMPLENR, 230},
  84. {104*OVERSAMPLENR, 220},
  85. {124*OVERSAMPLENR, 210},
  86. {148*OVERSAMPLENR, 200},
  87. {176*OVERSAMPLENR, 190},
  88. {211*OVERSAMPLENR, 180},
  89. {252*OVERSAMPLENR, 170},
  90. {301*OVERSAMPLENR, 160},
  91. {357*OVERSAMPLENR, 150},
  92. {420*OVERSAMPLENR, 140},
  93. {489*OVERSAMPLENR, 130},
  94. {562*OVERSAMPLENR, 120},
  95. {636*OVERSAMPLENR, 110},
  96. {708*OVERSAMPLENR, 100},
  97. {775*OVERSAMPLENR, 90},
  98. {835*OVERSAMPLENR, 80},
  99. {884*OVERSAMPLENR, 70},
  100. {924*OVERSAMPLENR, 60},
  101. {955*OVERSAMPLENR, 50},
  102. {977*OVERSAMPLENR, 40},
  103. {993*OVERSAMPLENR, 30},
  104. {1004*OVERSAMPLENR, 20},
  105. {1012*OVERSAMPLENR, 10},
  106. {1016*OVERSAMPLENR, 0},
  107. };
  108. #endif
  109. #if (THERMISTORHEATER_0 == 3) || (THERMISTORHEATER_1 == 3) || (THERMISTORHEATER_2 == 3) || (THERMISTORBED == 3) //mendel-parts
  110. const short temptable_3[][2] PROGMEM = {
  111. {1*OVERSAMPLENR,864},
  112. {21*OVERSAMPLENR,300},
  113. {25*OVERSAMPLENR,290},
  114. {29*OVERSAMPLENR,280},
  115. {33*OVERSAMPLENR,270},
  116. {39*OVERSAMPLENR,260},
  117. {46*OVERSAMPLENR,250},
  118. {54*OVERSAMPLENR,240},
  119. {64*OVERSAMPLENR,230},
  120. {75*OVERSAMPLENR,220},
  121. {90*OVERSAMPLENR,210},
  122. {107*OVERSAMPLENR,200},
  123. {128*OVERSAMPLENR,190},
  124. {154*OVERSAMPLENR,180},
  125. {184*OVERSAMPLENR,170},
  126. {221*OVERSAMPLENR,160},
  127. {265*OVERSAMPLENR,150},
  128. {316*OVERSAMPLENR,140},
  129. {375*OVERSAMPLENR,130},
  130. {441*OVERSAMPLENR,120},
  131. {513*OVERSAMPLENR,110},
  132. {588*OVERSAMPLENR,100},
  133. {734*OVERSAMPLENR,80},
  134. {856*OVERSAMPLENR,60},
  135. {938*OVERSAMPLENR,40},
  136. {986*OVERSAMPLENR,20},
  137. {1008*OVERSAMPLENR,0},
  138. {1018*OVERSAMPLENR,-20}
  139. };
  140. #endif
  141. #if (THERMISTORHEATER_0 == 4) || (THERMISTORHEATER_1 == 4) || (THERMISTORHEATER_2 == 4) || (THERMISTORBED == 4) //10k thermistor
  142. const short temptable_4[][2] PROGMEM = {
  143. {1*OVERSAMPLENR, 430},
  144. {54*OVERSAMPLENR, 137},
  145. {107*OVERSAMPLENR, 107},
  146. {160*OVERSAMPLENR, 91},
  147. {213*OVERSAMPLENR, 80},
  148. {266*OVERSAMPLENR, 71},
  149. {319*OVERSAMPLENR, 64},
  150. {372*OVERSAMPLENR, 57},
  151. {425*OVERSAMPLENR, 51},
  152. {478*OVERSAMPLENR, 46},
  153. {531*OVERSAMPLENR, 41},
  154. {584*OVERSAMPLENR, 35},
  155. {637*OVERSAMPLENR, 30},
  156. {690*OVERSAMPLENR, 25},
  157. {743*OVERSAMPLENR, 20},
  158. {796*OVERSAMPLENR, 14},
  159. {849*OVERSAMPLENR, 7},
  160. {902*OVERSAMPLENR, 0},
  161. {955*OVERSAMPLENR, -11},
  162. {1008*OVERSAMPLENR, -35}
  163. };
  164. #endif
  165. #if (THERMISTORHEATER_0 == 5) || (THERMISTORHEATER_1 == 5) || (THERMISTORHEATER_2 == 5) || (THERMISTORBED == 5) //100k ParCan thermistor (104GT-2)
  166. const short temptable_5[][2] PROGMEM = {
  167. // ATC Semitec 104GT-2 (Used in ParCan)
  168. // Verified by linagee. Source: http://shop.arcol.hu/static/datasheets/thermistors.pdf
  169. // Calculated using 4.7kohm pullup, voltage divider math, and manufacturer provided temp/resistance
  170. {1*OVERSAMPLENR, 713},
  171. {17*OVERSAMPLENR, 300}, //top rating 300C
  172. {20*OVERSAMPLENR, 290},
  173. {23*OVERSAMPLENR, 280},
  174. {27*OVERSAMPLENR, 270},
  175. {31*OVERSAMPLENR, 260},
  176. {37*OVERSAMPLENR, 250},
  177. {43*OVERSAMPLENR, 240},
  178. {51*OVERSAMPLENR, 230},
  179. {61*OVERSAMPLENR, 220},
  180. {73*OVERSAMPLENR, 210},
  181. {87*OVERSAMPLENR, 200},
  182. {106*OVERSAMPLENR, 190},
  183. {128*OVERSAMPLENR, 180},
  184. {155*OVERSAMPLENR, 170},
  185. {189*OVERSAMPLENR, 160},
  186. {230*OVERSAMPLENR, 150},
  187. {278*OVERSAMPLENR, 140},
  188. {336*OVERSAMPLENR, 130},
  189. {402*OVERSAMPLENR, 120},
  190. {476*OVERSAMPLENR, 110},
  191. {554*OVERSAMPLENR, 100},
  192. {635*OVERSAMPLENR, 90},
  193. {713*OVERSAMPLENR, 80},
  194. {784*OVERSAMPLENR, 70},
  195. {846*OVERSAMPLENR, 60},
  196. {897*OVERSAMPLENR, 50},
  197. {937*OVERSAMPLENR, 40},
  198. {966*OVERSAMPLENR, 30},
  199. {986*OVERSAMPLENR, 20},
  200. {1000*OVERSAMPLENR, 10},
  201. {1010*OVERSAMPLENR, 0}
  202. };
  203. #endif
  204. #if (THERMISTORHEATER_0 == 6) || (THERMISTORHEATER_1 == 6) || (THERMISTORHEATER_2 == 6) || (THERMISTORBED == 6) // 100k Epcos thermistor
  205. const short temptable_6[][2] PROGMEM = {
  206. {1*OVERSAMPLENR, 350},
  207. {28*OVERSAMPLENR, 250}, //top rating 250C
  208. {31*OVERSAMPLENR, 245},
  209. {35*OVERSAMPLENR, 240},
  210. {39*OVERSAMPLENR, 235},
  211. {42*OVERSAMPLENR, 230},
  212. {44*OVERSAMPLENR, 225},
  213. {49*OVERSAMPLENR, 220},
  214. {53*OVERSAMPLENR, 215},
  215. {62*OVERSAMPLENR, 210},
  216. {71*OVERSAMPLENR, 205}, //fitted graphically
  217. {78*OVERSAMPLENR, 200}, //fitted graphically
  218. {94*OVERSAMPLENR, 190},
  219. {102*OVERSAMPLENR, 185},
  220. {116*OVERSAMPLENR, 170},
  221. {143*OVERSAMPLENR, 160},
  222. {183*OVERSAMPLENR, 150},
  223. {223*OVERSAMPLENR, 140},
  224. {270*OVERSAMPLENR, 130},
  225. {318*OVERSAMPLENR, 120},
  226. {383*OVERSAMPLENR, 110},
  227. {413*OVERSAMPLENR, 105},
  228. {439*OVERSAMPLENR, 100},
  229. {484*OVERSAMPLENR, 95},
  230. {513*OVERSAMPLENR, 90},
  231. {607*OVERSAMPLENR, 80},
  232. {664*OVERSAMPLENR, 70},
  233. {781*OVERSAMPLENR, 60},
  234. {810*OVERSAMPLENR, 55},
  235. {849*OVERSAMPLENR, 50},
  236. {914*OVERSAMPLENR, 45},
  237. {914*OVERSAMPLENR, 40},
  238. {935*OVERSAMPLENR, 35},
  239. {954*OVERSAMPLENR, 30},
  240. {970*OVERSAMPLENR, 25},
  241. {978*OVERSAMPLENR, 22},
  242. {1008*OVERSAMPLENR, 3},
  243. {1023*OVERSAMPLENR, 0} //to allow internal 0 degrees C
  244. };
  245. #endif
  246. #if (THERMISTORHEATER_0 == 7) || (THERMISTORHEATER_1 == 7) || (THERMISTORHEATER_2 == 7) || (THERMISTORBED == 7) // 100k Honeywell 135-104LAG-J01
  247. const short temptable_7[][2] PROGMEM = {
  248. {1*OVERSAMPLENR, 500},
  249. {46*OVERSAMPLENR, 270}, //top rating 300C
  250. {50*OVERSAMPLENR, 265},
  251. {54*OVERSAMPLENR, 260},
  252. {58*OVERSAMPLENR, 255},
  253. {62*OVERSAMPLENR, 250},
  254. {67*OVERSAMPLENR, 245},
  255. {72*OVERSAMPLENR, 240},
  256. {79*OVERSAMPLENR, 235},
  257. {85*OVERSAMPLENR, 230},
  258. {91*OVERSAMPLENR, 225},
  259. {99*OVERSAMPLENR, 220},
  260. {107*OVERSAMPLENR, 215},
  261. {116*OVERSAMPLENR, 210},
  262. {126*OVERSAMPLENR, 205},
  263. {136*OVERSAMPLENR, 200},
  264. {149*OVERSAMPLENR, 195},
  265. {160*OVERSAMPLENR, 190},
  266. {175*OVERSAMPLENR, 185},
  267. {191*OVERSAMPLENR, 180},
  268. {209*OVERSAMPLENR, 175},
  269. {224*OVERSAMPLENR, 170},
  270. {246*OVERSAMPLENR, 165},
  271. {267*OVERSAMPLENR, 160},
  272. {293*OVERSAMPLENR, 155},
  273. {316*OVERSAMPLENR, 150},
  274. {340*OVERSAMPLENR, 145},
  275. {364*OVERSAMPLENR, 140},
  276. {396*OVERSAMPLENR, 135},
  277. {425*OVERSAMPLENR, 130},
  278. {460*OVERSAMPLENR, 125},
  279. {489*OVERSAMPLENR, 120},
  280. {526*OVERSAMPLENR, 115},
  281. {558*OVERSAMPLENR, 110},
  282. {591*OVERSAMPLENR, 105},
  283. {628*OVERSAMPLENR, 100},
  284. {660*OVERSAMPLENR, 95},
  285. {696*OVERSAMPLENR, 90},
  286. {733*OVERSAMPLENR, 85},
  287. {761*OVERSAMPLENR, 80},
  288. {794*OVERSAMPLENR, 75},
  289. {819*OVERSAMPLENR, 70},
  290. {847*OVERSAMPLENR, 65},
  291. {870*OVERSAMPLENR, 60},
  292. {892*OVERSAMPLENR, 55},
  293. {911*OVERSAMPLENR, 50},
  294. {929*OVERSAMPLENR, 45},
  295. {944*OVERSAMPLENR, 40},
  296. {959*OVERSAMPLENR, 35},
  297. {971*OVERSAMPLENR, 30},
  298. {981*OVERSAMPLENR, 25},
  299. {989*OVERSAMPLENR, 20},
  300. {994*OVERSAMPLENR, 15},
  301. {1001*OVERSAMPLENR, 10},
  302. {1005*OVERSAMPLENR, 5},
  303. {1023*OVERSAMPLENR, 0} //to allow internal 0 degrees C
  304. };
  305. #endif
  306. #if (THERMISTORHEATER_0 == 8) || (THERMISTORHEATER_1 == 8) || (THERMISTORHEATER_2 == 8) || (THERMISTORBED == 8)
  307. // 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup)
  308. const short temptable_8[][2] PROGMEM = {
  309. {1*OVERSAMPLENR, 704},
  310. {54*OVERSAMPLENR, 216},
  311. {107*OVERSAMPLENR, 175},
  312. {160*OVERSAMPLENR, 152},
  313. {213*OVERSAMPLENR, 137},
  314. {266*OVERSAMPLENR, 125},
  315. {319*OVERSAMPLENR, 115},
  316. {372*OVERSAMPLENR, 106},
  317. {425*OVERSAMPLENR, 99},
  318. {478*OVERSAMPLENR, 91},
  319. {531*OVERSAMPLENR, 85},
  320. {584*OVERSAMPLENR, 78},
  321. {637*OVERSAMPLENR, 71},
  322. {690*OVERSAMPLENR, 65},
  323. {743*OVERSAMPLENR, 58},
  324. {796*OVERSAMPLENR, 50},
  325. {849*OVERSAMPLENR, 42},
  326. {902*OVERSAMPLENR, 31},
  327. {955*OVERSAMPLENR, 17},
  328. {1008*OVERSAMPLENR, 0}
  329. };
  330. #endif
  331. #if (THERMISTORHEATER_0 == 9) || (THERMISTORHEATER_1 == 9) || (THERMISTORHEATER_2 == 9) || (THERMISTORBED == 9)
  332. // 100k GE Sensing AL03006-58.2K-97-G1 (4.7k pullup)
  333. const short temptable_9[][2] PROGMEM = {
  334. {1*OVERSAMPLENR, 936},
  335. {36*OVERSAMPLENR, 300},
  336. {71*OVERSAMPLENR, 246},
  337. {106*OVERSAMPLENR, 218},
  338. {141*OVERSAMPLENR, 199},
  339. {176*OVERSAMPLENR, 185},
  340. {211*OVERSAMPLENR, 173},
  341. {246*OVERSAMPLENR, 163},
  342. {281*OVERSAMPLENR, 155},
  343. {316*OVERSAMPLENR, 147},
  344. {351*OVERSAMPLENR, 140},
  345. {386*OVERSAMPLENR, 134},
  346. {421*OVERSAMPLENR, 128},
  347. {456*OVERSAMPLENR, 122},
  348. {491*OVERSAMPLENR, 117},
  349. {526*OVERSAMPLENR, 112},
  350. {561*OVERSAMPLENR, 107},
  351. {596*OVERSAMPLENR, 102},
  352. {631*OVERSAMPLENR, 97},
  353. {666*OVERSAMPLENR, 92},
  354. {701*OVERSAMPLENR, 87},
  355. {736*OVERSAMPLENR, 81},
  356. {771*OVERSAMPLENR, 76},
  357. {806*OVERSAMPLENR, 70},
  358. {841*OVERSAMPLENR, 63},
  359. {876*OVERSAMPLENR, 56},
  360. {911*OVERSAMPLENR, 48},
  361. {946*OVERSAMPLENR, 38},
  362. {981*OVERSAMPLENR, 23},
  363. {1005*OVERSAMPLENR, 5},
  364. {1016*OVERSAMPLENR, 0}
  365. };
  366. #endif
  367. #if (THERMISTORHEATER_0 == 10) || (THERMISTORHEATER_1 == 10) || (THERMISTORHEATER_2 == 10) || (THERMISTORBED == 10)
  368. // 100k RS thermistor 198-961 (4.7k pullup)
  369. const short temptable_10[][2] PROGMEM = {
  370. {1*OVERSAMPLENR, 929},
  371. {36*OVERSAMPLENR, 299},
  372. {71*OVERSAMPLENR, 246},
  373. {106*OVERSAMPLENR, 217},
  374. {141*OVERSAMPLENR, 198},
  375. {176*OVERSAMPLENR, 184},
  376. {211*OVERSAMPLENR, 173},
  377. {246*OVERSAMPLENR, 163},
  378. {281*OVERSAMPLENR, 154},
  379. {316*OVERSAMPLENR, 147},
  380. {351*OVERSAMPLENR, 140},
  381. {386*OVERSAMPLENR, 134},
  382. {421*OVERSAMPLENR, 128},
  383. {456*OVERSAMPLENR, 122},
  384. {491*OVERSAMPLENR, 117},
  385. {526*OVERSAMPLENR, 112},
  386. {561*OVERSAMPLENR, 107},
  387. {596*OVERSAMPLENR, 102},
  388. {631*OVERSAMPLENR, 97},
  389. {666*OVERSAMPLENR, 91},
  390. {701*OVERSAMPLENR, 86},
  391. {736*OVERSAMPLENR, 81},
  392. {771*OVERSAMPLENR, 76},
  393. {806*OVERSAMPLENR, 70},
  394. {841*OVERSAMPLENR, 63},
  395. {876*OVERSAMPLENR, 56},
  396. {911*OVERSAMPLENR, 48},
  397. {946*OVERSAMPLENR, 38},
  398. {981*OVERSAMPLENR, 23},
  399. {1005*OVERSAMPLENR, 5},
  400. {1016*OVERSAMPLENR, 0}
  401. };
  402. #endif
  403. #if (THERMISTORHEATER_0 == 51) || (THERMISTORHEATER_1 == 51) || (THERMISTORHEATER_2 == 51) || (THERMISTORBED == 51)
  404. // 100k EPCOS (WITH 1kohm RESISTOR FOR PULLUP, R9 ON SANGUINOLOLU! NOT FOR 4.7kohm PULLUP! THIS IS NOT NORMAL!)
  405. // Verified by linagee.
  406. // Calculated using 1kohm pullup, voltage divider math, and manufacturer provided temp/resistance
  407. // Advantage: Twice the resolution and better linearity from 150C to 200C
  408. const short temptable_51[][2] PROGMEM = {
  409. {1*OVERSAMPLENR, 350},
  410. {190*OVERSAMPLENR, 250}, //top rating 250C
  411. {203*OVERSAMPLENR, 245},
  412. {217*OVERSAMPLENR, 240},
  413. {232*OVERSAMPLENR, 235},
  414. {248*OVERSAMPLENR, 230},
  415. {265*OVERSAMPLENR, 225},
  416. {283*OVERSAMPLENR, 220},
  417. {302*OVERSAMPLENR, 215},
  418. {322*OVERSAMPLENR, 210},
  419. {344*OVERSAMPLENR, 205},
  420. {366*OVERSAMPLENR, 200},
  421. {390*OVERSAMPLENR, 195},
  422. {415*OVERSAMPLENR, 190},
  423. {440*OVERSAMPLENR, 185},
  424. {467*OVERSAMPLENR, 180},
  425. {494*OVERSAMPLENR, 175},
  426. {522*OVERSAMPLENR, 170},
  427. {551*OVERSAMPLENR, 165},
  428. {580*OVERSAMPLENR, 160},
  429. {609*OVERSAMPLENR, 155},
  430. {638*OVERSAMPLENR, 150},
  431. {666*OVERSAMPLENR, 145},
  432. {695*OVERSAMPLENR, 140},
  433. {722*OVERSAMPLENR, 135},
  434. {749*OVERSAMPLENR, 130},
  435. {775*OVERSAMPLENR, 125},
  436. {800*OVERSAMPLENR, 120},
  437. {823*OVERSAMPLENR, 115},
  438. {845*OVERSAMPLENR, 110},
  439. {865*OVERSAMPLENR, 105},
  440. {884*OVERSAMPLENR, 100},
  441. {901*OVERSAMPLENR, 95},
  442. {917*OVERSAMPLENR, 90},
  443. {932*OVERSAMPLENR, 85},
  444. {944*OVERSAMPLENR, 80},
  445. {956*OVERSAMPLENR, 75},
  446. {966*OVERSAMPLENR, 70},
  447. {975*OVERSAMPLENR, 65},
  448. {982*OVERSAMPLENR, 60},
  449. {989*OVERSAMPLENR, 55},
  450. {995*OVERSAMPLENR, 50},
  451. {1000*OVERSAMPLENR, 45},
  452. {1004*OVERSAMPLENR, 40},
  453. {1007*OVERSAMPLENR, 35},
  454. {1010*OVERSAMPLENR, 30},
  455. {1013*OVERSAMPLENR, 25},
  456. {1015*OVERSAMPLENR, 20},
  457. {1017*OVERSAMPLENR, 15},
  458. {1018*OVERSAMPLENR, 10},
  459. {1019*OVERSAMPLENR, 5},
  460. {1020*OVERSAMPLENR, 0},
  461. {1021*OVERSAMPLENR, -5}
  462. };
  463. #endif
  464. #if (THERMISTORHEATER_0 == 52) || (THERMISTORHEATER_1 == 52) || (THERMISTORHEATER_2 == 52) || (THERMISTORBED == 52)
  465. // 200k ATC Semitec 204GT-2 (WITH 1kohm RESISTOR FOR PULLUP, R9 ON SANGUINOLOLU! NOT FOR 4.7kohm PULLUP! THIS IS NOT NORMAL!)
  466. // Verified by linagee. Source: http://shop.arcol.hu/static/datasheets/thermistors.pdf
  467. // Calculated using 1kohm pullup, voltage divider math, and manufacturer provided temp/resistance
  468. // Advantage: More resolution and better linearity from 150C to 200C
  469. const short temptable_52[][2] PROGMEM = {
  470. {1*OVERSAMPLENR, 500},
  471. {125*OVERSAMPLENR, 300}, //top rating 300C
  472. {142*OVERSAMPLENR, 290},
  473. {162*OVERSAMPLENR, 280},
  474. {185*OVERSAMPLENR, 270},
  475. {211*OVERSAMPLENR, 260},
  476. {240*OVERSAMPLENR, 250},
  477. {274*OVERSAMPLENR, 240},
  478. {312*OVERSAMPLENR, 230},
  479. {355*OVERSAMPLENR, 220},
  480. {401*OVERSAMPLENR, 210},
  481. {452*OVERSAMPLENR, 200},
  482. {506*OVERSAMPLENR, 190},
  483. {563*OVERSAMPLENR, 180},
  484. {620*OVERSAMPLENR, 170},
  485. {677*OVERSAMPLENR, 160},
  486. {732*OVERSAMPLENR, 150},
  487. {783*OVERSAMPLENR, 140},
  488. {830*OVERSAMPLENR, 130},
  489. {871*OVERSAMPLENR, 120},
  490. {906*OVERSAMPLENR, 110},
  491. {935*OVERSAMPLENR, 100},
  492. {958*OVERSAMPLENR, 90},
  493. {976*OVERSAMPLENR, 80},
  494. {990*OVERSAMPLENR, 70},
  495. {1000*OVERSAMPLENR, 60},
  496. {1008*OVERSAMPLENR, 50},
  497. {1013*OVERSAMPLENR, 40},
  498. {1017*OVERSAMPLENR, 30},
  499. {1019*OVERSAMPLENR, 20},
  500. {1021*OVERSAMPLENR, 10},
  501. {1022*OVERSAMPLENR, 0}
  502. };
  503. #endif
  504. #if (THERMISTORHEATER_0 == 55) || (THERMISTORHEATER_1 == 55) || (THERMISTORHEATER_2 == 55) || (THERMISTORBED == 55)
  505. // 100k ATC Semitec 104GT-2 (Used on ParCan) (WITH 1kohm RESISTOR FOR PULLUP, R9 ON SANGUINOLOLU! NOT FOR 4.7kohm PULLUP! THIS IS NOT NORMAL!)
  506. // Verified by linagee. Source: http://shop.arcol.hu/static/datasheets/thermistors.pdf
  507. // Calculated using 1kohm pullup, voltage divider math, and manufacturer provided temp/resistance
  508. // Advantage: More resolution and better linearity from 150C to 200C
  509. const short temptable_55[][2] PROGMEM = {
  510. {1*OVERSAMPLENR, 500},
  511. {76*OVERSAMPLENR, 300},
  512. {87*OVERSAMPLENR, 290},
  513. {100*OVERSAMPLENR, 280},
  514. {114*OVERSAMPLENR, 270},
  515. {131*OVERSAMPLENR, 260},
  516. {152*OVERSAMPLENR, 250},
  517. {175*OVERSAMPLENR, 240},
  518. {202*OVERSAMPLENR, 230},
  519. {234*OVERSAMPLENR, 220},
  520. {271*OVERSAMPLENR, 210},
  521. {312*OVERSAMPLENR, 200},
  522. {359*OVERSAMPLENR, 190},
  523. {411*OVERSAMPLENR, 180},
  524. {467*OVERSAMPLENR, 170},
  525. {527*OVERSAMPLENR, 160},
  526. {590*OVERSAMPLENR, 150},
  527. {652*OVERSAMPLENR, 140},
  528. {713*OVERSAMPLENR, 130},
  529. {770*OVERSAMPLENR, 120},
  530. {822*OVERSAMPLENR, 110},
  531. {867*OVERSAMPLENR, 100},
  532. {905*OVERSAMPLENR, 90},
  533. {936*OVERSAMPLENR, 80},
  534. {961*OVERSAMPLENR, 70},
  535. {979*OVERSAMPLENR, 60},
  536. {993*OVERSAMPLENR, 50},
  537. {1003*OVERSAMPLENR, 40},
  538. {1010*OVERSAMPLENR, 30},
  539. {1015*OVERSAMPLENR, 20},
  540. {1018*OVERSAMPLENR, 10},
  541. {1020*OVERSAMPLENR, 0}
  542. };
  543. #endif
  544. #if (THERMISTORHEATER_0 == 60) || (THERMISTORHEATER_1 == 60) || (THERMISTORHEATER_2 == 60) || (THERMISTORBED == 60) // Maker's Tool Works Kapton Bed Thermister
  545. const short temptable_60[][2] PROGMEM = {
  546. {51*OVERSAMPLENR, 272},
  547. {61*OVERSAMPLENR, 258},
  548. {71*OVERSAMPLENR, 247},
  549. {81*OVERSAMPLENR, 237},
  550. {91*OVERSAMPLENR, 229},
  551. {101*OVERSAMPLENR, 221},
  552. {131*OVERSAMPLENR, 204},
  553. {161*OVERSAMPLENR, 190},
  554. {191*OVERSAMPLENR, 179},
  555. {231*OVERSAMPLENR, 167},
  556. {271*OVERSAMPLENR, 157},
  557. {311*OVERSAMPLENR, 148},
  558. {351*OVERSAMPLENR, 140},
  559. {381*OVERSAMPLENR, 135},
  560. {411*OVERSAMPLENR, 130},
  561. {441*OVERSAMPLENR, 125},
  562. {451*OVERSAMPLENR, 123},
  563. {461*OVERSAMPLENR, 122},
  564. {471*OVERSAMPLENR, 120},
  565. {481*OVERSAMPLENR, 119},
  566. {491*OVERSAMPLENR, 117},
  567. {501*OVERSAMPLENR, 116},
  568. {511*OVERSAMPLENR, 114},
  569. {521*OVERSAMPLENR, 113},
  570. {531*OVERSAMPLENR, 111},
  571. {541*OVERSAMPLENR, 110},
  572. {551*OVERSAMPLENR, 108},
  573. {561*OVERSAMPLENR, 107},
  574. {571*OVERSAMPLENR, 105},
  575. {581*OVERSAMPLENR, 104},
  576. {591*OVERSAMPLENR, 102},
  577. {601*OVERSAMPLENR, 101},
  578. {611*OVERSAMPLENR, 100},
  579. {621*OVERSAMPLENR, 98},
  580. {631*OVERSAMPLENR, 97},
  581. {641*OVERSAMPLENR, 95},
  582. {651*OVERSAMPLENR, 94},
  583. {661*OVERSAMPLENR, 92},
  584. {671*OVERSAMPLENR, 91},
  585. {681*OVERSAMPLENR, 90},
  586. {691*OVERSAMPLENR, 88},
  587. {701*OVERSAMPLENR, 87},
  588. {711*OVERSAMPLENR, 85},
  589. {721*OVERSAMPLENR, 84},
  590. {731*OVERSAMPLENR, 82},
  591. {741*OVERSAMPLENR, 81},
  592. {751*OVERSAMPLENR, 79},
  593. {761*OVERSAMPLENR, 77},
  594. {771*OVERSAMPLENR, 76},
  595. {781*OVERSAMPLENR, 74},
  596. {791*OVERSAMPLENR, 72},
  597. {801*OVERSAMPLENR, 71},
  598. {811*OVERSAMPLENR, 69},
  599. {821*OVERSAMPLENR, 67},
  600. {831*OVERSAMPLENR, 65},
  601. {841*OVERSAMPLENR, 63},
  602. {851*OVERSAMPLENR, 62},
  603. {861*OVERSAMPLENR, 60},
  604. {871*OVERSAMPLENR, 57},
  605. {881*OVERSAMPLENR, 55},
  606. {891*OVERSAMPLENR, 53},
  607. {901*OVERSAMPLENR, 51},
  608. {911*OVERSAMPLENR, 48},
  609. {921*OVERSAMPLENR, 45},
  610. {931*OVERSAMPLENR, 42},
  611. {941*OVERSAMPLENR, 39},
  612. {951*OVERSAMPLENR, 36},
  613. {961*OVERSAMPLENR, 32},
  614. {981*OVERSAMPLENR, 23},
  615. {991*OVERSAMPLENR, 17},
  616. {1001*OVERSAMPLENR, 9},
  617. {1008*OVERSAMPLENR, 0},
  618. };
  619. #endif
  620. #define _TT_NAME(_N) temptable_ ## _N
  621. #define TT_NAME(_N) _TT_NAME(_N)
  622. #ifdef THERMISTORHEATER_0
  623. # define HEATER_0_TEMPTABLE TT_NAME(THERMISTORHEATER_0)
  624. # define HEATER_0_TEMPTABLE_LEN (sizeof(HEATER_0_TEMPTABLE)/sizeof(*HEATER_0_TEMPTABLE))
  625. #else
  626. # ifdef HEATER_0_USES_THERMISTOR
  627. # error No heater 0 thermistor table specified
  628. # else // HEATER_0_USES_THERMISTOR
  629. # define HEATER_0_TEMPTABLE NULL
  630. # define HEATER_0_TEMPTABLE_LEN 0
  631. # endif // HEATER_0_USES_THERMISTOR
  632. #endif
  633. //Set the high and low raw values for the heater, this indicates which raw value is a high or low temperature
  634. #ifndef HEATER_0_RAW_HI_TEMP
  635. # ifdef HEATER_0_USES_THERMISTOR //In case of a thermistor the highest temperature results in the lowest ADC value
  636. # define HEATER_0_RAW_HI_TEMP 0
  637. # define HEATER_0_RAW_LO_TEMP 16383
  638. # else //In case of an thermocouple the highest temperature results in the highest ADC value
  639. # define HEATER_0_RAW_HI_TEMP 16383
  640. # define HEATER_0_RAW_LO_TEMP 0
  641. # endif
  642. #endif
  643. #ifdef THERMISTORHEATER_1
  644. # define HEATER_1_TEMPTABLE TT_NAME(THERMISTORHEATER_1)
  645. # define HEATER_1_TEMPTABLE_LEN (sizeof(HEATER_1_TEMPTABLE)/sizeof(*HEATER_1_TEMPTABLE))
  646. #else
  647. # ifdef HEATER_1_USES_THERMISTOR
  648. # error No heater 1 thermistor table specified
  649. # else // HEATER_1_USES_THERMISTOR
  650. # define HEATER_1_TEMPTABLE NULL
  651. # define HEATER_1_TEMPTABLE_LEN 0
  652. # endif // HEATER_1_USES_THERMISTOR
  653. #endif
  654. //Set the high and low raw values for the heater, this indicates which raw value is a high or low temperature
  655. #ifndef HEATER_1_RAW_HI_TEMP
  656. # ifdef HEATER_1_USES_THERMISTOR //In case of a thermistor the highest temperature results in the lowest ADC value
  657. # define HEATER_1_RAW_HI_TEMP 0
  658. # define HEATER_1_RAW_LO_TEMP 16383
  659. # else //In case of an thermocouple the highest temperature results in the highest ADC value
  660. # define HEATER_1_RAW_HI_TEMP 16383
  661. # define HEATER_1_RAW_LO_TEMP 0
  662. # endif
  663. #endif
  664. #ifdef THERMISTORHEATER_2
  665. # define HEATER_2_TEMPTABLE TT_NAME(THERMISTORHEATER_2)
  666. # define HEATER_2_TEMPTABLE_LEN (sizeof(HEATER_2_TEMPTABLE)/sizeof(*HEATER_2_TEMPTABLE))
  667. #else
  668. # ifdef HEATER_2_USES_THERMISTOR
  669. # error No heater 2 thermistor table specified
  670. # else // HEATER_2_USES_THERMISTOR
  671. # define HEATER_2_TEMPTABLE NULL
  672. # define HEATER_2_TEMPTABLE_LEN 0
  673. # endif // HEATER_2_USES_THERMISTOR
  674. #endif
  675. //Set the high and low raw values for the heater, this indicates which raw value is a high or low temperature
  676. #ifndef HEATER_2_RAW_HI_TEMP
  677. # ifdef HEATER_2_USES_THERMISTOR //In case of a thermistor the highest temperature results in the lowest ADC value
  678. # define HEATER_2_RAW_HI_TEMP 0
  679. # define HEATER_2_RAW_LO_TEMP 16383
  680. # else //In case of an thermocouple the highest temperature results in the highest ADC value
  681. # define HEATER_2_RAW_HI_TEMP 16383
  682. # define HEATER_2_RAW_LO_TEMP 0
  683. # endif
  684. #endif
  685. #ifdef THERMISTORBED
  686. # define BEDTEMPTABLE TT_NAME(THERMISTORBED)
  687. # define BEDTEMPTABLE_LEN (sizeof(BEDTEMPTABLE)/sizeof(*BEDTEMPTABLE))
  688. #else
  689. # ifdef BED_USES_THERMISTOR
  690. # error No bed thermistor table specified
  691. # endif // BED_USES_THERMISTOR
  692. #endif
  693. //Set the high and low raw values for the heater, this indicates which raw value is a high or low temperature
  694. #ifndef HEATER_BED_RAW_HI_TEMP
  695. # ifdef BED_USES_THERMISTOR //In case of a thermistor the highest temperature results in the lowest ADC value
  696. # define HEATER_BED_RAW_HI_TEMP 0
  697. # define HEATER_BED_RAW_LO_TEMP 16383
  698. # else //In case of an thermocouple the highest temperature results in the highest ADC value
  699. # define HEATER_BED_RAW_HI_TEMP 16383
  700. # define HEATER_BED_RAW_LO_TEMP 0
  701. # endif
  702. #endif
  703. #endif //THERMISTORTABLES_H_