Skip to main content
Visitor II
March 7, 2018
Question

Facing problem while fetching data from LIS2DE12 over I2C

  • March 7, 2018
  • 2 replies
  • 2013 views
Posted on March 07, 2018 at 13:10

Hello People,

I am trying to get data over i2c from LIS2DE12  sensor. Here I am attaching a screenshot so you can see the way I am configuring its register to read data for x,y and z axis. I dont want to use any interrupt. Simply want to read data.

0690X00000609yxQAA.png

0690X00000609ysQAA.png 

#lis2ds12 #lis2d #mems #mems-accelerometer #lis2de12 #lis2dw12
    This topic has been closed for replies.

    2 replies

    ST Employee
    March 7, 2018
    Posted on March 07, 2018 at 14:45

    Can you please explain exactly what is the problem?

    Visitor II
    March 8, 2018
    Posted on March 08, 2018 at 05:09

    I want to get data from 

    LIS2DE12 sensor

    continuously. I have made configuration to fetch data for x,y and z. But I am not sure wheather they are perfectly configured or not because I am getting same data every time I run the program even if I move the sensor the data remains same. Can you help me with this with proper step by step procedure.

    Thanks 

    ST Employee
    March 10, 2018
    Posted on March 10, 2018 at 16:17

    Please share the sensor configuration in some easily readable format (register + value).

    Visitor II
    March 12, 2018
    Posted on March 12, 2018 at 10:57

    Hi Moroslav

    Thanks for your suggestion. its work.

    If i use data ready interrupt in INT1 pin. then which configuration i do?

    Thanks

    Nitin Kanani  

    ST Employee
    March 12, 2018
    Posted on March 12, 2018 at 15:14

    To enable DRDY interrupt on INT1 pin set the bit I1_ZYXDA in the CTRL_REG3.

    0690X00000609tkQAA.png