Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Sensors (http://www.chiefdelphi.com/forums/forumdisplay.php?f=173)
-   -   Bad values for accellerometer (http://www.chiefdelphi.com/forums/showthread.php?t=125449)

michael_lin 29-01-2014 18:47

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.

gpetilli 30-01-2014 09:58

Re: Bad values for accellerometer
 
1 Attachment(s)
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

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?


All times are GMT -5. The time now is 07:58.

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