Hi!
How do I go for real-time distance measurement between two objects?
I thought of two methods, I'm not sure which one is more efficient
-
Two 3-Axis Accelerometers communicating with XBEE (or something else), and I guess also 2 arduinos (unless there is some sort of stand-alone accelerometer with wireless capabilities, because one of them will only need to report the values wirelessly and nothing else).
-
An Ultrasonic range finder and an arduino.
The second one is probably easier to do but the range is limited. From what I gather the maximum range is at around 6m (at least with reasonably priced sensors)
The first one, will require to start at a known distance (which is not really a problem) and then by figuring out the changes in position of the two sensors the new distance can be calculated. I am not sure about the accuracy of the measurements though, also I am worried that over time the accuracy will start getting worse and worse.
What I need is:
To measure the distance between two objects close to realtime within a range of 30m (ideally, 15m is workable as well) with precision of +-15% of the actual distance or less. Mounting things on both objects is fine, requiring line of sight is fine (but not preferable). Having to start at some known distance between the two things is fine.