PING))) documentation v1.5
Copyright © Parallax Inc.   PING))) Ultrasonic Distance Sensor (#28015)  v1.5 2/15/2008 Page 12 of 12 
 while (true) { 
 // measure distance to target in inches 
 distance = range.getIn(); 
 // create and display measurement message 
 msg.clear(); 
 msg.append(HOME); 
 msg.append(distance); 
 msg.append(" \" \n"); 
 System.out.print(msg.toString()); 
 // wait 0.5 seconds between readings 
 CPU.delay(5000); 
 } 
 } 
} 
Resources and Downloads 
You can find additional resources for the PING))) sensor by searching the following product pages at 
www.parallax.com
: 
y  Smart Sensors and Applications (a Stamps in Class text), #28029 
y  PING))) Mounting Bracket Kit – a servo-driven mount designed to attach to a Boe-Bot robot, 
#570-28015 
y  Extension cable with 3-in header, #805-00011 (10-in.) or #805-00012 (14-in.) 
A video of a Boe-Bot robot using the PING))) sensor to scan its surroundings then drive to the closest 
object can be found under Resources > Video Library > Boe-Bot Robot Video Gallery. 










