Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   accelerometer (http://www.chiefdelphi.com/forums/showthread.php?t=113834)

Kingston951 18-02-2013 01:01

accelerometer
 
Hello,

We would like to get the acceleration in a certain axis, but the acceleration doesn't seem to be correct. We tried to replace the accelerometer, but still it just doesn't seem to be correct.
The accelerometer is ADXL345_SPI.

So our question is: what does each axis represent? (as for: moving direction).

It might be a little stupid, but we're out of time and we need help, so thanks in advance.

AndrewGRowles 18-02-2013 01:18

Re: accelerometer
 
I haven't used an accelerometer before, but here are some diagrams of what each axis represents.

I recommend posting your code to the forums so others can better understand your issue.

Alan Anderson 18-02-2013 08:34

Re: accelerometer
 
The ADXL345 board in the Kit of Parts has the X, Y, and Z axes labeled.

Sparkyshires 20-02-2013 14:58

Re: accelerometer
 
This is actually a question that I've had for a while. Does the accelerometer measure acceleration or angle? For ex. does it increase as your moving it, then go back to zero when it's a stand still, or does it keep your angle as you move it?

EricVanWyk 20-02-2013 15:06

Re: accelerometer
 
Quote:

Originally Posted by Sparkyshires (Post 1237317)
This is actually a question that I've had for a while. Does the accelerometer measure acceleration or angle? For ex. does it increase as your moving it, then go back to zero when it's a stand still, or does it keep your angle as you move it?

Accelerometers measure acceleration, including the acceleration due to gravity. Because it is sensitive to gravity, it can be used to measure angle with respect to the earth provided that there are no other forces at play.

Sparkyshires 20-02-2013 15:42

Re: accelerometer
 
Quote:

Originally Posted by EricVanWyk (Post 1237322)
Accelerometers measure acceleration, including the acceleration due to gravity. Because it is sensitive to gravity, it can be used to measure angle with respect to the earth provided that there are no other forces at play.

Ok thanks! Does the ADXL345_SPI class have a method to keep the angle?


All times are GMT -5. The time now is 13:02.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi