Help accelerometer adxl345 spi for fast datalogger
mauro.adsl
Posts: 3
Hello,
I am Italian and I d'ont speak English well. I'm sorry.
I'm looking for SPIN files for communication between the propeller and ADXL345 accelerometer in the SPI for fast data logger.
I can't make it work in SPI mode.
Someone can help me please?
Thank you.
I am Italian and I d'ont speak English well. I'm sorry.
I'm looking for SPIN files for communication between the propeller and ADXL345 accelerometer in the SPI for fast data logger.
I can't make it work in SPI mode.
Someone can help me please?
Thank you.
Comments
Then I connected the sensor spi mode but I can not make it work.
I can not configure the SPI protocol for communication.
Accelerometer MMA7455 I have never used resistors in SPI mode and it worked.
I send you my code and the data sheet for adxl345.
Thanks for your patience. Hello.
The main thing you are looking for is data being returned to the Prop on the MISO line. If there is something coming back, you know you have successful SPI communication with the slave device, you may just be programming it wrong in that case. If you get nothing back, then you might be transmitting the data at the wrong speed (The ADXL345 has a max clock speed of 5MHz) or you may not be transmitting in the right SPI mode (0, 1, 2 or 3).