IIS2DH Reading FIFO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-12 4:08 PM
With a 2g scale sampling @25Hz the FIFO fills with data and I am reading the contents up to the watermark. HR and LPen are disabled.
With the Z-Axis pointing toward earth I get the following data for the X-Axis using the H and L bytes:
DATX=128
DATX=128
DATX=128
DATX=-64
DATX=192
DATX=-128
DATX=-64
DATX=0
...
First, why are the values multiples of 32? Second, why the variability when the chip is still and not moving? I have been using the LIS3DSH for a couple years now so this IIS2DH is a real downgrade for sure, but I must be missing something. I have read over the manual several times now and can't find my issue.
-AP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-13 12:56 AM
The values are actually multiples of 64, because the FIFO contains 10-bits values. 10-bits value are left adjusted in output register which is 16 bits.
You should divide the value by 64 and then multiply by the sensitivity.
The variation is caused by the inherent noise. There could be also small vibration of the desk where the sensor is places.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-13 7:42 AM
Ahh, of course...I was treating it like a 16bit value. The variance in the values also make more sense now. Thanks for the quick reply!
