Math Problem


Closed Thread
Results 1 to 21 of 21

Thread: Math Problem

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    74

    Default Math Problem

    I need to figure out how to convert the non-linear AD Value to something more linear as far as the conversion goes.

    I figured out by reading a little on NTC thermistors, with the little data I have, I came up with resistance values that I believe are accurate within 1ohm

    Anyways, here is a link to the spreadsheet
    www.drivearu.com/Electronics/ntc%20thermistor.xls

    I am stumped!

  2. #2
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    Ah, forgot that it needs to be the temperature range 100-250 degrees F

    When o I get the ability to edit my posts?

  3. #3
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default

    Erice1984,

    You can do a linear approximation but you are going to loose accuracy. Try doing a polynomial or exponential approximation. In EXCEL go to help and see how to add a trendline (it varies with the different versions of EXCEL). Obtaining the trendline is very simple. The trendline is going to give you a formula in the form of Y(X), X being the temperature and Y being the Resistance. Try with different options and settings until you get a good approximation. Then, you can use the resulting formula in your PBP program. That is with any value X (temperature) you can calculate a value Y (resistance).

    You should get the whole temperature range 100-250 degrees F in your graph before doing an approximation, so you get better results.

    This is one way to do it, which is very accurate. It all depends on the accuracy that you want for the resistance reading.

    Hope that this helps.

    Robert

  4. #4
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    Thank you very much!

    Wow, that was really easy!

    I lost accuracy but its in the place I don't care about!

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    I already used the following with good results.

    Curve Expert
    http://userpages.xfoneusa.net/~dhyams/cmain.htm
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    It all works, just wondering how I will try to make exponents happen..

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    What's your current formula?

    A third degree polynomial didn't fit?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  8. #8
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    f(x) = 5167.68(0.98^x)

Similar Threads

  1. Line Graph, math problem...
    By TerdRatchett in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th May 2009, 04:20
  2. Math problem with string result
    By Lotondo in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 15th November 2006, 10:06
  3. PicBasic Pro Math Problem??
    By Glen65 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th March 2006, 04:36
  4. Math Formula / Variable Problem! Help!
    By bwarp in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th February 2006, 07:59
  5. Math problem...with picbasic pro
    By pcaccia in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th October 2005, 19:28

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts