Here is the scenario: The sensor is pointed at a black lightly padded wall. And the sensor is secured to an object that oscillates toward and away from the wall. What is the best sensor to use to keep track of distance from the wall within the range of 4 inches to 9 feet from the wall or 0 – 3 meters? The sensor must be able to sample accurately within a few inches at a rate of at least 5 Hz.
I have tried using the lv-ez1 ultrasonic sensor, but this only has a reliable range of 1-3 feet at a rate of 5 Hz.
Best Answer
Your problem is made a little bit more difficult by your selection of a surface that reflects neither IR nor ultrasound well.
Accelerometers are almost totally useless for position feedback.
We could really do with some more information about your setup - it looks like you've tried to abstract away the details to make it simpler to answer, but background information is often helpful.
Possible solutions include:
Which solution is best for you depends on the specifics of your project.