How can I track positions from acceleration values?

AI Thread Summary
To track positions from acceleration values for a toy car, the initial position and velocity can be set to zero, using the formula x = x0 + v0t + at^2/2, where 'a' is the acceleration from the accelerometer. It's important to focus on the x-axis for forward movement, as the y-axis may not be relevant. Numerical integration methods, such as the trapezoid rule, can be applied to convert acceleration data into velocity and position over time. The accuracy of the results will depend on the frequency and precision of the accelerometer outputs. Properly implementing these calculations should help in plotting the track effectively.
dokkdurs
Messages
1
Reaction score
0
Hello

I'm new to this forum and i was wondering if anyone here can help me with a problem I'm having.

I am trying to plot a track on which a toy car is running.The voltage on the motor stay the same.An accelerometer feeds me values on x,y and z axis(the z values stay pretty much the same).My problem is this : tracking positions from acceleration values.I am receiving values in -5000 and +5000.I have tried some methods of plotting the track but with no real results.

Thank you and sorry if this threads violates any forum rules or if i am too noob
 
Physics news on Phys.org
Answer from also a n00b:

So your position is
x=x_0 + v_0 t + at^2/2
where x0 is the initial position, v0 is the initial velocity (i guess you might want to set them to zeros), and then a is the acceleration that your device is giving, while t is the time. Does this help?

P.S. I've noticed you get x and y accelerations, but I would only expect x to be relevant, i.e. you only want to know how the toy car goes forward. Isin't this the case?
 
Last edited:
If the acceleration varies over time, you'll need to do some form of numerical integration to convert accelerations into velocities and positions. Accuracy and frequency of the accelerometer outputs will be an issue.

Given a set of accelerations versus time with time elapsed between sample of Δt, and initial velocity v[0], and posiion p[0], for each axis, then you can calculate velocities and positions based on average acceleration and velocity (trapezoid rule):

a[...], v[0], p[0] are given

v[1] = v[0] + 1/2 (a[0] + a[1]) Δt
p[1] = p[0] + 1/2 (v[0] + v[1]) Δt

v[2] = v[1] + 1/2 (a[1] + a[2]) Δt
p[2] = p[1] + 1/2 (v[1] + v[2]) Δt

...

This should get you close.
 
Last edited:
The rope is tied into the person (the load of 200 pounds) and the rope goes up from the person to a fixed pulley and back down to his hands. He hauls the rope to suspend himself in the air. What is the mechanical advantage of the system? The person will indeed only have to lift half of his body weight (roughly 100 pounds) because he now lessened the load by that same amount. This APPEARS to be a 2:1 because he can hold himself with half the force, but my question is: is that mechanical...
Hello everyone, Consider the problem in which a car is told to travel at 30 km/h for L kilometers and then at 60 km/h for another L kilometers. Next, you are asked to determine the average speed. My question is: although we know that the average speed in this case is the harmonic mean of the two speeds, is it also possible to state that the average speed over this 2L-kilometer stretch can be obtained as a weighted average of the two speeds? Best regards, DaTario
Some physics textbook writer told me that Newton's first law applies only on bodies that feel no interactions at all. He said that if a body is on rest or moves in constant velocity, there is no external force acting on it. But I have heard another form of the law that says the net force acting on a body must be zero. This means there is interactions involved after all. So which one is correct?
Back
Top