28029 Parallax Inc, 28029 Datasheet - Page 69
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: 69 of 340
- Download datasheet (5Mb)
LCD Distance Display
It doesn't take much in the way of changes to modify PingMeasureCmAndIn.bs2 to make
it display its measurements on the LCD. First, an Initialization section has to be added so
that the program waits for the power supply to stabilize and then turns on and clears the
LCD.
Next, the
DEBUG
The Debug Terminal control characters (
codes that will place the cursor in the LCD.
Example Program: PingLcdCmAndIn.bs2
This program is a modified version of PingMeasureCmAndIn.bs2 from the previous
activity. Instead of displaying its measurements in the Debug Terminal, it displays them
on the Parallax Serial LCD.
' Smart Sensors and Applications - PingLcdCmAndIn.bs2
' Measure Distance with the Ping))) sensor and display on LCD
' {$STAMP BS2}
' {$PBASIC 2.5}
' Conversion constants for room temperature measurements.
CmConstant
InConstant
cmDistance
√
√
√
commands from PingMeasureCmAndIn.bs2.
PAUSE 200
SEROUT 14, 84, [22, 12]
PAUSE 5
DEBUG HOME, DEC3 cmDistance, " cm"
DEBUG CR, DEC3 inDistance, " in"
SEROUT 14, 84, [128, DEC3 cmDistance, " cm"]
SEROUT 14, 84, [148, DEC3 inDistance, " in"]
Connect a battery to your board.
Enter, save and run PingLcdCmAndIn.bs2.
Disconnect the serial cable, and take your board with you to wherever you want
to test the Ping))) sensor's measurements.
DEBUG
VAR
CON
CON
commands need to be changed to
Word
2260
890
HOME
Chapter 2: The Ping))) Ultrasonic Sensor · Page 57
and
CR
SEROUT
) need to be changed to control
commands. Here are the
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: