Simple question about acceleration from accelerometer

Click For Summary

Discussion Overview

The discussion revolves around calculating velocity from accelerometer data, specifically addressing the challenges of interpreting acceleration values in both positive and negative contexts. Participants explore the implications of using 3-axis acceleration data and how to derive meaningful velocity information from it, considering both theoretical and practical aspects of motion in two dimensions.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant describes their application development and the challenge of calculating general acceleration and velocity from 3-axis acceleration data, noting that their current method results in always positive acceleration.
  • Another participant questions whether the device provides both positive and negative acceleration values, seeking clarification on the nature of the data.
  • It is suggested that acceleration has both magnitude and direction, and a method is proposed to calculate velocity components in each dimension to determine if acceleration is positive or negative based on changes in velocity.
  • A participant expresses the need for 3-dimensional velocity calculations while acknowledging that one dimension (y) may introduce noise.
  • There is a discussion about tracking velocity and acceleration in each dimension and defining a positive direction for clarity in interpretation.
  • A later reply raises concerns about the limitations of calculating velocity when the accelerometer moves in a circular path, emphasizing that reducing vector information to scalar values can lead to loss of critical directional data.
  • Participants consider the merits of establishing a reference direction for positive values, suggesting that the approach may depend on the specific application and the information being conveyed.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method for calculating velocity from acceleration data, with multiple competing views on how to interpret and utilize the data effectively. The discussion remains unresolved regarding the optimal approach to account for directionality in acceleration and velocity calculations.

Contextual Notes

Limitations include potential noise in the data, the complexity of interpreting multidimensional acceleration, and the challenges of maintaining directional information when converting vectors to scalars.

Tibo
Messages
4
Reaction score
0
Hi,
I'm currently developing an application. I'm practically done, but I have one big issue (for me). So I have 3-axis acceleration from my android device. Now I want to have the general acceleration at time t, because after that i want to calculate velocity.
So, what I know:
to get velocity there is this formula : v=u+at
to get the general acceleration: √x^2+y^2+z^2

The problem: With this two formulas my acceleration is always positive so my velocity is always speeding up.
Is this normal ? How to I get negatives accelerations ?

Thanks for your answer
 
Physics news on Phys.org
Does your device give you both positive and negative acceleration values?
 
Since acceleration could be positive in x direction and negative in y direction and either in z direction, which is it. Acceleration has magnitude and direction. But if you are wanting to display a positive or negative (representing speeding up or slowing down) then try this: calculate vx = ux + axt, vy = uy + ayt, vz = uz + azt. Then find the value of |v| = √(vx2 + vy2 + vz2). Then you could look at the current |v|, see if it is greater or less than the previous |v|, then you will know if acceleration is positive or negative.
 
Drakkith said:
Does your device give you both positive and negative acceleration values?
Yes it gives me both negative and positive values
 
Tibo said:
Yes it gives me both negative and positive values

Okay. Now, are you working solely in one dimension, or do you need to know the 3-dimensional velocity?
 
Drakkith said:
Okay. Now, are you working solely in one dimension, or do you need to know the 3-dimensional velocity?
I need to know the 3-dimensional velocity. But my device theoretically moves in 2-dimension (x,y) y is like a kind of noise if you know what i mean, but i take it into account.
 
I don't know what you mean, but I'd say that you should track the devices velocity and acceleration in each dimension as well as the total velocity. We can call the total velocity "speed" and just take it as the magnitude of the velocity, where the individual velocities of each dimension are the vector components. You can then pick a direction that you want to call the "positive direction" and if your vector points in that direction then the velocity is positive. If not, it's negative.
 
I get the idea, hope it will work, thanks for the answers :)
 
I just realized at least one situation, where my method of calculating |v| and the change in |v| won't yield proper results. If the accelerometer is moving in a circle, you could have a constant magnitude acceleration (pointing toward the center) and constant magnitude velocity (tangent to the circle). Any time you are stripping the direction portion of a vector and turning it into a scalar, you will lose information about what is going on.
The idea of picking one direction to be positive, and reference everything to that has some merits. I guess it depends on your application, and what type of information you are trying to convey.
 

Similar threads

  • · Replies 47 ·
2
Replies
47
Views
5K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
Replies
11
Views
24K
  • · Replies 46 ·
2
Replies
46
Views
4K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 1 ·
Replies
1
Views
13K
  • · Replies 14 ·
Replies
14
Views
2K