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 15:05

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.
1 REPLY 1
Posted on October 29, 2015 at 15:32

Sorry dear customer,

but the Low Power RF Solutions forum is exclusively dedicated to Bluetooth Low Energy and Spirit1 devices, thus here you cannot find the right support you deserve.

Regards,

Low Power RF Solutions support team

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.