122-28029 Parallax Inc, 122-28029 Datasheet - Page 269

GUIDE STUDENT SMART SENSORS

122-28029

Manufacturer Part Number
122-28029
Description
GUIDE STUDENT SMART SENSORS
Manufacturer
Parallax Inc
Datasheet

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
Solutions
Q1. (1) The height from which the measurement is taken, (2) the distance from the
Q2. The
Q3. The
Q4. You would need:
Q5. It lets the user know what mode the device is operating in by emitting chirps
Q6. Increase the value between parentheses that follows the
Q7. If you are traveling forward and decelerating, it’s the same as accelerating
Q8. Toward the center of a circle.
Q9. This is a comparison of two example programs, DatalogAcceleration.bs2 against
E1. object height = opposite + accelerometer height
base of the building, and (3) the angle from horizontal at which the top of the
building was sighted.
(100)
to insert the
have to increment
value = value + 1
(tones of certain durations and frequencies). The countdown before datalogging
involves eleven 50 ms 3.75 kHz tones followed by two more pronounced higher
pitched tones (75 ms 4 kHz tones). After datalogging, the piezospeaker emits a
longer chirp (200 ms 4 kHz) to let the user know datalogging is complete.
backwards, which is accelerating in the opposite direction of forward.
DatalogYaxisUnscaled.bs2. DatalogAcceleration.bs2 stores x and y values that
are scaled down to 0 to 200 with 100 as 0 g. DatalogYaxisUnscaled.bs2 not only
stores the unscaled version, it doesn’t apply any offset either. It’s just the raw y-
axis measurement, which ranges from 1875 to 3125. In both programs, it takes a
word value to store each measurement in DatalogAcceleration.bs2, it’s a word (2
bytes) that stores the scaled and offset x and y-axis measurements.
DatalogYaxisUnscaled.bs2, each y-axis value takes an entire word. Even though
the time it takes to store bytes is the same in both programs, some time between
measurements is saved by DatalogYaxisUnscaled.bs2 because it doesn’t take any
time for a
= (adjacent × tan (75˚)) m + 1 m
= (15 × 3.73) m + 1 m
= 56.98 m
WRITE
DATA (100)
stores the value 20 in each of the 100 bytes.
PULSIN
commands stores byte values. To fix the command, you would have
Word
eeIndex
command that would otherwise read the x-axis.
modifier before the value 1000. Keep in mind that you will
Reset DATA 0
sets aside 100 bytes in EEPROM; whereas,
;
WRITE Reset, value
by 2 before storing the next value.
;
value VAR Word
Chapter 6: Accelerometer Projects · Page 257
;
DATA
READ Reset, value,
keyword.
DATA 20
In

Related parts for 122-28029