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 567865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:07:44+00:00 2026-05-13T13:07:44+00:00

i want to know how to calculate steps taken using the Accelerometer. Actually i

  • 0

i want to know how to calculate steps taken using the Accelerometer. Actually i calculate acceleration and use this code to count step

length = sqrt(x * x + y * y + z * z);
if(length>=2){
   stepcount+=1;
}

where length calculate acceleration using acceleration.x, acceleration.y,acceleration.z
But my main problem at starting the application the stepcount gives correct step value but as time pass its value is not correct.Plz help me

  • 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-13T13:07:44+00:00Added an answer on May 13, 2026 at 1:07 pm

    Basically you’re using sudden acceleration over a certain value as a sign that someone is ending or starting a step.

    First, you have to make sure you end up sampling the accelerometer frequently enough not to miss a step. Then you’re going to have to make sure that you are guessing correctly about what your threshold should be.

    This is going to require a lot of trial and error.

    What I would recommend is graphing out what the length is over time and seeing if you can come up with a good threshold value that’s usually correct.

    But, regardless, it’s never really going to be accurate. I think the only way to really measure steps accurately is with a heel sensor in the shoe.

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

Sidebar

Related Questions

I'm writing c/c++ code on Windows using Visual Studio. I want to know how
This is my Code so far. I want to know how to return the
want to know why String behaves like value type while using ==. String s1
I want to know the difference between : $this->forward(module, action); And $this->redirect(module/action); My first
I want to know what this looks like. I don't have any ideas about
I have written a c++ program , I want to know how to calculate
what's the best way to calculate the average? With this question I want to
hi all i want to know that what actually dirty data means in dbms.
i want know if is possible, to get a specific element value of a
I'm making a chat responder for a game and i want know if there

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.