1
\$\begingroup\$

I know this question is not fully related to aviation, but I assume the people on this subsection will also have some idea.

Suppose I have an accelerometer resting on a table(flat surface, horizontal). When I look from directly above, I see its reference coordinate system(it is labeled on it) as follows:

MPU6050 looking from above

(from this site)

When I monitor the accelerometer readings (Ax, Ay, Az) ,

X and Y values are 0 initially(as they should be), and when I push the accelerometer(well, I am pushing the entire breakout board indeed) in the +x direction let's say, there happens an increase first and a decrease when I stop pushing it( I guess because of inertial acceleration ) in the Ax value(in terms of g) which is not surprising. Same for the y axis movements.

So this makes me conclude that the g in here is pure 9.8 m/s^2 without the sign.

But when it comes to z axis I am getting confused. In the above setup - in which positive z axis is pointing through the ground - when horizontal and no external force is applied(other than gravitational); Az value is -1, i.e -g or -9.8 m/s^2.

There the question, what does this accelerometer output actually? In such a standing on a surface scenario, there is only a gravitational force on the device and it is pointing towards +z direction. So should not the sensor give + 1g instead of - 1g ?

I guess I have misunderstood some concepts about these sensors(accelerometers).

Please explain me, thanks.

\$\endgroup\$

migrated from aviation.stackexchange.com Jul 26 at 12:15

This question came from our site for aircraft pilots, mechanics, and enthusiasts.

  • \$\begingroup\$ You might be interested in the discussion in comments to David Hammen's answer to Can Voyager still use its thrusters to avoid hazards? on our sister site Space Exploration. \$\endgroup\$ – a CVn Jul 26 at 11:45
  • \$\begingroup\$ @aCVn I will have a look at it, thanks \$\endgroup\$ – muyustan Jul 26 at 11:48
  • \$\begingroup\$ Most likely the value is inverted somewhere before it's displayed to you, or the module is not lying upside-down when you measure. Impossible to tell without knowing what software you're using. Also, you were right: this is not an EE question and AEhere was IMO wrong when they suggested to migrate it here. \$\endgroup\$ – Dmitry Grigoryev Jul 26 at 12:44
  • \$\begingroup\$ @DmitryGrigoryev hey, value is not inverted, it is directly read from the register. I have checked all my drawings and setup because there were so many people said something is wrong. But nothing is inconsisten with my original post. \$\endgroup\$ – muyustan Jul 26 at 12:57
5
\$\begingroup\$

When the sensor is horizontal (back of the PCB flat on a level table) with the package of the chip "up" (so you can read the printing on the chip) the Z axis should read about +1g and the X and Y should indicate close to zero depending on how close to horizontal the package is.

The X and Y readings are proportional to the cosine of the angle to level. The Z reading is proportional to the sine of the angle to vertical.

It is not possible to distinguish gravity from acceleration (Equivalence Principle).

Edit: An acceleration of 1g upward behaves the same as gravity downward. Imagine you're in an closed room floating in space, and then the room is accelerated upward at +9.8m/s^2, the force you feel inside the room would be the same as the gravity on earth.

\$\endgroup\$
  • \$\begingroup\$ hey, yes if its up portion looks to sky then it reads +1 g. But you actually did not answer my question. I wonder why it is +1 g while the gravity is towards the ground. And if it is because of the g is taken as - 9.8 then why a force in +x direction results in a + multiple of g. \$\endgroup\$ – muyustan Jul 26 at 12:59
  • \$\begingroup\$ I should add that "reading the printing" is not a factor to distinguish pcb's orientation because points up or down I can read pins names. \$\endgroup\$ – muyustan Jul 26 at 13:01
  • 2
    \$\begingroup\$ Reading the printing on the chip. The PCB is of little importance, all the smarts are inside the chip. The chip datasheet should also be your primary reference. \$\endgroup\$ – Spehro Pefhany Jul 26 at 13:03
  • 1
    \$\begingroup\$ Hmm I got it what you want to say now. \$\endgroup\$ – muyustan Jul 26 at 13:05
  • \$\begingroup\$ Can I also ask you something else? How can I understand the logic behind getting the roll and pitch values from accelerometer readings? Everyone on the internet just uses some formulas they don't also know but don't explain how to modify equations in order to get correct angles according to your own axis choices. \$\endgroup\$ – muyustan Jul 26 at 13:36
2
\$\begingroup\$

The sensor would only measure zero in the Z direction if it was in free-fall. From the sensor's point of view, the table is pushing on it, accelerating it upward. Described here also:

https://www.physicsforums.com/threads/remove-gravity-from-accelerometer-values.755035/

http://www.lunar.org/docs/LUNARclips/v5/v5n1/Accelerometers.html

\$\endgroup\$
  • \$\begingroup\$ So what you measure would be the normal vector (Rn) from gravity acting on the chip (table), as you can't sense "gravity" it makes sense, I guess. \$\endgroup\$ – Sorenp Jul 26 at 12:47
  • 1
    \$\begingroup\$ If this is the case then I am OK with why it is outputting a minus g. I mean the part "the table is pushing on it, accelerating it upward." \$\endgroup\$ – muyustan Jul 26 at 13:06
  • \$\begingroup\$ Here is another way of looking at it. I know that your accelerometer is not a piezo, but consider a piezo accel. It has a small mass attached to a piezo sensor, the piezo sensor is between the mass and the case. Assume that the piezo is below the mass, towards the earth. Gravity will compress the piezo slightly. In the absence of gravity, accelerating the case upward will also compress the piezo. \$\endgroup\$ – Mattman944 Jul 26 at 16:11
  • \$\begingroup\$ @Mattman944 so, an accelerometer is sensing all forces/accelerations other than gravity then? Because in freefall the accelerometer gives 0 as output while it is actually accelerating with a pure 1g. \$\endgroup\$ – muyustan Jul 27 at 6:10
  • 1
    \$\begingroup\$ @muyustan - cannot sense gravity is a little misleading. A better way to think about it is that gravity is indistinguishable from acceleration. You also have to consider the frame of reference. Spehro's link is good, here is another: physicsoftheuniverse.com/topics_relativity_gravity.html If you have access to a physics professor, they should be able to explain it better. And although I answered your main question first, Spehro has a better understanding of inertial navigation than I do. \$\endgroup\$ – Mattman944 Jul 27 at 13:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.