![WiT WT901B User Manual Download Page 34](http://html1.mh-extra.com/html/wit/wt901b/wt901b_user-manual_989784034.webp)
WT901B | manual v0707 | http://wiki.wit-motion.com/english
- 34 -
2.4.11
Set Extended Port
The WT901B module has 4 multiple function extended ports, which can be set
to different functions according to the need. Set extended port only when the
module connects to the PC software successfully.
The extended port supports analog input mode, digital input mode, digital
output mode, PWM output mode. D1 port also supports GPSRX mode, port state
by default is analog input mode.
The port status packet in which the module exports contains the status
information of the extended port. In different modes, the port state data
DxStatus has the following meanings:
Mode
Implication
Analog input mode
Analog voltage
Digital input mode
Port high and low level state
Digital high level output mode
Port output state
Digital low level output mode
Port output state
PWM output mode
PWM high level width
CLR
(
D1
)
The XY relative attitude 0
Analog input mode is used to measure the analog voltage on the port, such as
a potentiometer or a sensor, etc.
The formula is as follows:
U=DxStatus/4096*U
vcc
Uvcc is the power supply voltage of the module, because the module has LDO if
the module power supply voltage is greater than 3.5V, Uvcc is 3.3V. If the
module supply voltage is less than 3.5V, Uvcc equal to the supply voltage minus
0.2V.
Summary of Contents for WT901B
Page 1: ...WT901B manual v0707 http wiki wit motion com english 1 USER MANUAL WT901B Inclinometer Sensor...
Page 10: ...WT901B manual v0707 http wiki wit motion com english 10 Close Close com port...
Page 42: ...WT901B manual v0707 http wiki wit motion com english 42 Step 4 Select the baud rate 9600...