122-28029 Parallax Inc, 122-28029 Datasheet - Page 110
122-28029
Manufacturer Part Number
122-28029
Description
GUIDE STUDENT SMART SENSORS
Manufacturer
Parallax Inc
Datasheet
1.122-28029.pdf
(340 pages)
Specifications of 122-28029
Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Smart Sensors
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
- Current page: 110 of 340
- Download datasheet (5Mb)
Page 98 · Smart Sensors and Applications
To reverse the angle of rotation the that program displays, all you have to do is use −Ay
instead of A
counterclockwise, A
arctangent of −A
Figure 3-25: Reversing Direction of Rotation with -Ay
This change is easy to make in the program. Simply insert a negative sign before the y in
angle = x ATN y
ACTIVITY #6: MEASURE TILT FROM THE HORIZONTAL
This activity measures how far the Board of Education is tilted from the horizontal.
Figure 3-26 shows the Board of Education with the Memsic Accelerometer on the
breadboard. The accelerometer's acceleration-sensing axes (x
top and left of the Board of Education. This activity develops a program that displays the
tilt angle for each axis. When the board is held level, the tilt angle is 0° for both the x
an y
tilt angle for the y-axis. If you tilt it so that y
angle. The same applies for x
tilt angle. If you tilt the board towards one of its corners, the program will report tilt for
both the x
tan
tan
√
√
√
−
−
m
1
1
⎛ −
⎜
⎜
⎝
⎛ −
⎜ ⎜
⎝
axes. If you tilt the board so that y
Save VertWheelRotation.bs2 as VertWheelRotationCounterclockwise.bs2
Change
Run the program and verify that the rotation angle now increases as you rotate
the board counterclockwise.
A
Ax
A
Ay
m
X
Y
and y
⎞
⎟ ⎟
⎠
⎞
⎟
⎟
⎠
y
=
=
.
tan
tan
angle = x ATN y
y
m
/A
Take a look at Figure 3-25.
.
axes.
x
−
−
y
, the result is 30°.
1
1
⎛
⎜
⎜
⎜
⎜ ⎜
⎝
⎛
⎜
⎜
⎜
⎜ ⎜
⎝
is −1/2, and the arctangent turns out to be 330°. By taking the
2
2
2
1
1
3
3
2
⎞
⎟
⎟
⎟
⎟ ⎟
⎠
⎞
⎟
⎟
⎟
⎟ ⎟
⎠
=
=
m
330
30
; point it up for a positive tilt angle or down for a negative
°
°
to
angle = x ATN −y
m
points up, the program will report a positive
m
points down, it will report a negative tilt
If you rotate the accelerometer
.
m
and y
m
) point toward the
m
Related parts for 122-28029
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
MANUAL FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
GUIDE STUDENT PROCESS CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
MANUAL PROPELLER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
LEAD WIRES FLYING CABLE III/IV
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
BOARD ADAPTER AND FLY LEADS
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
PLATFORM CABLE USB II
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
KIT STARTER COOLRUNNER-II BUNDLE
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
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:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: