cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong output 0 0 0 or -1 -1 -1 for ADXL345 accelerometer in SPI

gandhi
Associate II
Posted on October 27, 2015 at 12:42

Hi,

I'm programming the ADXL345 3-axis sensor for my thesis project. Initially i made the program in I2C and its working fine. Later on i switched to SPI mode for better speeds. Unfortunately the device is not working in SPI. The device address is 0x00  always. 

I double checked my all connections. They are perfect.  I put some delay after CS also. still no output. Kindly some one help me out. Thank you.
0 REPLIES 0