View Single Post
  #6   Spotlight this post!  
Unread 03-10-2014, 10:43
wre136's Avatar
wre136 wre136 is offline
Registered User
AKA: Will Edds
FRC #2461 (The METAL-SKINS)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2002
Location: Oklahoma City
Posts: 30
wre136 is an unknown quantity at this point
Re: ADXL345 Accelerometer and Arduino

Attached is the code I found that should work but doesn't. Yes, we are using the Andy Mark am-2067 sensor module. Thank you for verifying.

In the example, it holds the Chip Select (CS) pin high and holds it low when actually transferring data (Both directions). When I read files, all I get when converted to an int is -1, -1, -1 for all 3 variables. So I am wondering if perhaps I have it cabled incorrectly, if I'm not actually sending the correct hex codes (or the code isn't being converted correctly), it I'm not sending MSB First or what. Just finding this difficult that I cannot get it to respond to anything I send.

Will
Attached Files
File Type: zip ADXL345_Basic.zip (1.6 KB, 163 views)