cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2DH12 what is the range of values that is expected in x, y and z axis? We have Configured the LIS2DH12 in the normal mode

VLaks
Associate

CTRL_REG2=00; CTRL_REG3=00; CTRL_REG4=0x80;CTRL_REG1=0x47 with this BDU =1, FS=2G, Normal.

ReadData(0x80|OUT_X_L_REG, data_raw_acceleration.u8bit, 6);

ax = (((float)data_raw_acceleration.i16bit[0] / 64.0f) * 4.0f)

ay = (((float)data_raw_acceleration.i16bit[0] / 64.0f) * 4.0f)

az = (((float)data_raw_acceleration.i16bit[0] / 64.0f) * 4.0f)

I am able to compile and print the data, What is the range of values I should expect for ax, ay, az ?

0 REPLIES 0