Go to Post Congratulations! You have been successful! You got what you wished for! Now get to work. - gblake [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2014, 18:47
michael_lin michael_lin is offline
Registered User
FRC #4572
 
Join Date: Jan 2014
Location: New England
Posts: 2
michael_lin is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2014, 09:58
gpetilli gpetilli is offline
Registered User
FRC #1559
 
Join Date: Jan 2009
Location: Victor, NY
Posts: 285
gpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to all
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.
Attached Files
File Type: pdf ADXL345 Datasheet.pdf (481.8 KB, 14 views)
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2014, 21:09
michael_lin michael_lin is offline
Registered User
FRC #4572
 
Join Date: Jan 2014
Location: New England
Posts: 2
michael_lin is an unknown quantity at this point
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?
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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