Z-direction acceleration with accelerometer/magnetic-field sensor

In summary, the conversation discusses a project of calculating the distance traveled by a mobile phone in the air using accelerometers and a magnetic-field sensor. The issue of flipping and spinning of the phone is addressed, and possible solutions are suggested such as using the rotation matrix and finding the real acceleration in all three axes. However, there are still concerns and questions about the accuracy and practicality of using these methods with the sensors available on the phone.
  • #1
ericrijnb
1
0
Hi all,

We're working on a project where we try to calculate the distance traveled by a mobile phone which is thrown in the air (only vertical movement, not horizontal).
We use the accelerometer to get the acceleration in the x-, y-, and z-axis. Now we try to fix the error caused by the flipping and spinning of a phone.

I found out that we can get the actual acceleration by taking the azimuth, pitch and roll of the phone, en by using the rotation matrix like this: http://upload.wikimedia.org/wikipedia/en/math/5/2/5/525d9c773a2ed0d6a41c48d9a3ea4291.png, we should get the real acceleration in the three axes.

But, something's going wrong. If I hold my phone still, everything's ok. If I rotate my phone over, say, the x-axis, the value of the z-axis of the 'real' acceleration also changes, which is wrong.

What should I do to get the actual acceleration of the phone in the three axes, using the accelerometer and magnetic-field sensor? I searched the forum, but couldn't find a solution which fits this situation.
Looking forward to any replies.

Greetz,
Eric
 
Mathematics news on Phys.org
  • #2
You haven't given enough information to specify a mathematical problem. For example, you didn't say how you used the matrix or what you think it represents.

You might get a quicker answer to your questions in the Classical Physics section of the forum since this is basically a question of kinematics. If you want it moved there, you can use the "report" feature and report your post The interface to the report feature makes it sound like its only to report naughtly things, but I've been told you can also use it to make such simple requests.
 
  • #3
Once your phone leave hand, it would be in free fall (ignoring air resistance), and the accelerometer measurements should be close to 0. The vertical distance is pretty much determined by the initial velocity of the phone when it leaves your hand. If I understand what you want to do correctly, then you should estimate the initial upward speed. So, which measurement do you think (ideally) can help you determine the yaw, pitch and roll? You don't have much choice here, but at least in theory, you should have sufficient information to determine that. Think a bit about that, what exactly are the coordinate systems you are using, and what rotation matrix are you trying to find, and what measurement is not going to change (at least in theory) no matter how you move and flip your phone?
 
  • #4
chingkui said:
Once your phone leave hand, it would be in free fall (ignoring air resistance), and the accelerometer measurements should be close to 0.

If so, it looks like this question needs comments from engineers as well as physicists. Taking the problem as a physics problem, one would assume that an accelerometer measures acceleration (in some commonly used intertial frame). However, on the web, I see articles that say the purpose of these accelerometers is to determine if the phone is tilted or moving. So perhaps the "accelerometer" in a cell phone doesn't really output an acceleration measurement.
 
  • #5
Consider a very simple single axis accelerometer model with a spring-mass inside a box: for simplicity, just consider 2-D space with a square mass and two springs. Connect the upper side of the mass to the inner upper wall of the box with a spring, and do the same thing to the lower side of the mass, now you have a simple single axis accelerometer. If you accelerate this sensor upward in an inertial frame, the mass will compress the lower spring and stretch the upper spring. You can measure the compression and figure out the force and hence the acceleration. So, in an inertial frame, this sensor measure the acceleration. Now, imagine you place this sensor on a table and magically turn gravity on, you no longer are in an inertial frame. But due to gravity, the mass inside the box compress the spring as if it is accelerating in an inertial frame. That's how an accelerometer "measure" gravity and by figuring out the downward direction relative to the sensor coordinate frame of your phone (using three orthogonal accelerometers), it can determine the tilt.
So, in an inertial frame, an accelerometer measure acceleration relative to that frame. But in a non-inertial Earth frame, to determine the acceleration RELATIVE to the Earth frame, the gravity component has to be subtracted from the accelerometer measurement. And you have to somehow know the gravity direction already.
 
  • #6
chingkui said:
the gravity component has to be subtracted from the accelerometer measurement. And you have to somehow know the gravity direction already.

I understand. So is the magnetic sensor used to determine the direction of gravity?
 
  • #7
Usually, this is done by keeping track of its own orientation as it moves. For a mobile vehicle/machine to keep track of its orientation relative to some coordinate frame attached to the Earth (e.g. an East, North, Up, ENU frame), inertial measurement units with gyros and accelerometers (and additional sensors such as magnetometers) are usually used. But since gyro is not available, OP has no choice but to use the magnetometer to track the orientation. Mathematically, if the motion is the most general 6 DOF type, fully tracking the orientation would be impossible as there would be at least some ambiguity. But since OP's application is more or less limited to vertical movement, such heuristic might help to get a better estimation. But I will let OP think a bit more about how to use the sensors and come up with a design, and determine if it is really practically possible with the sensors the phone has.
 

1. What is Z-direction acceleration?

Z-direction acceleration refers to the acceleration in the vertical or upward direction. It is measured in meters per second squared (m/s²) and is denoted by the letter "z".

2. How is Z-direction acceleration measured with an accelerometer/magnetic-field sensor?

An accelerometer/magnetic-field sensor is a device that measures acceleration and magnetic fields in three dimensions. To measure Z-direction acceleration, the sensor uses a specialized component called a Z-axis accelerometer, which is designed to specifically measure acceleration in the Z-direction.

3. What is the difference between an accelerometer and a magnetic-field sensor?

An accelerometer measures the acceleration of an object, while a magnetic-field sensor measures the strength and direction of magnetic fields. Both types of sensors can be used to measure Z-direction acceleration, but they work in different ways.

4. What are some common applications of Z-direction acceleration with accelerometer/magnetic-field sensors?

Z-direction acceleration with accelerometer/magnetic-field sensors is commonly used in various industries and technologies, including aerospace, automotive, robotics, and virtual reality. It can be used to measure the movement and orientation of objects, as well as for navigation and motion detection.

5. How accurate are Z-direction acceleration measurements with accelerometer/magnetic-field sensors?

The accuracy of Z-direction acceleration measurements with accelerometer/magnetic-field sensors can vary depending on the quality and calibration of the sensor. However, most modern sensors have a high level of accuracy and can provide precise measurements of Z-direction acceleration.

Similar threads

Replies
2
Views
9K
  • Introductory Physics Homework Help
Replies
9
Views
228
Replies
11
Views
1K
  • Special and General Relativity
Replies
24
Views
2K
  • Introductory Physics Homework Help
Replies
6
Views
1K
  • Mechanical Engineering
Replies
3
Views
457
  • Introductory Physics Homework Help
Replies
5
Views
1K
Replies
3
Views
1K
Back
Top