Tracking phone (relative) height with precision within 10 cm

232 Views Asked by At

I am trying to track changing phone height. The initial phone height can be inputted. I would like to track the height quite precisely (less than +- 10 cm range), and for a prolonged period of time (at least few minutes). Hopefully, I would have height estimates every <100ms. Ideally, the phone should be kept in a pocket, so I don't think camera-related methods could work.

I have tried using the barometer, but it seems too inaccurate and slow. I have also tried numerically integrating the accelerometer data but it seems to work for few seconds max.

I have been playing around with this for a while, I was wondering if there is any better method I did not consider, or if my goal is possible at all. Eg, I could try finding better integration methods for the acceleration. Is my goal feasible?

Added: if I could know WiFi RSSI, combined with acceleration, would they improve precision by much?

1

There are 1 best solutions below

0
On

Your goal isn't feasible. Accelerometers are way too noisy, and can be effected by ambient vibrations. I'm less familiar with barometers, but they don't tend to be accurate. Remember you don't have scientific equipment in there, you have stuff that's meant for consumer level use.

Your best bet is actually probably the camera. Take a picture of an object of known height on the ground and use trig to figure out what the angle to it is. Of course that's not suited to general purpose computing or height, but is good enough for some purposes.