28026 Parallax Inc, 28026 Datasheet - Page 6

MODULE ACCEL HITACHI H48C 3-AXIS

28026

Manufacturer Part Number
28026
Description
MODULE ACCEL HITACHI H48C 3-AXIS
Manufacturer
Parallax Inc
Datasheet

Specifications of 28026

Sensor Type
Accelerometer, 3 Axis
Sensing Range
±3g
Interface
Analog
Sensitivity
333 mV/g
Voltage - Supply
2.2 V ~ 3.6 V
Embedded
No
Utilized Ic / Part
BASIC Stamp® 2 Module
Product
Microcontroller Accessories
Data Bus Width
12 bit
Core Processor
MCP3204
Interface Type
Serial
Operating Supply Voltage
5 V
Board Size
20.3 mm x 17.8 mm
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
Other names
28026PAR

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
280261-2
Manufacturer:
TE
Quantity:
20 000
' -----[ Subroutines ]-----------------------------------------------------
' Reads VRef and selected H48C axis through an MCP3204 ADC
' -- pass axis (0 - 2) in "axis"
' -- returns reference voltage counts in "rvCount"
' -- returns axis voltage counts in "axCounts"
Get_H48C:
' -------------------------------------------------------------------------
' Right-justify value in 5-digit field
' -- move cursor first, then call with value in "dValue"
RJ_Print:
NEXT
PAUSE 200
GOTO Main
LOW CS
SHIFTOUT Dio, Clk, MSBFIRST, [%11\2, VRef\3]
SHIFTIN
HIGH CS
PAUSE 1
LOW CS
SHIFTOUT Dio, Clk, MSBFIRST, [%11\2, axis\3]
SHIFTIN
HIGH CS
RETURN
LOOKDOWN dValue, >=[10000, 1000, 100, 10, 0], dPad
DEBUG REP " "\dPad, DEC dValue
RETURN
Copyright© Parallax Inc. • Hitachi H48C 3-Axis Accelerometer Module (#28026) • 7/27/2007
' calculate g-force
' -- "gForce" is signed word
IF (axCount >= rvCount) THEN
ELSE
ENDIF
DEBUG CRSRXY, 20, (7 + axis),
gForce = (axCount - rvCount) ** GfCnv
gForce = -((rvCount - axCount) ** GfCnv)
DEC (mVolts / 1000), ".",
DEC3 mVolts
" " + (gForce.BIT15 * 13),
DEC1 (ABS(gForce) / 100), ".",
DEC2 ABS(gForce)
Dio, Clk, MSBPOST, [rvCount\13]
Dio, Clk, MSBPOST, [axCount\13]
' positive g-force
' negative g-force
' display g-force
' select vref register
' read ref voltage counts
' select axis
' read axis voltage counts
Rev 1.2
Page 6 of 6

Related parts for 28026