Shop OBEX P1 Docs P2 Docs Learn Events
Ping sensor with PIC 16f877a — Parallax Forums

Ping sensor with PIC 16f877a

holyholy Posts: 9
edited 2007-02-26 05:55 in General Discussion
i understand that the ping if used with the basic stamp is controlled with the SIG for its tx and rx. the 5V is always supplied. is it possible to use with a pic controller and if yes, how do we control the input and output?? can someone give a brief explanation and suggestion??. if there is a website on this please give a link. tq

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-02-26 05:53
    Holy,

    The PING))) Documentation describes the timing and events that need to happen to use the sensor. Please see the documentation on the following page. This thread is being moved from the Stamps In Class Forum to the Sandbox Forum.

    http://www.parallax.com/detail.asp?product_id=28015

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Mike GreenMike Green Posts: 23,101
    edited 2007-02-26 05:55
    The PING can be used with any controller that can provide the proper signals to the control line. The documentation (www.parallax.com/dl/docs/prod/acc/28015-PING-v1.3.pdf) on page 3 provides really all you need. You have to generate a positive going pulse at least 2us wide (preferably 5us), then wait for a positive going edge and begin timing. Stop timing when the negative going edge occurs (somewhere between 115us and 18.5ms). The PING can be used with 3.3V devices that can tolerate a 5V input signal. For example, it can be used with a Propeller, which is a 3.3V processor, as long as there's a 1K protective series resistor in the signal line.

    The specifics of programming a PIC or other non-Parallax controller is something you'll have to get from somewhere else.
Sign In or Register to comment.