SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By static
#57070
Hi

I've been working on a prototype, where a MCU gathers the accel data from the LIS3LV02DL (i use the DL version, not DQ) and sends x,y and z (both high and low bytes) as a simple bytestream over a serial port. The host PC collects the data and uses it to control a visual representation (modifies the rotation matrix of a 3d model)

So the operation of the prototype is simple: tilt the MCU board in air, see the 3d model on PC tilting accordingly

The problem that i've noticed is that the LOW byte of say X coordinate overflows/underflows at different points in sampling time than when the HIGH byte of X increments/decrements, as if there is some kind of numerical/temporal discontinuity between HIGHX and LOWX bytes. This results in jerky movements seen on the model.

Did anyone see this problem? or may know a possible solution

Cheers