5 years, 1 month ago.

LIS3MDL

Hello Folks, I have configured the LIS3MDL magnetometer at +-8 gauss, 80 Hz, low power for x, Y, Z axis. So I am dividing the values read from X, Y and Z axis after combining them into 16 bits by 3421. Can you please guide me, what should be the maximum and minimum values ? Also the unit is gauss or milligauss ?

I have also enabled the temperature sensor, but after combining the (Temp_H<<8+Temp_L) I am dividing by 8.0f. But I am not getting the exact temperature ? What mistake I am making ? for room temperature of 18 degrees i am getting output 85 approx. I also didn't understand 0 value at 25 degree C.

Be the first to answer this question.