4.2.8
Digital output humidity sensors: supported commands
Table 11. Digital output pressure sensors: supported commands list
devices/demonstration boards including a digital output humidity sensor.
Command
*setdbXXXVY
*start
*debug
*stop
*Zon
*Zoff
*dev
*ver
*hrAA
*hwAADD
*single
*list
*listdev
*echoon
*echooff
4.3
Quick start
This section shows the basic sequence of commands, based on the LIS3DH accelerometer, to start a data
communication session and to retrieve the X, Y, and Z acceleration data from the demonstration kit:
1.
2.
3.
4.
5.
UM0979 - Rev 6
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Table 12.
Digital output humidity sensors: supported commands list
Description
Selects firmware according to the adapter connected
Starts continuous data acquisition
Returns the output data in readable text format
Stops data acquisition
Forces 3-state
Exits from 3-state
Device name
Firmware version
Humidity sensor register read
Humidity sensor register write
It gets a single X, Y, and Z data acquisition
Prints the list of MKIs supported
Prints the list of devices supported
Activates the write verbose mode
Deactivates the write verbose mode
Connect the eMotion to the USB port
©
Start "Microsoft
HyperTerminal" and configure it as described in
Inside the "HyperTerminal" window, enter the command *setdb105v1 (supposing the LIS3DH adapter board
is used, for other adapters see the relevant datasheets to check the register configuration), enter the
command *Zoff to enable the control of the device by the STM32F103RET6 microcontroller, and *w2047 to
switch on the LIS3DH and to set the data rate to 50 Hz
Send the *debug command to get the X, Y, and Z data measured by the sensor
Send *stop to end the continuous acquisition and visualization.
below lists the commands supported by the
Returned value
(see
Table 4. Returned values for *start
(see
Table 5. Returned values for *debug
e.g.: LIS3DH
e.g.: V1.0
e.g.: HRAAhDDh
(see
Table 5. Returned values for *debug
e.g.: MKI105V1
e.g.: LIS3DH
e.g.: PRAAhDDh
Section 4.1 Getting started
UM0979
Quick start
command)
command)
command)
page 29/39
Need help?
Do you have a question about the STM32F103RET6 and is the answer not in the manual?