Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 28044

Re: problem with ADXL345 outputs

$
0
0

Hi,

 

1. Please try to make sure you can read DEVID (register 0x00) correctly.

2. Try to write a R/W register and read back to make sure there is no probelm on writing/reading the register.

3. When you read the 3-axes acceleration, please make sure you used burst (or say the multiple-byte) read, read 6 bytes together.

4. The initialization code could be as below.

     a. write 0x0B to register DATA_FORAT (0x31)     // full resolution mode, 3.9mg/LSB

     b. write 0x80 to register INT_ENABLE (0x2E)      //enable data_ready interrupt

     c. write 0x0A to register BW_RATE (0x2C)         //100Hz ODR

     d. write 0x08 to register POWER_CTL (0x2D)     //enable measurement

5. After you get data_ready interrupt, read 0x32~0x37. Of course, you can also use polling mode to read the acceleration.

 

BR

Neil


Viewing all articles
Browse latest Browse all 28044

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>