|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Bad values for accellerometer
My team has an acellerometer hooked up to SPI through the digital side car. We're using the default ADXL345 Accelerometer that came in the KOP
The only value we can get out of any axis is -26.105, even while shaking it around. Can anyone else diagnose our issue? We're using Java for our control system. |
|
#2
|
|||
|
|||
|
Re: Bad values for accellerometer
Did you enable it by setting the measurement bit in the power_cntl register 0x2D ? See attached datasheet page 16.
|
|
#3
|
|||
|
|||
|
Re: Bad values for accellerometer
We're using the built in class: ADXL345_SPI.
If I understand correctly, the constructor for the class should already enable the power bit? Or do we have to interface with the accelerometer manually? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|