28029 Parallax Inc, 28029 Datasheet - Page 98
28029
Manufacturer Part Number
28029
Description
KIT PARTS SMART SENSORS W/TEXT
Manufacturer
Parallax Inc
Datasheet
1.122-28029.pdf
(340 pages)
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
- Current page: 98 of 340
- Download datasheet (5Mb)
Page 86 · Smart Sensors and Applications
The arctangent function can be used to determine the accelerometer's rotation angle with
its x and y measurements.
calculating tan
angle
Figure 3-17 is from the BASIC Stamp Editor's Help file, and it shows how the
operator works. Both the
127. The result of the
“brads”. With brads, a circle is split up into 256 segments in the same way that degrees
split a circle into 360 segments.
, use the command
θ
=
tan
−1
−
(y/x). To calculate the arctangent of y/x and store it in a variable named
1
⎛
⎜ ⎜
⎝
y
x
⎞
⎟ ⎟
⎠
ATN
→
angle = x ATN y
x
angle
operator is the angle in binary radians, which is abbreviated to
and
PBASIC has an operator called
y
=
variables have to be scaled to values between −127 and
x
atn
y
tan
θ
=
.
tan
θ
=
−
y
x
1
⎛
⎜ ⎜
⎝
x
y
⎞
⎟ ⎟
⎠
Figure 3-16
Tangent and Arctangent
Figure 3-17
Unit Circle in Degrees and
Binary Radians
ATN
you can use for
ATN
Related parts for 28029
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: