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.

thermistortables.h 24KB

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