Log in

View Full Version : Bad values for accellerometer


michael_lin
29-01-2014, 18:47
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.

gpetilli
30-01-2014, 09:58
Did you enable it by setting the measurement bit in the power_cntl register 0x2D ? See attached datasheet page 16.

michael_lin
30-01-2014, 21:09
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?