My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

thermistortables.h 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509
  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°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°C
  304. };
  305. #endif
  306. #if (THERMISTORHEATER_0 == 51) || (THERMISTORHEATER_1 == 51) || (THERMISTORHEATER_2 == 51) || (THERMISTORBED == 51)
  307. // 100k EPCOS (WITH 1kohm RESISTOR FOR PULLUP, R9 ON SANGUINOLOLU! NOT FOR 4.7kohm PULLUP! THIS IS NOT NORMAL!)
  308. // Verified by linagee.
  309. // Calculated using 1kohm pullup, voltage divider math, and manufacturer provided temp/resistance
  310. // Advantage: Twice the resolution and better linearity from 150C to 200C
  311. const short temptable_51[][2] PROGMEM = {
  312. {1*OVERSAMPLENR, 350},
  313. {190*OVERSAMPLENR, 250}, //top rating 250C
  314. {203*OVERSAMPLENR, 245},
  315. {217*OVERSAMPLENR, 240},
  316. {232*OVERSAMPLENR, 235},
  317. {248*OVERSAMPLENR, 230},
  318. {265*OVERSAMPLENR, 225},
  319. {283*OVERSAMPLENR, 220},
  320. {302*OVERSAMPLENR, 215},
  321. {322*OVERSAMPLENR, 210},
  322. {344*OVERSAMPLENR, 205},
  323. {366*OVERSAMPLENR, 200},
  324. {390*OVERSAMPLENR, 195},
  325. {415*OVERSAMPLENR, 190},
  326. {440*OVERSAMPLENR, 185},
  327. {467*OVERSAMPLENR, 180},
  328. {494*OVERSAMPLENR, 175},
  329. {522*OVERSAMPLENR, 170},
  330. {551*OVERSAMPLENR, 165},
  331. {580*OVERSAMPLENR, 160},
  332. {609*OVERSAMPLENR, 155},
  333. {638*OVERSAMPLENR, 150},
  334. {666*OVERSAMPLENR, 145},
  335. {695*OVERSAMPLENR, 140},
  336. {722*OVERSAMPLENR, 135},
  337. {749*OVERSAMPLENR, 130},
  338. {775*OVERSAMPLENR, 125},
  339. {800*OVERSAMPLENR, 120},
  340. {823*OVERSAMPLENR, 115},
  341. {845*OVERSAMPLENR, 110},
  342. {865*OVERSAMPLENR, 105},
  343. {884*OVERSAMPLENR, 100},
  344. {901*OVERSAMPLENR, 95},
  345. {917*OVERSAMPLENR, 90},
  346. {932*OVERSAMPLENR, 85},
  347. {944*OVERSAMPLENR, 80},
  348. {956*OVERSAMPLENR, 75},
  349. {966*OVERSAMPLENR, 70},
  350. {975*OVERSAMPLENR, 65},
  351. {982*OVERSAMPLENR, 60},
  352. {989*OVERSAMPLENR, 55},
  353. {995*OVERSAMPLENR, 50},
  354. {1000*OVERSAMPLENR, 45},
  355. {1004*OVERSAMPLENR, 40},
  356. {1007*OVERSAMPLENR, 35},
  357. {1010*OVERSAMPLENR, 30},
  358. {1013*OVERSAMPLENR, 25},
  359. {1015*OVERSAMPLENR, 20},
  360. {1017*OVERSAMPLENR, 15},
  361. {1018*OVERSAMPLENR, 10},
  362. {1019*OVERSAMPLENR, 5},
  363. {1020*OVERSAMPLENR, 0},
  364. {1021*OVERSAMPLENR, -5}
  365. };
  366. #endif
  367. #if (THERMISTORHEATER_0 == 52) || (THERMISTORHEATER_1 == 52) || (THERMISTORHEATER_2 == 52) || (THERMISTORBED == 52)
  368. // 200k ATC Semitec 204GT-2 (WITH 1kohm RESISTOR FOR PULLUP, R9 ON SANGUINOLOLU! NOT FOR 4.7kohm PULLUP! THIS IS NOT NORMAL!)
  369. // Verified by linagee. Source: http://shop.arcol.hu/static/datasheets/thermistors.pdf
  370. // Calculated using 1kohm pullup, voltage divider math, and manufacturer provided temp/resistance
  371. // Advantage: More resolution and better linearity from 150C to 200C
  372. const short temptable_52[][2] PROGMEM = {
  373. {1*OVERSAMPLENR, 500},
  374. {125*OVERSAMPLENR, 300}, //top rating 300C
  375. {142*OVERSAMPLENR, 290},
  376. {162*OVERSAMPLENR, 280},
  377. {185*OVERSAMPLENR, 270},
  378. {211*OVERSAMPLENR, 260},
  379. {240*OVERSAMPLENR, 250},
  380. {274*OVERSAMPLENR, 240},
  381. {312*OVERSAMPLENR, 230},
  382. {355*OVERSAMPLENR, 220},
  383. {401*OVERSAMPLENR, 210},
  384. {452*OVERSAMPLENR, 200},
  385. {506*OVERSAMPLENR, 190},
  386. {563*OVERSAMPLENR, 180},
  387. {620*OVERSAMPLENR, 170},
  388. {677*OVERSAMPLENR, 160},
  389. {732*OVERSAMPLENR, 150},
  390. {783*OVERSAMPLENR, 140},
  391. {830*OVERSAMPLENR, 130},
  392. {871*OVERSAMPLENR, 120},
  393. {906*OVERSAMPLENR, 110},
  394. {935*OVERSAMPLENR, 100},
  395. {958*OVERSAMPLENR, 90},
  396. {976*OVERSAMPLENR, 80},
  397. {990*OVERSAMPLENR, 70},
  398. {1000*OVERSAMPLENR, 60},
  399. {1008*OVERSAMPLENR, 50},
  400. {1013*OVERSAMPLENR, 40},
  401. {1017*OVERSAMPLENR, 30},
  402. {1019*OVERSAMPLENR, 20},
  403. {1021*OVERSAMPLENR, 10},
  404. {1022*OVERSAMPLENR, 0}
  405. };
  406. #endif
  407. #if (THERMISTORHEATER_0 == 55) || (THERMISTORHEATER_1 == 55) || (THERMISTORHEATER_2 == 55) || (THERMISTORBED == 55)
  408. // 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!)
  409. // Verified by linagee. Source: http://shop.arcol.hu/static/datasheets/thermistors.pdf
  410. // Calculated using 1kohm pullup, voltage divider math, and manufacturer provided temp/resistance
  411. // Advantage: More resolution and better linearity from 150C to 200C
  412. const short temptable_55[][2] PROGMEM = {
  413. {1*OVERSAMPLENR, 500},
  414. {76*OVERSAMPLENR, 300},
  415. {87*OVERSAMPLENR, 290},
  416. {100*OVERSAMPLENR, 280},
  417. {114*OVERSAMPLENR, 270},
  418. {131*OVERSAMPLENR, 260},
  419. {152*OVERSAMPLENR, 250},
  420. {175*OVERSAMPLENR, 240},
  421. {202*OVERSAMPLENR, 230},
  422. {234*OVERSAMPLENR, 220},
  423. {271*OVERSAMPLENR, 210},
  424. {312*OVERSAMPLENR, 200},
  425. {359*OVERSAMPLENR, 190},
  426. {411*OVERSAMPLENR, 180},
  427. {467*OVERSAMPLENR, 170},
  428. {527*OVERSAMPLENR, 160},
  429. {590*OVERSAMPLENR, 150},
  430. {652*OVERSAMPLENR, 140},
  431. {713*OVERSAMPLENR, 130},
  432. {770*OVERSAMPLENR, 120},
  433. {822*OVERSAMPLENR, 110},
  434. {867*OVERSAMPLENR, 100},
  435. {905*OVERSAMPLENR, 90},
  436. {936*OVERSAMPLENR, 80},
  437. {961*OVERSAMPLENR, 70},
  438. {979*OVERSAMPLENR, 60},
  439. {993*OVERSAMPLENR, 50},
  440. {1003*OVERSAMPLENR, 40},
  441. {1010*OVERSAMPLENR, 30},
  442. {1015*OVERSAMPLENR, 20},
  443. {1018*OVERSAMPLENR, 10},
  444. {1020*OVERSAMPLENR, 0}
  445. };
  446. #endif
  447. #define _TT_NAME(_N) temptable_ ## _N
  448. #define TT_NAME(_N) _TT_NAME(_N)
  449. #ifdef THERMISTORHEATER_0
  450. #define heater_0_temptable TT_NAME(THERMISTORHEATER_0)
  451. #define heater_0_temptable_len (sizeof(heater_0_temptable)/sizeof(*heater_0_temptable))
  452. #else
  453. #ifdef HEATER_0_USES_THERMISTOR
  454. #error No heater 0 thermistor table specified
  455. #else // HEATER_0_USES_THERMISTOR
  456. #define heater_0_temptable 0
  457. #define heater_0_temptable_len 0
  458. #endif // HEATER_0_USES_THERMISTOR
  459. #endif
  460. #ifdef THERMISTORHEATER_1
  461. #define heater_1_temptable TT_NAME(THERMISTORHEATER_1)
  462. #define heater_1_temptable_len (sizeof(heater_1_temptable)/sizeof(*heater_1_temptable))
  463. #else
  464. #ifdef HEATER_1_USES_THERMISTOR
  465. #error No heater 1 thermistor table specified
  466. #else // HEATER_1_USES_THERMISTOR
  467. #define heater_1_temptable 0
  468. #define heater_1_temptable_len 0
  469. #endif // HEATER_1_USES_THERMISTOR
  470. #endif
  471. #ifdef THERMISTORHEATER_2
  472. #define heater_2_temptable TT_NAME(THERMISTORHEATER_2)
  473. #define heater_2_temptable_len (sizeof(heater_2_temptable)/sizeof(*heater_2_temptable))
  474. #else
  475. #ifdef HEATER_2_USES_THERMISTOR
  476. #error No heater 2 thermistor table specified
  477. #else // HEATER_2_USES_THERMISTOR
  478. #define heater_2_temptable 0
  479. #define heater_2_temptable_len 0
  480. #endif // HEATER_2_USES_THERMISTOR
  481. #endif
  482. #ifdef THERMISTORBED
  483. #define bedtemptable TT_NAME(THERMISTORBED)
  484. #define bedtemptable_len (sizeof(bedtemptable)/sizeof(*bedtemptable))
  485. #else
  486. #ifdef BED_USES_THERMISTOR
  487. #error No bed thermistor table specified
  488. #endif // BED_USES_THERMISTOR
  489. #endif
  490. #endif //THERMISTORTABLES_H_