Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 11 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.
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.