28029 Parallax Inc, 28029 Datasheet - Page 101

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
To calculate x and y values to enter into the Debug Terminal, use these equations:
For example, let's say that h = 127 and θ = 45°, then the x and y values to be entered into
the Debug Terminal are both 90. If h = 100 and θ = 315°, the y value to enter into the
Debug Terminal will be −71, and the x value will be 71. If h = 100 and θ = 180°, y will
be 0 and x will be −127.
For
x
y
=
=
=
=
127
127
89
90
89
90
h
.
.
=
9
9
127
sin
cos
Enter, save, and run TestAtn.bs2
Click the Debug Terminal's Transmit windowpane. When prompted for the x
value, type 90 and press the carriage return. When prompted for y, type 90 and
the carriage return again.
Verify that the result is 32 brads = 45°.
Repeat for the other x and y values just discussed.
Use your calculator to determine the x and y values that correspond with various
h and θ values. Compare your calculated results to the Debug Terminal's results.
45
45
and
°
°
θ
=
45
°
x
y
=
=
h
h
For
x
y
sin
cosθ
=
=
=
=
100
100
71
θ
h
71
=
100
sin
cos
Chapter 3: Tilt with the Memsic Accelerometer · Page 89
315
315
and
°
°
θ
=
315
°
Figure 3-19
Tangent and Arctangent
For
x
y
=
=
=
=
127
127
0
h
127
=
127
sin
cos
180
180
and
°
°
θ
=
180
°

Related parts for 28029