Detecting Horizontal Movement


Results 1 to 29 of 29

Threaded View

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


    Did you find this post helpful? Yes | No

    Default Re: Detecting Horizontal Movement

    Quote Originally Posted by Atom058 View Post
    Darrel - Thanks for your response, but don't accelerometers just detect changes in speed? I would think that once speed was constant, there would be no signal until the speed changed again (sped up or slowed down). Jeff
    Quote Originally Posted by Atom058 View Post
    Bruce - So, if an accelerometer is attached to a moving object and the object is moving at a constant speed, I will get some feedback that the object is moving? Even over a smooth surface?
    That's what the "Integration" does. It converts Acceleration over time into speed.

    Sorry, it took me awhile to make something that would show how it works ... but here goes.

    "Integration" is the "I" in PID loop.
    By itself, it converts change in a value over time, to an approximated absolute value.
    In other words, acceleration over time can show speed.
    Speed over time can show distance.

    I made a simulation that shows a simple acceleration to speed integration.
    The PIC on the left simulates a single axis analog accelerometer, using HPWM to generate a DC voltage. Although they are ideal waveforms that you will never see from a real accelerometer, it was the easiest way to get exactly the same acceleration as deceleration profiles. Nature balances it out in real life, taking the exact amount of deceleration to stop an object that was accelerated.

    The yellow trace is the accelerometer, and its output only registers the Change in speed.
    The PIC on the right is running the very short "Integrater.pbp" program (attached).
    The output (blue trace) of the integration is sent to the HPWM to be able to see on the scope.
    The red trace is a digital output indicating "Forward Motion".

    You can see that the output (blue) is a constant speed when there's no change in acceleration.
    http://support.melabs.com/DT/Accel_Integrate.jpg



    The integrated Speed could then be integrated again to produce distance traveled.

    Disclaimers:
    The simulation is not scaled to any particular Accelerometer, acceleration range or maximum speed range.
    It is only intended to show how "Integration" works.

    In real life, motion in other axis would affect the output, so multiple axis should be monitored.
    Additional sensors (Gyros and Magnatometers) can be combined for greater accuracy and stability.

    Products like the UM6-LT can provide all the sensor data required for all 3 axis, plus combined orientation information.
    Attached Files Attached Files
    Last edited by Darrel Taylor; - 31st December 2011 at 06:36.
    DT

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