I want to measure the position of an object moving inside a 1" diameter pipe ( I could probably make it up to 2" in diameter). The Ping rangefinder doesn’t fit inside and the Sharp IR GP2Y0A21 fits inside just perfectly but even when flush, sometimes the sensor readings are an inch or two off from previous calibrations (pic attached). I’m guessing the beam might be bouncing off the walls?
What’s the highest accuracy&precision, arduino-compatible sensor for this purpose for less than $80? I only need to measure distances 6" - 40". I heard lasers are great but they look quite expensive.
I found the Maxbotix LV-EZ4 which will fit perfectly inside a 1" pipe but I’m worried it will bounce around inside the pipe and give crappy readings.