Sonar Sensor to Detect Speedbreaker or Pothole.

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?

Hi,
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.

OPs Image.

Thanks Tom... :slight_smile:

When using multiple sensors at such a high refresh rate (the HC-SR04 can probably be pushed to 20-50 Hz or even more) is that you may get readings based on the echo of a previous sensor's ping. That's also a problem with a single sensor reading very frequently.

A bettter solution is a ToF sensor like the VL53L0X or VL53L1X. They're pretty fast, and don't have the problem of stray echoes as it's light based.

Hi,
How far apart are the sensors?

Thanks.. Tom.. :slight_smile: