I wanted to detect speedbreakers and potholes for my project. The sensors will me mounted on a moving structure that will respond according to the sensed obstacle. The structure will move at a speed +5km/hr. I could use a Lidar sensor but decided to stick with Sonar as they are low cost. But with my calculations the refresh rate of a sonar sensor is not enough to detect an obstacle at this speed. So i decided to use an array of sonar sensors to effectively increase the speed of detection by sequentially pinging the sensors. I found the NewPing library that I think exactly does exactly that.
I am going to use the data to control a BJT with arduino PWM.
But my problem is that I want the sensors to sequentially sense the obstacle but give me a single reading as it passes; meaning that if i use three sensors as sensor 1 passes the obstacle it gives a reading, and as it has gone over it should be zero, but now sensor 2 should give a value, and so on. Effectively making the three sensors a big giant sensor that can sense the contours of the road, like what happens in digital image processing used for depth sensing or what a lidar does since it has such a high refresh rate.
The image might help you understand.
Can it be done? If yes then where should i look?