130-28029 Parallax Inc, 130-28029 Datasheet - Page 58
![KIT PARTS SMART SENSORS](/photos/9/0/90016/mfg_130-28029_sml.jpg)
130-28029
Manufacturer Part Number
130-28029
Description
KIT PARTS SMART SENSORS
Manufacturer
Parallax Inc
Datasheet
1.122-28029.pdf
(340 pages)
Specifications of 130-28029
Accessory Type
Education Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
BASIC Stamp®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
- Current page: 58 of 340
- Download datasheet (5Mb)
Page 46 · Smart Sensors and Applications
ACTIVITY #2: CENTIMETER MEASUREMENTS
This activity demonstrates how to use the speed of sound and the PBASIC Multiply High
operator (
from the Ping))) sensor.
Calculating Centimeter Distance with PBASIC
The equation for the distance sound travels is S = C
speed of sound in air, and t is time. Since the Ping))) sensor's time measurement is the
time it takes sound to get to the object and bounce back, the actual distance, S
of the total distance the sounds travels.
The speed of sound in air is most commonly documented in terms of meters per second
(m/s). However, centimeter (cm) measurements will be more convenient to calculate
with the BASIC Stamp. Since there are 100 centimeters in a meter, let’s use S
which is simply 100 times S
BASIC Stamp 2 are 2/1,000,000 of a second (2 µs). So, instead of t, which has to be a
measurement of seconds, we'll use t
t
denominator that cancel, and 100 in the numerator can cancel with two of the zeros in the
denominator's 1,000,000.
S
PULSIN-BS2
object-cm
= (C
S
S
S
S
S
**
object
object
object-
object-
gives us the number of seconds. There is a pair of 2s in the numerator and
=
C
air
) to calculate the distance of an object based on the echo time measurement
air
t
-cm
PULSIN-BS2
=
cm
cm
t
S
2
=
=
=
=
100
100
C
C
air
air
2
)/10,000.
10,000
2
t
C
C
PULSIN
t
air
air
The result of these substitutions and cancellations is
t
object
t
2
PULSIN
-
. The
BS2
-
BS2
PULSIN-BS2
PULSIN Duration
×
1,000,000
2
.
air
When multiplied by 2/1,000,000
t, where S is distance, C
measurement units for the
object
air
, is half
object-cm
is the
Related parts for 130-28029
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![130-32000](/photos/8/99/89967/mfg_130-32000_tmb.jpg)
Part Number:
Description:
KIT PROPELLER EDU PROJECT PARTS
Manufacturer:
Parallax Inc
Datasheet:
![130-28176](/photos/8/99/89975/mfg_130-28176_tmb.jpg)
Part Number:
Description:
KIT PARTS PROCESS CONTROL
Manufacturer:
Parallax Inc
Datasheet:
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![70009](/photos/26/92/269208/70009-l_tmb.jpg)
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
![27404](/photos/26/91/269197/27404-l_tmb.jpg)
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
![70016](/photos/8/99/89966/mfg_70016_tmb.jpg)
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![70009](/photos/26/92/269208/70009-l_tmb.jpg)
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
![28135](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
![SX18AC/SO](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: