WT901BLECL DataSheet
WT901BLECL DataSheet
, Ltd | Datasheet
BUILT-IN SENSORS
Google Drive
If you have technical problems or cannot find the information that you need in the
provided documents, please contact our support team. Our engineering team is
committed to providing the required support necessary to ensure that you are
successful with the operation of our AHRS sensors.
Contact
Application
● AGV Truck
● Platform Stability
● 3D Virtual Reality
● Industrial Control
● Robot
● Car Navigation
● UAV
Tutorial Link............................................................................................................................. - 2 -
Contact....................................................................................................................................... - 2 -
Application................................................................................................................................ - 2 -
Contents.................................................................................................................................... - 3 -
1 Overview............................................................................................................................... - 4 -
2 Features................................................................................................................................. - 5 -
3 Specification.........................................................................................................................- 6 -
3.1 Parameter................................................................................................................. - 6 -
3.2 Size.............................................................................................................................. - 8 -
3.3 Axial Direction......................................................................................................... - 9 -
4 Port Definition................................................................................................................... - 10 -
5 Casing Specification....................................................................................................... - 11 -
6 Communication Protocol.............................................................................................. - 12 -
6.1 Data Format.......................................................................................................... - 12 -
6.1.1 Data Packet(Default)............................................................................. - 12 -
6.1.2 Single Return Register Data Packet................................................ - 15 -
6.2 Commands............................................................................................................. - 18 -
6.2.1 Read Register Value............................................................................... - 18 -
6.2.2 Calibration..................................................................................................- 18 -
6.2.3 Save Settings........................................................................................... - 19 -
6.2.4 Return Rate............................................................................................... - 19 -
6.3 Register Address................................................................................................. - 20 -
Maximum 50Hz data output rate. Output content can be arbitrarily selected,
the output speed 0.2Hz~ 50Hz adjustable.
3.1 Parameter
Parameter Specification
Voltage 3.3V-5V
Current <40mA
The coordinate system used for attitude angle settlement is the northeast
sky coordinate system. Place the module in the positive direction, as shown
in the figure below, direction forward is the X-axis, the direction left is the
Y-axis, and direction upward is the Z-axis. Euler angle represents the
rotation order of the coordinate system when the attitude is defined as
Z-Y-X, that is, first turn around the Z-axis, then turn around the Y-axis, and
then turn around the X-axis. Counterclockwise rotation is positive.
PIN Function
wx=((wxH<<8)|wxL)/32768*2000(°/s)
wy=((wyH<<8)|wyL)/32768*2000(°/s)
wz=((wzH<<8)|wzL)/32768*2000(°/s)
Roll(X axis)Roll=((RollH<<8)|RollL)/32768*180(°)
Pitch(Y axis)Pitch=((PitchH<<8)|PitchL)/32768*180(°)
Yaw angle(Z axis)Yaw=((YawH<<8)|YawL)/32768*180(°)
2. Although the range of the roll angle is ± 180 degrees, in fact, since
the coordinate rotation sequence is Z-Y-X, when expressing the attitude, the
range of the pitch angle (Y-axis) is only ± 90 degrees, and it will change to less
than 90 after exceeding 90 degrees Degrees while making the X-axis angle
greater than 180 degrees. For detailed principles, please Google Euler angle and
posture-related information.
3. Since the three axes are coupled, they will show independent changes
only at small angles, and the attitude angles will change at large angles. For
example, when the Y-axis is close to 90 degrees, even if the attitude only
rotates around the Y-axis, the angle of the axis will also change greatly, which
is an inherent problem with Euler angles indicating attitude.
Description:
1. The data is sent in hexadecimal not ASCII code.
2. Each data is transmitted in order of low byte and high byte, and the two
are combined into a signed short type data. For example, the X-axis
acceleration data Ax, where AxL is the low byte and AxH is the high byte.
The conversion method is as follows:
For example:
Assuming that Data is actual data, DataH is the high byte part, and DataL is
the low byte part, then: Data = ((short) DataH << 8) | DataL. It must be
noted here that DataH needs to be converted to a signed short data first and
then shifted, and the data type of Data is also a signed short type, so that it
can represent negative numbers.
FF AA 27 XX 00
--XX is register number. The register number please refer to 6.3. Example
as below:
Function Instruction
Read Magnetic Field FF AA 27 3A 00
Read Quaternion FF AA 27 51 00
Read Temperature FF AA 27 40 00
After sending the instructions, the module will turn back a data packet 0x55
0x71. There are register addresses and 7 registers data (Fixed upload 8
registers). Return data format as below:
Note: 0xNN is an accurate value, low byte first, high byte last.
0x55 0x71 0x3A 0x00 HxL HxH HyL HyH HzL HzH ......
Calculated formular:Unit: mG
Calculate the no.5 to no.10 bytes as described above, magnetic field x=360,
y=105, z=122
0x55 0x71 0x51 0x00 Q0L Q0H Q1L Q1H Q2L Q2H Q3L Q3H
Calculated formular:
Q0=((Q0H<<8)|Q0L)/32768
Q1=((Q1H<<8)|Q1L)/32768
Q2=((Q2H<<8)|Q2L)/32768
Q3=((Q3H<<8)|Q3L)/32768
Checksum:
Calculated formular:
T=((TH<<8)|TL) /100℃
--XX is register.
For example::
Read magnetic field:FF AA 27 3A 00
Read quaternion: FF AA 27 51 00
Read temperature: FF AA 27 40 00
After send instructions, the module turns back a data packet 0x55 0x71.
There are register addresses and 7 registers data (Fixed upload 8 registers).
6.2.2 Calibration
FF AA 01 01 00 Accelerometer Calibration
FF AA 01 07 00 Magnetic Calibration
FF AA 01 00 00 Quit the calibration
SAVE:Set
0:Save current configuration
1:Restore default configuration and save
RATE:return rate
0x01:0.2Hz
0x02:0.5Hz
0x03:1Hz
0x04:2Hz
0x05:5Hz
0x06:10Hz(default)
0x07:20Hz
0x08:50Hz