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.

zero value from Accelerometer

Hi friends, 

I am using MSP4305438A + LIS331DLH MEMS digital output motion sensor. 

communication is I2C. I am separately read and write some register value of sensor. It works. 

But I am trying to do for tilting operation then it doesn't work. 

The process is working fine(Reading and writing during this operation, No NACK). 

But the coordinate values are always zero. (x,y,z). 

pls guide me... 

Regards, 

Keerthi G

  • Hi Keerthi,

    You may want to check that the motion sensor has been configured correctly, but unfortunately that is not a part that I can really help you with.

    Are you able to write a value into a register and then read it back and see that it was written correctly? Other than that I'd guess a configuration issue maybe with the sensor setup, but I think you might have to look to the manufacturer of that sensor for help with that part of it.

    Regards,

    Katie

  • Hi Katie Pier,

    Thanks for your reply. 

    I can able to write and read register value without error. 

    But the value of coordination register value always zero. 

     

    I think you might have to look to the manufacturer of that sensor for help with that part of it.

    ------------------------------------------------------------------------------------------------------------------------------------

    Ok, I will contact. 

    Regards, 

    Keerthi G

  • Hi friends, 

    I have resolved the problem. Problem in I2C write function. I have sent a stop condition after accelerometer sensor register address written. So the value didn't write to the register.  I have changed that and its working,

    Thanks for replying this post. 

    Regards, 

    Keerthi G.

**Attention** This is a public forum