Acceleration compensation (3 Axis accelerometer)

AI Thread Summary
The discussion focuses on the challenges of using a 3-axis accelerometer to measure distance while accounting for gravity's influence during motion on inclined and cambered surfaces. The user is trying to isolate the gravitational components affecting the x, y, and z axes when the accelerometer is mounted on a vehicle, particularly when navigating slopes. It is noted that a single accelerometer cannot unambiguously determine orientation relative to gravity, especially in scenarios like free fall. The conversation suggests that incorporating a gyroscope could help address the limitations of the accelerometer in detecting rotation and improving measurement accuracy. Ultimately, the user is exploring solutions to avoid using a more expensive optical shaft encoder for distance calculations.
mitchjp
Messages
3
Reaction score
0
Hi all,

I am currently working on a project and have a problem. I am using a 3 axis accelerometer and attempting to measure distance with it. (Yes, I know, the double integration of doom..)

My problem is not with the integration so to speak but is just with some compensations.

The accelerometer will be mounted so that the x-axis is always pointing in the direction of motion. The y and z axis will be subject to angle changes up to about 20 degrees. Similar to mounting in on top of a car. (X is forward, Y is side to side, Z is up and down).

Obviously if the car was driving up a hill the acceleration you read in the x will be different as there is now a gravity component involved. I can calculate this using the Z axis to find the tilt angle and then some trig to remove the gravity component from the x axis.

But if the car was driving on a cambered road up a hill, then the y-axis will have a gravity component, as will the x and the z axis will be some amount with its angle being a combination of the two. This is what I am having trouble with.

How can I decide which part of the z axis accel is caused from the y-axis tilt, and which is from the x axis?

An example:

Car going up a hill on 10 degree slope. No camber in the road.

Z axis now shows an 80 degree angle, and the acceleration in the x direction will just be whatever it is measured and then minus/plus(depending on the sensors config) the sin(10 degrees).

This is working in g's then multiply through to get to m/s/s.

Now if you add cambered road, the z will show the y tilt and the x tilt and I can't work out how to do it.

Any ideas?

And yes I am aware tracking distance with accelerometer is frowned upon, but it is most likely just going to be used for short intervals between gps locks.

Also, is there an easy MATLAB function for integrating the acceleration in 3 axes with respect to time?

Thanks
 
Physics news on Phys.org
There is no simple solution to this problem. Your integrator must know the orientation of the sensor with respect to the local field of gravity. A single accelerometer cannot do that unambiguously. To see that, imagine the car is in free fall. The sensor will register zero in all directions.
 
voko said:
There is no simple solution to this problem. Your integrator must know the orientation of the sensor with respect to the local field of gravity. A single accelerometer cannot do that unambiguously. To see that, imagine the car is in free fall. The sensor will register zero in all directions.

Thanks for the reply. I do understand this.

However, as mentioned this is just an interim measurement. So we can assume that I will know the starting velocity.

For now I am testing on a skateboard-like thing, so I can say that initially there is no movement and distance is zero.
 
Even if you know the velocity, you still cannot detect rotation about the axis parallel to velocity. As far as I can see, you need an additional input for that. Don't you have a gyroscope in your setup?
 
I can add a gyroscope if needed. This whole thing was to eliminate using an optical shaft encoder in calculating distance. (Removing the shaft encoder reduces cost, vehicle installation etc etc). So if we had a gyro in there which was high enough spec to be useful it may end up costing a similar amount.

However, it is definitely possible to whack one on there.
 
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