Simple question about acceleration from accelerometer

In summary: But there is always the potential for inaccuracy.I get the idea, hope it will work, thanks for the answers :)In summary, the developer is trying to calculate the velocity of an object in three dimensions. However, the device gives him positive and negative acceleration values, which makes it difficult to determine the velocity.
  • #1
Tibo
4
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
  • #2
Does your device give you both positive and negative acceleration values?
 
  • #3
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.
 
  • #4
Drakkith said:
Does your device give you both positive and negative acceleration values?
Yes it gives me both negative and positive values
 
  • #5
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?
 
  • #6
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.
 
  • #7
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.
 
  • #8
I get the idea, hope it will work, thanks for the answers :)
 
  • #9
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.
 

What is an accelerometer?

An accelerometer is a scientific instrument that measures acceleration, which is the rate of change of velocity with respect to time. It measures the acceleration of an object in a specific direction and can be used to determine the movement or position of the object.

How does an accelerometer work?

An accelerometer works by using a mass attached to a spring. When the object moves, the mass moves as well, causing the spring to stretch or compress. This change in position is measured by tiny sensors known as piezoelectric crystals, which convert the mechanical energy into electrical signals that can be read by a computer.

What is the difference between acceleration and velocity?

Acceleration is the change in velocity over time, while velocity is the speed of an object in a particular direction. Acceleration can be positive, negative, or zero, while velocity can only be positive or negative depending on the direction of movement.

Can an accelerometer measure both linear and rotational acceleration?

Yes, some accelerometers are designed to measure both linear and rotational acceleration. These types of accelerometers are often used in devices such as smartphones, gaming controllers, and fitness trackers to track both the movement and orientation of the device.

What are the practical applications of accelerometers?

Accelerometers have a wide range of practical applications, including navigation systems, motion sensors in cars, and vibration analysis in machinery. They are also commonly used in sports and fitness technology, such as pedometers and activity trackers, to monitor movement and track physical activity.

Similar threads

Replies
12
Views
3K
Replies
17
Views
1K
  • Mechanics
Replies
4
Views
2K
  • Mechanics
Replies
4
Views
639
  • Mechanics
Replies
28
Views
2K
Replies
3
Views
1K
Replies
4
Views
4K
  • Introductory Physics Homework Help
Replies
7
Views
811
Back
Top