Unstable values with LSM303 - accelerometer

Discussion in 'Embedded Systems and Microcontrollers' started by davemart, Jun 28, 2014.

  1. davemart

    Thread Starter New Member

    Feb 25, 2014
    I'm not sure that I'm write in the right place. So if this topic does not match with the section, please move it.

    I'm trying to work with a accelerometer from ST, the LSM303DLHC.
    Now I can communicate with it and receive some data.

    The problem is it the data are very unstable for axes X and Y, especially with it stopped, without any kind of shake.

    Is it normal, with this conditions, the values changes between -200 and +200 (with scale of +-2g)?

    Grateful for your help
  2. davemart

    Thread Starter New Member

    Feb 25, 2014
    Anyone can tell me if this is a normal situation?
  3. THE_RB

    AAC Fanatic!

    Feb 11, 2008
    I've never used that device, but a quick google showed that it uses I2C data interface;


    I think the most likely cause of the problem is that your software is not working correctly to interface to the device.

    Accelerometers when left alone always produce a highly stable output, never a change from -200 to +200!