Seminar Topics & Project Ideas On Computer Science Electronics Electrical Mechanical Engineering Civil MBA Medicine Nursing Science Physics Mathematics Chemistry ppt pdf doc presentation downloads and Abstract

Full Version: PING)))™ Ultrasonic Distance Sensor (#28015)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
PING)))™ Ultrasonic Distance Sensor (#28015)

[attachment=46949]


The Parallax PING))) ultrasonic distance sensor provides precise, non-contact distance measurements
from about 2 cm (0.8 inches) to 3 meters (3.3 yards). It is very easy to connect to BASIC Stamp® or
Javelin Stamp microcontrollers, requiring only one I/O pin.
The PING))) sensor works by transmitting an ultrasonic (well above human hearing range) burst and
providing an output pulse that corresponds to the time required for the burst echo to return to the
sensor. By measuring the echo pulse width the distance to target can easily be calculated.

Features

• Supply Voltage – 5 VDC
• Supply Current – 30 mA typ; 35 mA max
• Range – 2 cm to 3 m (0.8 in to 3.3 yrds)
• Input Trigger – positive TTL pulse, 2 uS min, 5 μs typ.
• Echo Pulse – positive TTL pulse, 115 uS to 18.5 ms
• Echo Hold-off – 750 μs from fall of Trigger pulse
• Burst Frequency – 40 kHz for 200 μs
• Burst Indicator LED shows sensor activity
• Delay before next measurement – 200 μs
• Size – 22 mm H x 46 mm W x 16 mm D (0.84 in x 1.8 in x 0.6 in)

Quick-Start Circuit

This circuit allows you to quickly connect your PING))) sensor to a BASIC Stamp® 2 via the Board of
Education® breadboard area. The PING))) module’s GND pin connects to Vss, the 5 V pin connects to
Vdd, and the SIG pin connects to I/O pin P15. This circuit will work with the example program
Ping_Demo.BS2 listed on page 7.

Servo Cable and Port Cautions

If you want to connect your PING))) sensor to a Board of Education
using a servo extension cable, follow these steps:
1. When plugging the cable onto the PING))) sensor, connect
Black to GND, Red to 5 V, and White to SIG.
2. Check to see if your Board of Education servo ports have a
jumper, as shown at right.
3. If your Board of Education servo ports have a jumper, set it
to Vdd as shown.
4. If your Board of Education servo ports do not have a
jumper, do not use them with the PING))) sensor. These
ports only provide Vin, not Vdd, and this may damage your
PING))) sensor. Go to the next step.
5. Connect the servo cable directly to the breadboard with a
3-pin header. Then, use jumper wires to connect Black to
Vss, Red to Vdd, and White to I/O pin P15.

Theory of Operation

The PING))) sensor detects objects by emitting a short ultrasonic burst and then "listening" for the echo.
Under control of a host microcontroller (trigger pulse), the sensor emits a short 40 kHz (ultrasonic) burst.
This burst travels through the air at about 1130 feet per second, hits an object and then bounces back to
the sensor. The PING))) sensor provides an output pulse to the host that will terminate when the echo
is detected, hence the width of this pulse corresponds to the distance to the target.