28029 Parallax Inc, 28029 Datasheet - Page 109

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
The
Debug Terminal. The
display flicker, only the digits are erased before the new digits are printed. The
places the cursor at 138 (Line 0, character 10), then overprints the previous measurement
with five spaces. Then, it places the cursor at 138 again and displays the new degree
measurement with
This is repeated for the x and y measurements, but there only need to be four spaces
between quotes following cursor positions 152 and 159.
Your Turn - Rotation in the Opposite Direction
Diagrams that show the rotation angle increasing as the object rotates counterclockwise,
like Figure 3-24, are quite a bit more common than the clockwise diagram we used
previously.
DEBUG
' LCD Display Routine
SEROUT 14, 84, [ 138, "
Save VertWheelRotation.bs2 as VertWheelRotationLcd.bs2.
Insert the initialize LCD routine between the variable declarations and the
keyword.
Replace the
Change
Run the program and test your LCD rotation display.
Custom Character Definitions Remember, 248 defines Custom Character 0. 249 defines
Custom Character 1. 250 defines Custom Character 2, and so on, up to 255, which defines
Custom Character 7.
command that the
PAUSE 100
DEC
DEBUG
angle. Finally, it prints the degree sign with Custom Character 7.
SEROUT
152, "
159, "
command in the
to
PAUSE 350
SEROUT
command below only uses two. To minimize LCD
", 152, SDEC x,
", 159, SDEC y ]
", 138, DEC angle, 7,
command has to replace uses three lines in the
Chapter 3: Tilt with the Memsic Accelerometer · Page 97
.
DO
...
LOOP
with the LCD Display Routine.
Figure 3-24
Angle Measurement with
Counterclockwise Rotation
SEROUT
DO

Related parts for 28029