background image

Copyright © Parallax Inc.

 

 

PING))) Ultrasonic Distance Sensor (#28015) 

v2.0  2/4/2013  Page 3 of 9 

Practical Considerations for Use 

Object Positioning  

The PING))) sensor cannot accurately measure the distance to an object that: a) is more than 3 meters 

away, b) that has its reflective surface at a shallow angle so that sound will not be reflected back towards 
the sensor, or c) is too small to reflect enough sound back to the sensor.  In addition, if your PING))) 

sensor is mounted low on your device, you may detect sound reflecting off of the floor. 

 

a.                                            b.                                             c. 

 

  

Target Object Material 

In addition, objects that absorb sound or have a soft or irregular surface, such as a stuffed animal, may 

not reflect enough sound to be detected accurately.  The PING))) sensor will detect the surface of water, 

however it is not rated for outdoor use or continual use in a wet environment. Condensation on its 

transducers may affect performance and lifespan of the device.   

Air Temperature 

Temperature has an effect on the speed of sound in air that is measurable by the PING))) sensor. If the 

temperature (°C) is known, the formula is: 

 

 

m/s

T

0.6

331.5

C

C

air

 

 

The percent error over the sensor’s operating range of 0 to 70 ° C is significant, in the magnitude of 11 
to 12 percent. The use of conversion constants to account for air temperature may be incorporated into 

your program (as is the case in the example BS2 program given in the Example Programs section below). 

Percent error and conversion constant calculations are introduced in Chapter 2 of 

Smart Sensors and 

Applications, a Stamps in Class text available for download from the 28029 product page at 

www.parallax.com.  

 

Содержание PING))) 28015

Страница 1: ...o the sensor By measuring the echo pulse width the distance to target can easily be calculated Features Range 2 cm to 3 m 0 8 in to 3 3 yd Burst indicator LED shows sensor activity Bidirectional TTL pulse interface on a single I O pin can communicate with 5 V TTL or 3 3 V CMOS microcontrollers Input trigger positive TTL pulse 2 µs min 5 µs typ Echo pulse positive TTL pulse 115 µs minimum to 18 5 m...

Страница 2: ... burst This burst travels through the air 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 Host Device Input Trigger Pulse tOUT 2 µs min 5 µs typical PING Sensor Echo Holdoff tHOLDOFF 750 µs Burst Frequency tBURST 200 µs 40 kHz...

Страница 3: ...rately The PING sensor will detect the surface of water however it is not rated for outdoor use or continual use in a wet environment Condensation on its transducers may affect performance and lifespan of the device Air Temperature Temperature has an effect on the speed of sound in air that is measurable by the PING sensor If the temperature C is known the formula is m s T 0 6 331 5 C C air The pe...

Страница 4: ...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 environment The target was always centered at the same elevation as the PING sensor Test 1 Sensor Elevation 40 in 101 6 cm Target 3 5 in 8 9 cm diameter cylinder 4 ft 121 9 cm tall vertical ...

Страница 5: ...NG Ultrasonic Distance Sensor 28015 v2 0 2 4 2013 Page 5 of 9 Test 2 Sensor Elevation 40 in 101 6 cm Target 12 in x 12 in 30 5 cm x 30 5 cm cardboard mounted on 1 in 2 5 cm pole Target positioned parallel to backplane of sensor ...

Страница 6: ...able 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 Then plug the cable into the port matching the wire color to the labels next to the port 4 If your Board of Educatio...

Страница 7: ...amp Editor software which includes the Debug Terminal is a free download from www parallax com basicstampsoftware Smart Sensors and Applications PingMeasureCmAndIn bs2 Measure distance with Ping sensor and display in both in cm STAMP BS2 PBASIC 2 5 Conversion constants for room temperature measurements CmConstant CON 2260 InConstant CON 890 cmDistance VAR Word inDistance VAR Word time VAR Word DO ...

Страница 8: ...M 29_034 Centimeters PUB Ticks Pin Microseconds cnt1 cnt2 Return Ping s one way ultrasonic travel time in microseconds outa Pin Clear I O Pin dira Pin Make Pin Output outa Pin Set I O Pin outa Pin Clear I O Pin 2 μs pulse dira Pin Make I O Pin Input waitpne 0 Pin 0 Wait For Pin To Go HIGH cnt1 cnt Store Current Counter Value waitpeq 0 Pin 0 Wait For Pin To Go LOW cnt2 cnt Store New Counter Value M...

Страница 9: ...ol Propeller Tool version 1 05 8 ping_demo spin Debug_Lcd spin Serial_Lcd spin Simple_Serial spin Simple_Numbers spin ping spin Reources and Downloads For additional example code downloads and links to videos tutorials and robotics projects that use the Ping Ultrasonic Distance Sensor visit www parallax com and search 28015 Product Change Notice Rev A original release Rev B resonator added to the ...

Страница 10: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Parallax 28015 ...

Отзывы: