Page 1
The STEVAL-MKI109V2 uses an STM32F103RET6 microcontroller which functions as a bridge between the sensor on the adapter board and the PC on which it is possible to use the Unico graphical user interface (GUI) downloadable from the ST website or dedicated software routines for customized applications.
STM32F103RET6 microcontroller and can be connected to the PC through the USB bus. Data coming from the MEMS sensor connected to the board can be read through the PC GUI provided with the kit.
Page 3
UM0979 Demonstration kit description Figure 2. Top silkscreen of the eMotion kit UM0979 - Rev 6 page 3/39 Arrow.com. Arrow.com. Arrow.com. Downloaded from Downloaded from Downloaded from...
MEMS adapters (see Table 1. Jumper configuration for power-down (PD), self test (ST), and high-pass filter reset (HP) for more details). JP4 is used to set the self-test feature, JP5 to handle the power-down pin, and JP6 to reset the MEMS high-pass filter. When they are fitted on pins 2-3, these functions are handled by the firmware itself.
UM0979 Demonstration kit description Table 1. Jumper configuration for power-down (PD), self test (ST), and high-pass filter reset (HP) Jumper on 1-2 position Jumper on 2-3 position Jumper unfitted logic level 1: logic level 0: Self-test is handled by the firmware...
Page 6
UM0979 Demonstration kit description Figure 4. How to connect the DIL24 adapter board to the STEVAL-MKI109V2 UM0979 - Rev 6 page 6/39 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from...
The software package can be downloaded from the st.com website and includes the following directory structure: • DRIVER: it contains the installation package for the USB drivers needed to connect the eMotion board to the PC.
.dfu file; then click the ‘Upgrade’ button to start the firmware upgrade. For more details regarding DFU and the microcontroller ST GUI, see the related user manual located under “Start > STMicroelectronics > DfuSe > Docs > DfuSe Getting Started”.
UM0979 2.2.2 DFU on Linux The DFU program used for Linux operating systems is ‘dfu-util’. The procedure for Ubuntu Linux operating systems is described below. To install this program, open a terminal and write the following command (with sudo to ensure having the correct permissions): sudo apt-get install dfu-util Create a udev rules file:...
UM0979 Supported commands Supported commands The microcontroller mounted on the eMotion board is equipped with dedicated firmware that supports a set of commands which allow to control either the digital or the analog output MEMS sensor and permits the acquisition of the measured data.
RAAhDDh *echooff Deactivates the write verbose mode *fiforst Accelerometer “Reset mode” enable st 0 0 0 0 0 0 IR FC FS *fifomde Accelerometer “FIFO mode” enable st 0 0 0 0 0 0 IR FC FS *fifostr Accelerometer “FIFO Stream” enable...
Page 14
The *start command initiates the continuous data acquisition. When this command is sent to the device, it returns a string of bytes (plus carriage return and line feed) similar to “st OUT1 OUT2 OUT3 IR BT”. The first two bytes are always the ASCII char “s” and “t” which correspond to the hexadecimal values {73h 74h}.
UM0979 Supported commands Specifically, bit#0 of the “BT” data corresponds to the status of the SW1 button on the demonstration kit board: it is set to 1 when the SW1 is pressed (otherwise 0). Bit#1 has the same behavior but is dedicated to the SW2. Before sending the *start command, the device must be out from 3-state and some registers must be configured according to user needs, therefore, *start must be preceded by a *zoff and some “Register Write”...
Page 16
UM0979 Supported commands STEVAL # (Device) Returned value STEVAL-MKI075V1 (LY3100ALH) STEVAL-MKI084V1 (LPY430AL) s t vrefH vrefL o1H o1L out1H out1L out4H out4L o2H o2L out2H out2L out5H out5L o3H o3L out3H out3L out6H out6L sw1|sw2 \\r \\n STEVAL-MKI097V1 (LPR430AL) STEVAL-MKI098V1 (LPR410AL) STEVAL-MKI106V1 (LSM303DLHC) s t A_XH A_XL A_YH A_YL A_ZH A_ZL M_XH M_XL M_YH M_YL STEVAL-MKI113V1 (LSM303DLM)
Page 18
Zon and Zoff The *Zon and *Zoff commands are employed, respectively, to put into 3-state the STM32F103RET6 microcontroller mounted on the demonstration kit. These commands allow the isolation of the sensor from the microprocessor and let the user interact with the sensor in a pure analog way.
Page 19
UM0979 Supported commands address of the register and the data to be written. For example, to write 0xC7 to the register at address 0x20, the user issues the command *w20C7. Gyroscope register read The *grAA command allows the contents of the gyroscope registers in the demonstration kit board to be read. AA, expressed as hexadecimal value and written in upper case, represents the address of the register to be read.
Page 20
UM0979 Supported commands For example, to read the register at address 0x20, the user issues the command *hr20, which returns, e.g., HR20h10h. Humidity sensor register write The *hwAADD command allows writing to the contents of the humidity sensor registers in the demonstration kit board.
Page 21
UM0979 Supported commands Accelerometer Dynamic Stream mode enable The *fifodstr command enables the accelerometer Dynamic Stream mode. Gyroscope FIFO reset enable The *gfiforst command enables the gyroscope FIFO reset mode. Gyroscope FIFO mode enable The *gfifomde command is used to enable the gyroscope FIFO mode. Gyroscope FIFO Stream mode enable The *gfifostr command is used to enable the gyroscope FIFO stream mode.
Page 22
UM0979 Supported commands Pressure sensor FIFO mode enable The *pfifomde command is used to enable the pressure sensor FIFO mode. Pressure sensor FIFO Stream mode enable The *pfifostr command is used to enable the pressure sensor FIFO stream mode. Pressure sensor Stream-to-FIFO mode enable The *pfifostf command enables the pressure sensor Stream-to-FIFO mode.
UM0979 Supported commands 4.2.3 Analog output accelerometers: supported commands Table 7. Analog output accelerometers: supported commands list below lists the commands supported by the devices/demonstration boards including an analog output accelerometer. Table 7. Analog output accelerometers: supported commands list Command Description Returned value *setdbXXXVY...
UM0979 Supported commands 4.2.5 Analog output gyroscopes: supported commands Table 9. Analog output gyroscopes: supported commands list below lists the commands supported by the devices/demonstration boards including an analog output gyroscope. Table 9. Analog output gyroscopes: supported commands list Command Description Returned value *setdbXXXVY...
*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.
UM0979 Bill of materials Bill of materials The bill of materials for the eMotion demonstration kit is provided in Table 13. Bill of materials for STEVAL- MKI109V2 below. Table 13. Bill of materials for STEVAL-MKI109V2 Designator Description Comment Footprint Capacitor 10 µF C1206_POL Capacitor...
Page 33
UM0979 Bill of materials Designator Description Comment Footprint CON2 Header 1x2 2 mm CON2 Header 1x2 2 mm JP10 CON2 Header 1x2 2 mm Osc1 Ceramic SMD crystal 3.2X2.5 mm 16 MHz Ceramic SMD Crystal 3.2x2.5 mm BC817-25 BC817 SOT-23 BC817-25 BC817 SOT-23...
UM0979 Revision history Table 14. Document revision history Date Revision Changes 02-Mar-2011 Initial release • Added: STEVAL-MKI109V2 • Modified: Bill of materials for STEVAL-MKI109V2 18-Apr-2012 • Added new supported demo kits. • Updated Table 2: List of supported MEMS adapter boards, Table 4: Returned values for *start command and Table 5: Returned values for *debug command.
Page 37
List of tables Table 1. Jumper configuration for power-down (PD), self test (ST), and high-pass filter reset (HP) ....5 Table 2. List of supported MEMS adapter boards ........... 10 Table 3.
Page 39
ST’s terms and conditions of sale in place at the time of order acknowledgement. Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of Purchasers’...
Need help?
Do you have a question about the STM32F103RET6 and is the answer not in the manual?
Questions and answers