PDA

View Full Version : Ping sensor with PIC 16f877a



holy
02-26-2007, 01:23 PM
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

Chris Savage
02-26-2007, 01:53 PM
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 Green
02-26-2007, 01: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.