Math Problem


Closed Thread
Results 1 to 21 of 21

Thread: Math Problem

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    Wow, you mention that and I look at the gauge that the sender was supposed to work with and they did that!

  2. #2
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    So I looked at the resistor that was used, its 510

    It brings the change in resistance per degree down to
    3 ohm from 100-150
    2 ohm from 151-200
    1 ohm from 201-250

    Isnt that crazy.

  3. #3
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    I am going to use an op amp to get me full range of my 0-5v scale instead of this 0-1v stuff... would that limit the signal from "bouncing" around?

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


    Did you find this post helpful? Yes | No

    Default

    You could filter your signal in hardware, or in software (averaging results). I tend to use hardware in many case as it's just a matter to add a capacitor or any kind of Low-Pass filter. On the other hand, a combination of both is also good depending how fancy you want it.
    Steve

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

  5. #5
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    interesting, I have heard about the capacitor trick. How would it be done "averaging" in software?

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


    Did you find this post helpful? Yes | No

    Default

    Erice1984,
    Looking at the EXCEL graph that you have posted it seems like a second degree polinomial will fit nicely. A formula of the form Y(X)=a*(X^2) + b will work. The EXCEL trendline will give a value for a and b in the above formula. Then, round this numbers up and you should have a good approximation for your graph. I am writing this reply from my cell phone so I don't have EXCEL with me at this moment to show you what it might look like.
    Give it a try. If you have any problems, let us know.

    Robert

  7. #7
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by erice1984 View Post
    How would it be done "averaging" in software?
    Here's one possible way.
    http://www.picbasic.co.uk/forum/show...3267#post13267

    Although I never did hear back from ANYONE.
    I have used it myself since that post.
    No problems found.

    It's based on my original Averaging routines ...

    Averaging 16 bit values without using 32 bit math?
    http://www.pbpgroup.com/modules/wfse...hp?articleid=7

    HTH,
    DT

  8. #8
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    I updated the spreadsheet, feel free to take a look

    http://www.drivearu.com/Electronics/...thermistor.xls

    I am pretty confidant in this one, no exponents which is nice, and I looked at other automotive temperature gauges and they are showing +/- 7 degrees on theirs.

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