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

  • SEARCH
  • Home
  • 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 6213719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:44:55+00:00 2026-05-24T06:44:55+00:00

I am writing an app that will use the accelerometer to calculate the average

  • 0

I am writing an app that will use the accelerometer to calculate the average geforce exerted on the phone. Thinking about the problem, I came to the conclusion that when the phone is in rest, adding all of the axis values together will give me an answer of +9.8 (acceleration due to gravity).

I now assumed that if I subtract 9.8 from the sum of all axes, it will give me the combined force being exerted on the phone without taking gravity into account. So if the phone was to be in a fixed position it would return the value 0.

Now this does work out to be true if the phone is lying directly on one axis, but if the phone were to lie against something at a ~45 degree angle, it returns a value of 4-5 (roughly half that of gravity) the closer the angle gets to an axis, the smaller the registered force is (going to go ahead and assume that it is proportional)

From my understanding, this shouldn’t happen, it should return a 0 as all of the axis would cancel each other out, no? as the phone is stationary there should be no force recorded with the phone right?

  • 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-24T06:44:56+00:00Added an answer on May 24, 2026 at 6:44 am

    A value of 4-5 m/s2 indicates either a little bug in your calculation or a hardware defect. You said that you are adding all values, but how do you do it? You have to calculate the magnitude as sqrt(x*x + y*y + z*z). This is because acceleration like velocity, position, … are vectors and their length is calculated according to the Pythagorean theorem.

    In general these sensors are not that exact as you might expect. On iPhone I measured g-force values between 9.75 and 9.87. Values depend on temperature (put it in the fridge and you get lower values – I checked it 😉 and there are indeed differences when changing the orientation. I found value deltas of 0.3 m/s2. In order to get this fixed you will need heavy maths (Kalman-Filter or similar stuff) and of course a second sensor (gyroscope because magnetometer i.e. compass reacts too slow).

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

Sidebar

Related Questions

I am thinking to try writing an app that can use android phone to
We are writing an app that will use T4 to generate Flex/Actionscript to compile
I'm writing an app that will need to make use of Timer s, but
I'm writing a web app that will use twitter as its primary log on
I am writing an app that will make use of multiple threads. There is
I'm writing a Java ME app that will use privileged operations such as messaging.
I am writing an app that will use Reverse Geocoding to translate the user's
I am being tasked with writing an asp.net web app that will use ADFS
I am writing a web app that will use HTML to display a form.
I'm writing an app that will basically be like Fraps, but it will push

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.