1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Sensor - accelerations to displacements, error

  1. Oct 14, 2014 #1
    Hello everybody, apologies from outset for bad English.

    I wonder if anyone can give me some advice regarding my problem. I have a sesnor that gives acceleration readings. I have been working hard to turn these readings into position or displacements. I tried many method but MATLAB cumptrapz was most effective. I integrated my data twice and got position

    This has been quite successful but I have recently had some test data where by I know exactly the distance travelled because I was able to measure it at the time. I now see that displacement given by cumtrap is out by a small amount. How can I improve upon accuracy. I have looked at centering my velocity aound before carrying out the second integration i have also made sure of these things such as start at point where acceleration is zero and where velocity is zero but I still have some problems. Also I find to completely do these things is tricky so I have do it with some slight error. Can you advise for me some help?
    Thank you
     
  2. jcsd
  3. Oct 14, 2014 #2
    What ever in the world is cumtrapz?

    Just guessing that it might be a routine based on trapezoidal integration, you might us a better integration algorithm such as Simpson's rule.
     
  4. Oct 15, 2014 #3
    Hello Doctor, This is a algoirthm on Mathlab based upon the trapezium rule as you suggest. I think everything around simpsons rule they have on there needs function and I just have discrete data? Do you think this will solve my problem of being a little out in terms of distance it is not by much but I want to correct
     
  5. Oct 15, 2014 #4

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    An acceleration sensor will always give lead to some errors - a small measurement error early on leads to a constant offset in the velocity, even with an impossible perfect integration scheme.

    Is the deviation between estimated and measured distance getting worse over time?
     
  6. Oct 15, 2014 #5
    Maia, it is hard to say what will correct your problem when I do not know ith certainty what is wrong.

    Simpson's rule works (approximately) with both discrete and continuous data.

    You can make up a test case, perhaps pure sinusoidal data, to check the calcs to see where the error is coming in.
     
  7. Oct 15, 2014 #6
    Well when I examine the velocity I see that I have drift and it is quadratic. This makes me think that it could be causing error in the position data but I am not sure how to rectify this.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Sensor - accelerations to displacements, error
  1. Errors, errors (Replies: 1)

  2. Displacement ! (Replies: 2)

  3. Force Sensor (Replies: 3)

Loading...