Hey guys,
OK, i'm stuck. i using my PIC18F4480's ADCs to monitor temp and pressure sensors. the sensors vary their resistance according to the temp or pressure. I have a chart that shows what the temp or pressure is at a given resistance.
I've been plotting and playing w/ circuits in excel all day and i cant find a smooth way to build a circuit whos output voltage when converted to digital maps to the actualy units of temp or pressure. for example it would be nice if i could get teh circuit to output 5V at 102.4 degrees for example. but maybe thats too idealistic, cuz i can't figure it out.
so what are the pros and cons of using a lookup table for the values vs an equation? i'm thinking the equation would be more memory efficient, but it still wouldnt be as accurate as the lookup table. i've plotted various equations agains the actual data points and can get very close, but still not PERFECT w/o getting too fancey w/ the math.
what do you guys suggest? Thanks
OK, i'm stuck. i using my PIC18F4480's ADCs to monitor temp and pressure sensors. the sensors vary their resistance according to the temp or pressure. I have a chart that shows what the temp or pressure is at a given resistance.
I've been plotting and playing w/ circuits in excel all day and i cant find a smooth way to build a circuit whos output voltage when converted to digital maps to the actualy units of temp or pressure. for example it would be nice if i could get teh circuit to output 5V at 102.4 degrees for example. but maybe thats too idealistic, cuz i can't figure it out.
so what are the pros and cons of using a lookup table for the values vs an equation? i'm thinking the equation would be more memory efficient, but it still wouldnt be as accurate as the lookup table. i've plotted various equations agains the actual data points and can get very close, but still not PERFECT w/o getting too fancey w/ the math.
what do you guys suggest? Thanks