Distance measurement open circuit

distancemeasurement

I'm currently working on a project where a sliding metal box is mounted on a metal pole. The box moves up and down. At the top of the metal box is a small processing unit that needs to know the distance between it's position and the ground. I'm currently investigating placing an IR or ultrasonic distance sensor and simply measuring the distance to the ground that way.

Since i'm just a software guy that has never learned electronics properly, I was wondering if there is some alternative way to measure the distance to the ground, maybe making use of the conductivity between the sliding box and the pole. Is it possible to use some kind of cheap device mounted at the bottom of the pole and the appropriate sensor on the box for this purpose? Or should I just stick with the IR or ultrasound?

Some more info:

  • I can't run a wire between the 2 devices to make a closed circuit. Or make any drastic changes to the pole (no magnetic or optical encoders).
  • The device on the bottom and the appropriate sensor should be about 20 dollars (or less)
  • I need to measure distances ranging from 10cm to 2m with a resolution of about 0.5cm

enter image description here

Best Answer

Consider using a string pot. http://www.celesco.com/faq/cet.htm

Otherwise, to stick with your original idea, you could possibly use a transponder based ultrasound system. You would have an ultrasound transceiver on the box, and a transponder on the ground. Periodically, the transceiver would send out an ultrasound burst. The transponder on the ground would detect and reply. The round trip time is proportional to the distance. If you need extreme accuracy, you would want to somehow adjust for temperature. The speed of sound is affected by temperature (and pretty much only by temperature).

Good luck!