122-28029 Parallax Inc, 122-28029 Datasheet - Page 69
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: 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 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: