cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2DE12 , cant read x,y,z values

M4D
Associate II

hi,

i'm trying to read x,y,z values using FIFO - LIS2DE12_FIFO_READ_START

but every time get zero in all the answers, also try to read separately x,y,z

in the address LIS2DE12_OUT_X_H,LIS2DE12_OUT_Y_H,LIS2DE12_OUT_Z_H

in this mode I'm getting values but always the same values - the numbers dont changes

(I used the driver from this link in the same configuration -

https://github.com/STMicroelectronics/STMems_Standard_C_drivers/tree/master/lis2de12_STdC , read_data_simple.c) - this don't work

in addition the who-iam check is working.

Thanks,

Maor

1 REPLY 1
Ozone
Lead II

I had a similar effect with the MKI137 (LIS3MDL sensor) and the Unico application.

I only got consistent sensor values other then zero once I set the sensor to a run-mode from the GUI. Default was Low Power mode (CTRL_REGs 1 & 4 for the LIS3).