IIS2DLPCTR: Why are Out_X,Y,Z values are constantly changing?
I got my PCB from the fab today. I am running a test program based on the code in https://github.com/STMicroelectronics/STMems_Standard_C_drivers/blob/master/iis2dlpc_STdC/example/iis2dlpc_read_data_polling.c
Since the Sensor-PCB is on my desk with no movement, I expected the X_Y_Z values to be constant.
However I am observing them changing every second, The data_raw_acceleration value read on line 179 Changes by a few 100's every second.
Am I missing something here?
How do I ensure that the value changes only when there is motion, and gives a fairly accurate estimate of the acceleration?
