Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15733

Object depth tracking with magnetometer

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 15733

Latest Images

Trending Articles



Latest Images