View Single Post
  #17   Spotlight this post!  
Unread 10-02-2013, 23:58
tandeson tandeson is offline
Registered User
FRC #3662
 
Join Date: Feb 2013
Location: Everett,WA
Posts: 1
tandeson is an unknown quantity at this point
Re: ADXL345_I2C Help

We've been using the ADX345_SPI class, and we tried to use ADXL345_I2C without any luck.

however, I was reading though the part datasheet tonight, and I think the issue is that you have to hold the Chip Select line high to select I2C mode.

See page 18 of the part datasheet:
http://www.analog.com/static/importe...ts/ADXL345.pdf

We'll probably stick to the SPI mode because we've got it working. Though we're considering modifying the class slightly from what WPI provides. (We'd like to add a calibration function, as described in the User's Guide).

If you get it to work in I2C mode, I'd be interested in hearing about it.
Reply With Quote