Controlling ping rate - Ultrasonic sensor

Hello

can anyone guide here on how to control the Ultrasonic ping rate?

My basic issue is, I am getting the wrong duration value abruptly which resulting in giving the wrong distance.

Please help

Would you like to start us off by saying what ultrasonic sensor you're using and posting your code that is having problems?

Steve

Try here

mangesh11377:
Hello

can anyone guide here on how to control the Ultrasonic ping rate?

My basic issue is, I am getting the wrong duration value abruptly which resulting in giving the wrong distance.

Please help

I have read sensor specs that specify 4 pings and then switch to receive the first echo and I have seen specs that say 5 pings before switching. I doubt you can do anything about either the ping rate or the time to switch to receive.

Paul