Digi-Pas
®
© 2018 Digipas Technologies Inc. All Rights Reserved.
www.digipas.com
Page 22
DWL-5x000XY DATA SHEET
6.5.3. Vibro Mode
Byte [n]
Command
Descriptions
Byte [0]
0x06
From Computer
Byte [1]
0x01
To Sensor 1
Byte [2]
0x02
Vibro Mode
Byte [3]
0xAA
Dummy
Byte [4]~[11]
0x00
Not Applicable
Byte [n]
Command
Descriptions
Byte [0]
0x61
To Computer / From Sensor 1
Byte [1]
0x13
Dual Axis Position / Dual Axis Mode
Byte [2]
0x00
Angle Y Value
Byte [3]
0x03
Byte [4]
0xD0
Byte [5]
0x90
Byte [6]
0xCC
Fixed Dummy
Byte [7]
0xCC
Byte [8]
0xCC
Byte [9]
0xCC
Byte [10]
0xAA
CRC16 High
Byte [11]
0x3A
CRC16 Low
To set the tilt sensor module into Vibro Mode:
<< (To sensor) :
0x06, 0x01, 0x03, 0xAA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
Data received from tilt sensor module:
>> (From sensor) :
0x61, 0x13, 0x00, 0x03, 0xD0, 0x90, 0xCC, 0xCC, 0xCC, 0xCC, 0xAA, 0x3A
Following equation shows the conversion of angle from the received data:
For DWL5800XY
Angle =
((((Byte 6 << 24) + (Byte 5 << 16) + (Byte 4 << 8) + Byte 3) - 250000) / 100000) * 3600
For DWL5500XY
Angle =
(((Byte 6 << 24) + (Byte 5 << 16) + (Byte 4 << 8) + Byte 3) - 250000) / 100000
For DWL5000XY
Angle =
(((Byte 6 << 24) + (Byte 5 << 16) + (Byte 4 << 8) + Byte 3) - 25000) / 10000