8 years, 6 months ago.

Not getting desired datarates with ADXL345.(always same datarates irrespective spi freq&bandwidth)

Hi, Here I'm using sparkfun ADXL345 with Nucleo-L053R8 in SPI communication. I'm surprised to see the same output datarates irrespective of input band width and spi frquency.

Pls see the photo. I'm using the standard libraries from mbed. https://developer.mbed.org/users/aberk/code/ADXL345/

I have made connections correctly as per the datashhet from sparkfun.

the statement accelerometer.setDataRate(ADXL345_800HZ) has no influence on the program.

Kindly help me with solution. Thanks in advance.

/media/uploads/mgvdatalogger/adxl_data_rates.jpg spi.frquency = the frquency for spi communication. ADXL345_...HZ = The input bandwidth supplied to the program. O/P freq = The output datarates that i can see on teraterm.

Be the first to answer this question.