Pages: 1 [2]   Go Down
Author Topic: Accelerometer X and Y axis reading meaning  (Read 1809 times)
0 Members and 1 Guest are viewing this topic.
United Kingdom
Offline Offline
Tesla Member
***
Karma: 220
Posts: 6587
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can only determine the angle at which the accelerometer is in relation to the vertical if it is not accelerating in a horizontal plane. The the acceleration you read from the X and Y sensors should be:

  g * sin(phi)

where g is the acceleration due to gravity (about 9.81ms^-2) and phi is the angle by which the axis you are reading (X or Y) is off the horizontal.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Pages: 1 [2]   Go Up
Jump to: