28029 Parallax Inc, 28029 Datasheet - Page 237

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
DatalogAcceleration.bs2 also has a modified
y
EEPROM. The
each time through the loop, the routine saves two bytes. The
has similar modifications so that it displays both the
The piezospeaker also beeps twice at a higher pitch right at the beginning of the
datalogging. One important feature of this ten-second countdown is that you can stop the
values from the accelerometer, scales them to (-100 to 100), and writes both of them to
Record_Data:
.
FOR char = 10 TO 0
.
.
.
NEXT
.
.
.
FREQOUT 4, 75, 4000
PAUSE 200
FREQOUT 4, 75, 4000
DEBUG CLS, "Recording..."
FOR eeIndex = Records TO RecordsEnd STEP 2
NEXT
FREQOUT 4, 200, 4000
DEBUG CR, "End of records.",
DEBUGIN char
RETURN
FREQOUT 4, 50, 3750
PAUSE 950
PULSIN 6, 1, x
PULSIN 7, 1, y
x = (x MIN 1875 MAX 3125) - 1875 ** 10538
y = (y MIN 1875 MAX 3125) - 1875 ** 10538
WRITE eeIndex, x
WRITE eeIndex + 1, y
FOR
CR, "Press Enter for menu..."
...
NEXT
loop increments in steps of 2 with the
Record_Data
Chapter 6: Accelerometer Projects · Page 225
x
and
y
subroutine that gets the
values in a table.
Display_Data
STEP 2
argument since
subroutine
x
and

Related parts for 28029