Maths help for the terminally dim please


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    In case you will need other percentages, here how to calculate the multiplier:


    Multiplier = 1 +( % / (100-%) )

    where % is your value.

    Example:

    1 + ( 16 / (100 - 16) = 1 + (16/84) = 1 + 0.19047619 = 1.19047619 rouded 1.1905

    Cheers

    Al.
    All progress began with an idea

  2. #2


    Did you find this post helpful? Yes | No

    Thumbs up

    Thanks for the formula as well. Now i know how to do it

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: Maths help for the terminally dim please

    Another maths question.

    I have an adc connected to a HV supply via a non linear isolation circuit.

    It produces the below 10bit ADC readings at the given input voltage.
    That works fine but i want to create a formula from these data points to allow the adc to produce the actual voltage.
    I don't want to use a lookup table if possible.
    Accuracy to 1V is acceptable. There should be enough adc resolution to do that with the right formula.

    225v = 356
    200v = 380
    175v = 412
    150v = 450
    125v = 495
    100v = 561
    75v = 644
    50v = 753
    25v = 903
    10v = 1000
    5v = 1020
    0v = 1023

    How to convert that data into some sort of forumla to produce the voltage from a given adc reading.
    It's not linear.

    Thanks

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Default Re: Maths help for the terminally dim please

    3rd degree Polynomial Fit: y=a+bx+cx^2+dx^3...
    Coefficient Data:
    a = 7.84284692277E+002
    b = -2.42579262304E+000
    c = 2.77307340820E-003
    d = -1.12332698305E-006

    or

    Heat Capacity Model: y=a+bx+c/x^2
    Coefficient Data:
    a = 8.77447057194E+001
    b = -1.01937213402E-001
    c = 2.18878991436E+007


    or use a retrieve table plus 2nd order approx.

    Accuracy to 1V is acceptable
    did you notice 1v is ... 0.5% ???
    surely not !!!

    Alain
    Last edited by Acetronics2; - 6th July 2013 at 18:04.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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