I know this is a brute force way to linearize a thermistor connected to an analog input. Is there a more efficient way? I only need about 30F range.
Thanks!
if AD0 >= 446 then RA = 67
if AD0 >= 450 then RA = 68
if AD0 >= 456 then RA = 69
if AD0 >= 461 then RA = 70
if AD0 >= 477 then RA = 71
if AD0 >= 473 then RA = 72
if AD0 >= 479 then RA = 73
if AD0 >= 486 then RA = 74
if AD0 >= 492 then RA = 75
if AD0 >= 499 then RA = 76
if AD0 >= 506 then RA = 77
if AD0 >= 513 then RA = 78
if AD0 >= 519 then RA = 79
if AD0 >= 526 then RA = 80
if AD0 >= 529 then RA = 81
if AD0 >= 535 then RA = 82
if AD0 >= 544 then RA = 83
if AD0 >= 548 then RA = 84
if AD0 >= 552 then RA = 85
if AD0 <= 438 then RA = 65
Bookmarks