Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6150753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:39:44+00:00 2026-05-23T19:39:44+00:00

Do you know the app motion ruler? It can be used to get the

  • 0

Do you know the app “motion ruler”? It can be used to get the length of an object by moving an iPhone.

How can I get the velocity from UIAcceleration when moving an iPhone?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T19:39:45+00:00Added an answer on May 23, 2026 at 7:39 pm

    Velocity is just acceleration * time. I.e. you can use the formula

    v = u + acceleration * time.

    As a starter you could look at assuming the initial speed is 0, ‘u’ can be ignored to get accelration * time.

    if you want distance just use
    distance = initial velocity * time + 0.5 * acceleration * time * time.

    or better still use dead reckoning and keep adding your velocity vectors as frequently as you get updates from the accelerometers.

    To get acceleration as a scalar you can do a = sqrt(x*x+y*y+z*z). You will want to remove gravity from this before though! Also this will only give you distance in straight line, you may prefer to measure velocity in x,y,z independently and use vector analysis to measure the path for a more accurate reading. Be warned though, you may also need to take into account any rotations to be super accurate and this feature is only on iPhone4s. This can get tricky and you’ll probably want to use some matrix maths to orientate the ‘space’ the phone is in.

    You will also need to do a low pass filter on the accelerometer to get rid of the ‘shakes’ and this is where a significant error margin will creep in and why I’d expect all rulers in appstore have spent a long time refining this.

    to do a filter, a very simple one is filteredValue = ((lastValue * n) + accelerationValue )/(n+1) where a larger n value gives a smoother result but less responsive.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know almost nothing about linq. I'm doing this: var apps = from app
I know the app delegate can say yo man, I want thais new landscape
i just want to know how an app can be made like wired ipad
I know it is a good idea to store configuration data in app.config (e.g.
Anyone know if it is possible to write an app that uses the Java
Does anyone know of a simple web app that supports running ant tasks? Alternatively
Does anyone know if there is a c# Console app, similar to the Python
Since the Google App Engine Datastore is based on Bigtable and we know that's
We all know that modifying a .NET web application's web.config file restarts the app
For a web app I'm working on, I need to know the lat/lon of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.