[SOLVED] Interpolation/function identification

Status
Not open for further replies.

LaszloF

Member level 2
Joined
Sep 12, 2007
Messages
50
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Location
Romania
Activity points
1,570
Dear Sirs,

I want to measure temperature with some NTC's.
The nature of these isn't linear, in the datasheet there is a table for resistance values in 5C(degree Celsius) steps. From that data i need to get a function, or make some type of interpolation, the measurement needs have 0.01C resolution.

What do you suggest? Is it even possible to make this?

Thank you in advance.
 

Hello LaszloF,

The best way to do tthat with the finest accuracy is to use a spline interpolation of your points. Take a look at :
http://en.wikipedia.org/wiki/Spline_interpolation

The algorithm to use for it is simple to implement. You can take an example in the Numerical Recipies. See in: http://www.nrbook.com/a/bookcpdf.php
the chapter "3.3 Cubic Spline Interpolation 113"

Good luck!

Cheers,

Elvis

 

    LaszloF

    Points: 2
    Helpful Answer Positive Rating
First of all, thanks Elvis, i will look into it, meantime i found a linearization method for NTC's, it's called the Steinhart-Hart equations.

But for a general solution I will use the spline interpolation , i will try to compare the two methods on NTC's and post a feedback.

Regards,
Laszlo
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…