Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I'm writing some code for a pressure level sensor for propane tanks. The manual provides me with the following table with the caption:

"Best accuracy will be obtained using the calibration data in the table below:"

Table of values

I assume: 0.000 - 0.318 is a E-stop 0.319 - 0.590 is 10 etc.

What I'd like to find out is how can I calculate the exact Graduation from a specific voltage. For example if I get 0.45 volts, what is the exact Graduation?

I'd much appreciate being told what type of problem this is and suggestions for formulas.

(I've cast the tagging net very wide. If someone could point me in the right direction to tag that would be great)

share|improve this question
1  
The keyword you're looking for is interpolation. en.wikipedia.org/wiki/Interpolation –  davin Jul 9 '12 at 17:50
1  
Wolframalpha can generate the formula for you. Just plug in your voltage as $x$ and it'll give you the graduation. –  Antonio Vargas Jul 9 '12 at 17:57
    
Both comments have lead me down the right path. @davin since you answered first would you mind making an answer so I can mark it as correct? –  BOMEz Jul 9 '12 at 18:15
    
Since the relationship is almost linear, you might try a simple linear regression, which can be done in Excel or a similar program. Actually, it looks like wolframalpha does it too. –  tentaclenorm Jul 10 '12 at 22:51

1 Answer 1

up vote 1 down vote accepted

The keyword you're looking for is interpolation.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.