Electronica
General: info@parallax.com Technical: support@parallax.com Web Site: www.parallax.com Educational: www.stampsinclass.com
PING)))™ Ultrasonic Distance Sensor (#28015)
The Parallax PING))) ultrasonic distance sensor provides precise, non-contact distance measurements from about 2 cm (0.8inches) 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 targetcan 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 Delaybefore 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)
Dimensions
© Parallax, Inc. • PING)))TM Ultrasonic Distance Sensor (#28015) • v1.3 6/13/2006
Page 1 of 13
Pin Definitions
GND 5V SIG Ground (Vss) 5 VDC (Vdd) Signal (I/O pin)
The PING))) sensor has a male 3-pin header used to supply power (5 VDC), ground, and signal. The header allowsthe sensor to be plugged into a solderless breadboard, or to be located remotely through the use of a standard servo extender cable (Parallax part #805-00002). Standard connections are show in the diagram to the right.
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 pinconnects 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 5V, 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.
Board of Education Servo Port Jumper, Set to Vdd
© Parallax, Inc. • PING)))TM Ultrasonic Distance Sensor (#28015) • v1.3 6/13/2006
Page 2 of 13
Theory of Operation
The PING))) sensor detects objects by emitting a shortultrasonic 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 thispulse corresponds to the distance to the target.
Test Data
The test data on the following pages is based on the PING))) sensor, tested in the Parallax lab, while connected to a BASIC Stamp microcontroller module. The test surface was a linoleum floor, so the sensor was elevated to minimize floor reflections in the data. All tests were conducted at room temperature, indoors, in a protected...
Regístrate para leer el documento completo.