Shop OBEX P1 Docs P2 Docs Learn Events
What happens when PING))) doesn't receive echo? — Parallax Forums

What happens when PING))) doesn't receive echo?

GTKNarwhalGTKNarwhal Posts: 2
edited 2012-04-04 18:31 in Accessories
I am getting ready to add a timeout feature to my PING))) driver and need to know what happens if the PING))) doesn't receive its echo? Does it produce an 18.5 mS pulse indicating a maximum reading? Or does it produce a somewhat longer pulse to indicate it never received an echo?

Thanks!

Gamu The Killer Narwhal

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2012-04-03 18:51
    It simply times out after waiting 18.5 ms for an echo that never returns, so that's the longest pulse you will see.

    -Phil
  • Mike GreenMike Green Posts: 23,101
    edited 2012-04-03 18:51
    The maximum pulse width of the PING's echo detection pulse is 18.5ms. That's where the microcontroller on the PING times out. There's no distinction between the width of a pulse caused by a time out vs. a received echo at precisely 18.5ms.
  • GTKNarwhalGTKNarwhal Posts: 2
    edited 2012-04-04 18:31
    Thanks for the replies!
Sign In or Register to comment.