cancel
Showing results for 
Search instead for 
Did you mean: 

Setting up LIS2DH for 6D movement recognition

mvonahnen
Associate III
Posted on November 27, 2013 at 22:37

I am trying to setup the LIS2DH to detect movement and drive INT1.  The documentation is not clear what needs to be configured to do this.

CNTL_REG3 appears to select the sources for INT1.  There are two that are AOI options.  I am assuming since the 6D movement function is associated with the AOI (Table 51, Interrupt Mode), that at least one of these bits needs to be set in this register.

In INT1_CFG, it is clear that bits 6 and 7 can be set for ''6 direction movement recognition'', but do the other bits also have to be set?

Is there an example of using this mode for this part or similar parts?

#lis2dh
1 REPLY 1
Thiago REIS
Associate II
Posted on December 05, 2013 at 15:47

Hello Michael,

In order to setup LIS2DH for 6D movement recognition, you have to configure INT1_CFG (30h) to enable the detection of the 6 direction detection function, and also on CTRL_REG5 (24h) to consider it as an Interrupt either on INT1 or INT2.

I have attached an image with my recommendation for the registers setup and also the datasheet where you can find in table 38, 49 and 50 more details about it.

Thank you very much,

Thiago Reis

________________

Attachments :

6D_Orientation_Registers_Setup.PNG : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzHs&d=%2Fa%2F0X0000000bK6%2FTL2M8VU_5M8nJz1gCZ8Na.MNFL.msLOvSWfIgWGcy7U&asPdf=false