28029 Parallax Inc, 28029 Datasheet - Page 224

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
Page 212 · Smart Sensors and Applications
Parts Required
Use the parts list and circuit from Chapter 3, Activity #2 on page 71 for your angle-sight.
Example Program
Use the example program VertWheelRotation.bs2 from page 95 (Chapter 3, Activity #5)
along with the LCD display modifications in the Your Turn - LCD Display section on
page 96.
Procedure
Calculations
We know from earlier chapters θ is equal to the opposite side divided by the adjacent side
of a right triangle.
expression for solving the opposite height. It's the adjacent distance multiplied by the
tangent of the angle.
After determining the opposite height (shown in Figure 6-1), all you have to do is add to
that the height at which you held the accelerometer when you took the measurement.
Use your board to angle-sight the top of the object, and record the angle.
Measure the distance between the sight point and the object (adjacent side in
Figure 6-1).
Measure the height at which the accelerometer was held.
Use the calculations introduced next to determine the object's height.
tan
opposite
object
object
θ
=
adjacent
opposite
height
height
=
adjacent
Multiplying both sides by the adjacent distance results in an
=
=
opposite
adjacent
tan
θ
+
tan
accelerome
θ
+
accelerome
ter
height
ter
height

Related parts for 28029