LIS3MDL Magnetometer data reading Error
Hi All,
I am working on the LIS3MDL register on my board. But When I try to measure the Magnetic field Produced by motors, I am getting very high deviation.
My settings for the LIS3MDL are as below.
0x22 -- 0x00 (also tried with 0x22 -- 0x03)
0x21 -- 0x00
0x23 -- 0x0C
0x24 -- 0x00
0x30 -- 0x00
0x32 -- 0x00
0x33 -- 0x00
And I am setting 300 ODR (HP Mode).
(delay of 100 ms after reading 1 sample from each axis).
(Below para is for reference , you can also neglect).
So The deviation Which I am talking here is, when I collect samples/time, and convert frequency I get somewhere around 30-35hz but when I measured with other sensor(bosch sensortech) I am getting exact match of magnetic readings. (verified with field applied and also converting as above (same conversion) ) the exact match would be 50hz.
Sensor is connected over SPI (4 wires) mode.
Here I wanted to know, If I am doing correct settings in the register and also Is there any other settings/process.
So , Please if any one can point me out in right direction, that would be very helpful.
Thanks in advance.
(also enclosing the x,y,z raw samples file)
