This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Random Values from Accelerometer in Static Position

Other Parts Discussed in Thread: CC2541

Dear Friends,

 I am working on  a project where the Accelerometer (LIS2DH12 ) is connected to CC2541 via I2C communication. I got into a problem where the Accelerometer (LIS2DH12 ) continuously reads random values even though it is kept in static position. I have made sure all the registers of LIS2DH12 are properly configured.

Without even moving the accelerometer the values are changing on all the axes for every read.

Is there any specific configuration that needs to be done on the Accelerometer side to resolve this issue?

Any help in resolving this issue will be greatly appreciated.

 

Best Regards,

Krish.

  • Hi Krishna,

    I don't know the accelerometer but they tend to be fairly stable. I would test more than 1 to rule out any defects.

    Except for that, probe the I2C traffic both with an oscilloscope (to check signal integrity) and a logic analyzer such as Saleae Logic to decode data from I2C and compare to what you decode inside the chip. It might be as easy as a SW bug include some bytes to few/many into your decoding causing the data to look random.

    Regards,
    Svend