|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||||
|
|||||
|
Re: accelerometer
The ADXL345 board in the Kit of Parts has the X, Y, and Z axes labeled.
|
|
#4
|
|||
|
|||
|
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?
|
|
#5
|
|||
|
|||
|
Re: accelerometer
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.
|
|
#6
|
|||
|
|||
|
Re: accelerometer
Ok thanks! Does the ADXL345_SPI class have a method to keep the angle?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|