View Full Version : Ping sensor with PIC 16f877a
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
02-26-2007, 12:53 PM
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.
Parallax Tech Support
02-26-2007, 12:55 PM
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.