Hello,
I have a 3-axis magnetometer and a small plastic box of known size. The magnetometer is fixed to the bottom of the box, and I am trying to track the depth of the object within the box, which I have been able to successfully do by recording the magnetometer values for the Z-axis at known positions, finding a calibration curve, fitting an equation, and then solving the equation in real-time for depth.
However, the issue I have is that the magnetometer values for the Z-axis (depth) change if the object moves horizontally (in the x or y plane). Therefore, unless the object is directly in the position in which I made the calibration curve, the depth readings become inaccurate. So my question is, would anyone have an idea of how to ensure the depth readings can be consistently accurate even when the object moves horizontally?
Thanks.
6 posts - 2 participants