28029 Parallax Inc, 28029 Datasheet - Page 55

KIT PARTS SMART SENSORS W/TEXT

28029

Manufacturer Part Number
28029
Description
KIT PARTS SMART SENSORS W/TEXT
Manufacturer
Parallax Inc
Datasheet

Specifications of 28029

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
BASIC Stamp® or Javelin Modules
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Other names
28029PAR
Figure 2-3: Ping))) Sensor Schematic and Wiring Diagram
Testing the Ping))) Sensor
As mentioned earlier, the Ping))) sensor needs a start pulse from the BASIC Stamp to
start its measurement. A pulse to P15 that lasts 10 µs (
detected by the Ping))) sensor, and it only takes a small amount of time for the BASIC
Stamp to send. A
pulse (
this example, the result the
time for the Ping))) sensor's chirp to get to the object, reflect, and return.
Example Program - PingTest.bs2
You can test this next program by measuring the distances of a few close-up objects. For
close-up measurements, the Ping))) sensor only needs to be 3 to 4 inches ( roughly 8 to
10 cm) above your working surface. However, if you are measuring objects that are
more than a half a meter away, you may need to elevate your Ping))) sensor to prevent
echoes from the floor registering as detected objects.
PULSIN 15, 1, time
Place your Board of Education with the Ping))) sensor circuit on something to
keep it at least 8 cm above the table surface.
Place an object (like a water bottle, box, or paper target) 15 cm from the front of
the Ping))) sensor.
Enter, save, and run PingTest.bs2.
The Debug Terminal should start reporting a value in the 400 to 500 range.
PULSIN
command that stores the duration of the Ping))) sensor's echo
PULSIN
) has to come immediately after the
command stores in the variable
Chapter 2: The Ping))) Ultrasonic Sensor · Page 43
PULSOUT 15, 5
PULSOUT
time
is the round trip
command. In
) is easily

Related parts for 28029