130-28029 Parallax Inc, 130-28029 Datasheet - Page 168
130-28029
Manufacturer Part Number
130-28029
Description
KIT PARTS SMART SENSORS
Manufacturer
Parallax Inc
Datasheet
1.122-28029.pdf
(340 pages)
Specifications of 130-28029
Accessory Type
Education Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
BASIC Stamp®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
- Current page: 168 of 340
- Download datasheet (5Mb)
Page 156 · Smart Sensors and Applications
This example program is a modified version of TestCompass.bs2 that uses LCD display
commands instead of Debug Terminal commands.
' -----[ Title ]--------------------------------------------------------------
' Smart Sensors and Applications - LcdTestCompass.bs2
' Test to make sure Hitachi HM55B Compass Module is working.
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ I/O Definitions ]----------------------------------------------------
DinDout
Clk
En
' -----[ Constants ]----------------------------------------------------------
Reset
Measure
Report
Ready
NegMask
' -----[ Variables ]----------------------------------------------------------
x
y
status
angle
' -----[ Initialization ]-----------------------------------------------------
' LCD Initialization
PAUSE 200
SEROUT 14, 84, [22, 12]
PAUSE 5
SEROUT 14, 84, [255,
√
Open LcdTestCompass.bs2 try running it with the serial cable disconnected.
PIN
PIN
PIN
CON
CON
CON
CON
CON
VAR
VAR
VAR
VAR
%01000,
%10100,
%01000,
%00000,
%00000,
%00000,
%00000,
%00000]
2
0
1
%0000
%1000
%1100
%1100
%1111100000000000
Word
Word
Nib
Word
' Debounce power supply
' Turn on & clear LCD
' 5 ms delay for clear cmd
' Define Custom Character 7
'
' *
'
'
'
'
'
'
*
*
*
' P2 transceives to/from Din/Dout
' P0 sends pulses to HM55B's Clk
' P2 controls HM55B's /EN(ABLE)
' Reset command for HM55B
' Start measurement command
' Get status/axis values command
' 11 -> Done, 00 -> no errors
' For 11-bit negative to 16-bits
' x-axis data
' y-axis data
' Status flags
' Store angle measurement
Related parts for 130-28029
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
KIT PROPELLER EDU PROJECT PARTS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
KIT PARTS PROCESS CONTROL
Manufacturer:
Parallax Inc
Datasheet:
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:
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: