Home
STEVAL-MKI109V2 - STMicroelectronics
Contents
1. 33 Figure 7 STEVAL MKI109V2 eMotion board STM32F103RET6 and connectors 34 q 4 39 DocID017768 Rev 4 UM0979 q Demonstration kit description Demonstration kit description The eMotion is a complete demonstration kit that allows demonstration of both digital and analog MEMS sensors Thanks to its DIL 24 connector a wide range of MEMS adapter boards can be used The block diagram of the demonstration kit is shown in Figure 1 Figure 1 Demonstration board block diagram Control Switches reset left right SPI I2C MEMS UB U S B USB device STM32F103RET6 pC a Connector DIL 24 With DFU Connector Feature Analog Power On LED Controls Interrupt LEDs ST PD FS General Purpose LEDs AM07756v1 As shown in the Figure 1 the eMotion demonstration kit is based on the 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 The eMotion also implements the DFU device firmware upgrade feature therefore in the case of a new firmware release it can be reprogrammed without the need to use a programmer See www st com mems for new firmware releases The eMotion also integrates three general purpose LEDs two LEDs connected directly to the interrupt pins of digital adapters and the power USB LED Moreove
2. MY YYYYY MZ ZZZZZ STEVAL MKI107V1 L3G4200D STEVAL MKI107V2 L3GD20 STEVAL MKI125V1 A3G4250D STEVAL MKI136V1 L3GD20H STEVAL MKI154V1 LSM9DSO STEVAL MKI108V1 9AXISMODULEV1 108 2 9AXISMODULEV2 P PPPPP R RRRRR AX XXXXX AY YYYYY AZ ZZZZZ MZ ZZZZZ GZ ZZZZZ STEVAL MKI120V1 LPS331AP STEVAL MKI142V1 LPS25H P PPPPP T TTTTT STEVAL MKI122V1 LSM330DLC STEVAL MKI123V1 LSM330D DoclD017768 Rev 4 AX XXXXX AY YYYYY AZ ZZZZZ GX XXXXX GY YYYYY GZ ZZZZZ q UM0979 Supported commands Table 5 Returned values for debug command STEVAL Device Returned value AX XXXXX AY YYYYY AZ ZZZZZ MX XXXXX MY YYYYY MZ ZZZZZ GX XXXXX GY YYYYY GZ ZZZZZ P PPPPP T TTTTT STEVAL MKI124V1 10AXISMODULE STEVAL MKI141V1 HTS221 I2C i f STEVAL MKI141V2 HTS221 Stop command The stop command interrupts any acquisition session that has been started with either the start or debug commands 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 By default when the kit is first turned on the lines are in 3 state mod
3. 4 2 4 Digital output gyroscopes supported commands Table 8 below lists the commands supported by the devices demonstration boards including a digital output gyroscope Table 8 Digital output gyroscopes supported commands list setdbXXXVY Selects firmware according to the adapter connected Starts continuous data acquisition see Table 4 Returns the in readable text see Table 5 Stops data acquisition Forces 3 state Device name e g LIS3DH Firmware version e g V1 0 grAA Gyroscope register read e g GRAAhDDh gwAADD Gyroscope register write single It gets a single X Y and Z data acquisition see Table 5 Prints the list of MKIs supported e g MKI105V1 Prints the list of devices supported e g LIS3DH echoon Activates the write verbose mode e g RAAhDDh echooff Deactivates the write verbose mode gfiforst Gyroscope Reset mode enable st000000IR FC FS gfifomde Gyroscope FIFO mode enable st000000IRFC FS gfifostr Gyroscope FIFO stream enable st 0 0 0 0 0 0 IR FC FS gfifostt 1 Gyroscope Stream to FIFO enable st000000IRFC FS gfifobtt Gyroscope Bypass to FIFO enable st000000IRFC FS gfifobts 1 Gyroscope Bypass to stream enable st 0 0 0 0 0 0 IR FC FS gfifodstr Gyroscope Dynamic stream enable st 0 0 0 0 0 0 IR FC FS 1 Available only for devices with embedded FIFO Note IR interrupt byte FC FIFO control register FS FIFO sourc
4. Returns the output data in readable text format debug Ly see Table 5 DoclD017768 Rev 4 29 39 Supported commands UM0979 Table 10 Digital output magnetometer supported commands list continued Command Description Stops data acquisition Returned value Forces 3 state Exits from 3 state Device name e g LIS3DH Firmware version e g V1 0 Magnetometer register read e g MRAAhDDh Magnetometer register write It gets a single X Y and Z data acquisition see Table 5 Prints the list of MKIs supported e g MKI105V1 listdev Prints the list of devices supported e g LIS3DH Activates the write verbose mode e g MRAAhDDh Deactivates the write verbose mode mfiforst Magnetometer Reset mode enable st000000IRFCFS mfifomde Magnetometer FIFO mode enable st000000IRFC FS mfifostr Magnetometer FIFO stream enable st000000IRFC FS mfifostf Magnetometer Stream to FIFO enable mfifobtt Magnetometer Bypass to FIFO enable mfifobts Magnetometer Bypass to stream enable mfifodstr Magnetometer Dynamic stream enable st000000IRFC FS st000000IRFC FS st000000IRFCFS st000000IRFCFS 1 Available only for devices with embedded FIFO 4 2 7 Digital output pressure sensor supported commands Table 11 below lists the commands supported by the devices demonstration boards including a digital output
5. wA wey 99 8shn 3c T 3nOL 3900 no d 00 89 T 9 y ssvaag UR S L J 6 en aN Sdn PPA Ld gdng 0 s 8sn AMO07278v1 33 39 DoclD017768 Rev 4 UM0979 Figure 7 STEVAL MKI109V2 eMotion board STM32F103RET6 and connectors gt a M 8X I2KIHIN Pm mb PL a A x 18 ow 7 7 301 e a 8 OSIN _ 6 sni 4 z AA ISOIN sa 9 7 r RI OS CMS TAS ISMINT JA SO aa 1001 1001 o dU 49 TMS IMS OMS SWI I I r L daa da L 9 n ON da ddAddA mp PPA A mp PPA H ZN N 8001 951 lt gsn ssid 951 w a BH C 4d 8n
6. continued Command Description Returned value fifobts 1 Accelerometer Bypass to Stream enable st000000IRFCFS fifodstr 1 Accelerometer Dynamic Stream enable st 0 0 0 0 0 0 IR FC FS 1 Available only for devices with embedded FIFO Note IR interrupt byte FC FIFO control register FS FIFO source register 4 2 3 Analog output accelerometers supported commands Table 7 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 Selects firmware according to the adapter setdbXXXVY connected start Starts continuous data acquisition see Table 4 Returns the output data in readable text format Stops data acquisition Exits from 3 state debug see Table 5 Device name e g LIS3DH Firmware version e g V1 0 It gets a single X Y and Z data acquisition see Table 5 Prints the list of MKIs supported e g MKI105V1 Prints the list of devices supported e g LIS3DH echoon Activates the write verbose mode e g RAAhDDh echooff Deactivates the write verbose mode PDON Sets power down pin PDOFF Clears power down pin STON Sets self test pin STOFF Clears self test pin FSON Sets full scale pin FSOFF Clears full scale pin q DocID017768 Rev 4 27 39 Supported commands UM0979
7. 1x3 2 mm Header 1x3 2 mm q DocID017768 Rev 4 35 39 Bill of materials UM0979 Table 13 Bill of materials for STEVAL MKI109V2 continued Designator Description Comment Footprint JP9 CON2 Header 1x2 2 mm JP10 CON2 I Header 1x2 2 mm Osc1 16 MHz Ceramic SMD Crystal 3 2x2 5 mm Q1 BC817 25 BC817 SOT 23 Q2 BC817 25 BC817 SOT 23 R3 Resistor 10 0805 R5 Resistor 10 kO 0805 R7 Resistor 1 MQ 0805 R9 Resistor 0805 R11 Resistor 10 0805 R13 Resistor 10 kO 0805 R15 Resistor 0805 R17 Resistor 10 kO 0805 R19 Resistor 10 0805 R21 Resistor 0 0805 R23 Resistor 100 Q 0805 R25 Resistor 100 Q 0805 R27 Resistor 4 7 KQ 0805 R29 Resistor 0 0805 R31 Resistor 1 kO 0805 R33 Resistor 0 0805 36 39 DoclD017768 Rev 4 Ky UM0979 Bill of materials Table 13 Bill of materials for STEVAL MKI109V2 continued Designator Description Comment Footprint Resistor 1 5 0805 Resistor 220 0805 SMT SWITCH Essi SMT SWITCH Component 1 Ids3985xx30 SOT23 5 TS922 TS922 508 2 U6 STM32F103RET6 LQF64 q DocID017768 Rev 4 37 39 Revision history 7 38 39 UM0979 Revision history Table 14 Document revision history Date Revision Changes 02 Mar 2011 Initial release 18 Apr 2012 Added STEVAL MKI109V2 Modified Bill of materials for STEVAL MKI109V2 Added
8. be read AA expressed as a hexadecimal value and written in upper case represents the address of the register to be read Once the read command is issued the board returns HRAAhDDh where AA is the address sent by the user and DD is the data present in the register 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 AA and DD expressed as hexadecimal values and written in upper case represent respectively the address of the register and the data to be written To write 0xC7 to the register at address 0x20 for example the user issues the command hw20C7 Single acquisition The single command may be used to read just one set of data It requires the sensor to be well configured and once invoked returns the read values of one data sample The format of the returned value is exactly the same as the debug command Table 5 in fact the debug command is used for continuous data acquisition purposes whereas a single command returns just one set of data List The list command returns the list of MKI adapters supported by the firmware printed in ASCII format Listdev The listdev command returns the list of devices supported by the firmware printed in ASCII format Echo on The echoon command is used to act
9. be used to directly supply the board from 3 5 V to 6 V instead of using the USB connector e Jumper JP1 allows the user to measure the sensor current consumption by connecting a multimeter in series with its terminals Figure 3 ref 9 e Jumpers JP4 JP5 and JP6 Figure 3 ref 8 are used to manually set some features which are available for just some of the analog MEMS adapters see Table 1 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 DoclD017768 Rev 4 7 39 Demonstration kit description UM0979 8 39 Table 1 Jumper configuration for power down PD self test ST and high pass filter JP4 ST JP5 PD JP6 HP reset HP Jumper on 1 2 position Jumper on 2 3 position Jumper unfitted logic level 1 Self test is handled by the logic level 0 self test ON firmware self test OFF default logic level 1 Power down is handled by the logic level 0 power down mode firmware normal mode default logic level 1 external High pass filter reset is logic level 0 high pass filter reset handled by the firmware normal mode default e J1 connector Figure 3 ref 3 can be used to both reprogram the STM32 and to debug the code through the JTAG or SWD protocols e Jumper JP7 Figure 3 ref 4 is used to select either JTAG JP7 unfitted or SWD JP7 fi
10. command allows writing to the contents of the magnetometer registers in the demonstration kit board AA and DD expressed as hexadecimal values and written in upper case represent respectively the address of the register and the data to be written To write 0x20 to the register at address 0x01 for example the user issues the command mw0120 Pressure sensor register read The prAA command allows the contents of the pressure sensor registers in the demonstration kit board to be read AA expressed as a hexadecimal value and written in upper case represents the address of the register to be read Once the read command is issued the board returns PRAAhDDh where AA is the address sent by the user and DD is the data present in the register For example to read the register at address 0x20 the user issues the command pr20 which returns e g PR20h10h Pressure sensor register write The pwAADD command allows writing to the contents of the pressure sensor registers in the demonstration kit board AA and DD expressed as hexadecimal values and written in upper case represent respectively the address of the register and the data to be written To write OxC7 to the register at address 0x20 for example the user issues the command pw20C7 DoclD017768 Rev 4 Ly UM0979 q Supported commands Humidity sensor register read The hrAA command allows the contents of the humidity sensor registers in the demonstration kit board to
11. pfifodstr Pressure sensor Dynamic stream enable st 0 0 0 0 0 0 IR FC FS 1 Available only for devices with embedded FIFO 4 2 8 Digital output humidity sensor supported commands Table 11 below lists the commands supported by the devices demonstration boards including a digital output humidity sensor Table 12 Digital output humidity sensor supported commands list Description Returned value setdbXXXVY Selects firmware according to the adapter connected Starts continuous data acquisition see Table 4 Returns the a in readable text see Table 5 Stops data acquisition Forces 3 state Exits from 3 state Device name e g LIS3DH boo er Firmware version e g V1 0 hrAA Humidity sensor register read e g HRAAhDDh hwAADD Humidity sensor register write single It gets a single X Y and Z data acquisition see Table 5 Ly DoclD017768 Rev 4 31 39 Supported commands UM0979 Table 12 Digital output humidity sensor supported commands list continued Command list Description Returned value Prints the list of MKIs supported e g MKI105V1 listdev Prints the list of devices supported e g LIS3DH echoon Activates the write verbose mode e g PRAAhDDh echooff Deactivates the write verbose mode 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
12. proceeding with the upgrade of the firmware with a version equal to or higher than V3 0 0 0 The procedure to patch the DFU feature corresponds to the one used during a standard firmware upgrade with the DFU tool At the end of this procedure if the green LED D4 is on it indicates that the procedure is successfully completed if the red LED D5 is on the procedure failed and has to be repeated Before proceeding with the new firmware upgrade the board must be reset using the SW3 button q DocID017768 Rev 4 UM0979 2 2 1 2 2 2 q eMotion board installation DFU on Windows To install the DFU software launch the DfuSe Demo V3 0 Setup exe included in the software package under the DFU folder and follow the instructions on the screen To launch the software select Start STMicroelectronics DfuSe DfuSe Demonstration In the Upgrade or Verify Action section of the Dfuse Demo tool click on the Choose button and select the target 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 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 wi
13. retrieve the X Y and Z acceleration data from the demonstration kit 1 2 3 32 39 Connect the eMotion to the USB port Start Microsoft HyperTerminal and configure it as described in Section 4 1 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 STM32F 103RET6 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 q DocID017768 Rev 4 Schematic diagrams UM0979 Schematic diagrams 5 The schematics diagram of the eMotion demonstration kit is shown in Figure 6 and Figure 7 Figure 6 eMotion board power supply and USB du00 L 8 smun S 19 wa L np ppA yp ed osiq id asn osq gsn 9dz 9518sn zoll 4 daasn gt gas 9 sno ano ano daGqagsn Wdasn wee jeu J r Nagsn xis 79097 o ONO INdaasn jid 309 ane d wees 21808 MR XL ey osa asn Ky MOS 71908 pejunaui l
14. 1 LMS303D StA XLA YHA YLA 2 ZLM XHM XL M YH M YL M ZHM ZLA int1A int2 sw1 sw2 v n StA XLA YHA YLA ZL XHG XLG YHG ZHG ZL M XHM XLM YHM YLM ZHM ZL A int1 A int2 sw1 sw2 v n s t PXL PL PH TL TH REF PXL REF PL REF PH REF TL REF int1 int 2 sw1 sw2 r n StA XHA XLA YHA YLA ZHA ZL 6 XHG YLG ZHG ZL A int1 A int2 int1 int2 sw1 sw2 v n StA XLA YHA YLA ZL XHG XLG YHG ZHG ZL STEVAL MKI124V1 10AXISMODULE M XHM XLM YHM YLM ZHM ZL PXL PL PH TL TH REF PXLREF PL REF PHREF TL REF THA int1A int2 sw1 sw2 r n STEVAL MKI108V1 9AXISMODULEv1 STEVAL MKI108V2 9AXISMODULEv2 STEVAL MKI154V1 LSM9DSO STEVAL MKI120V1 LPS331AP STEVAL MKI122V1 LSM330DLC STEVAL MKI123V1 LSM330D STEVAL MKI141V1 HTS221 I2C i f STEVAL MKI441V2 HTS221 s t HL HH TL TH int1 sw1 sw2 V n s t PXL PL PH TL TH REF PXL REF PL REF PH STEVAL MKI142V1 LPS25H i W Note XH X axis output high byte same for Y axis Z axis P pressure H humidity and TEMP temperature XL X axis output low byte same for Y axis Z axis P pressure H humidity and TEMP temperature Debug command The debug command starts the continuous data acquisition in debug mode When this command is sent to the board it returns the output values measured by the device formatted in a readable text format The values shown on the
15. 2 qasn 9 T aa s oo 5 lt waasn Vaasa I RP z n dH A PF ER S2zz2ERQBB02209320 2 amans lt Gua sausa 2 Prava qa sas OS 245 184 loawivd dd MOIS s 09 asriga ooaviamiwovd E vds dds ISOW CIdS sItd PPA A 134 d 8 odia SE TINT ems ao expen AS eoa AN 19 c or 6 1040 d9 15 TH Ir OOW8va to if a XI WMVBD GVa L ISUN 1 XNDNVSD ib Xu LLavsnolvd mooso idd 70950 Wwaasn Yt Wassn tvd 50 004 950 a a ee IS unono OMS SAL Ii m 5 m wis sr Bg T T sour ro 55 S8 vost om E EEEREREER VAXO ACEINIS zi BeSER EE als VGS ds FEE Haas anp TDS ads LTS TUAE AG TOS MO VASTU si ANN 6 AHG VAS vdsod ven wr At A A t 19pe Hi man 91n001 pajunojy p junow oN A 8 f 91no gno TA E CX CL 2 PLH CX CL Pejunoyiov n or LLNI Zino 6 TILNI 6 tO H Is H ELNO A 54 L 9 IPA SO s TOS 10
16. 22 39 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 Once the read command is issued the board returns GRAAhDDh where AA is the address sent by the user and DD is the data present in the register For example to read the register at address 0x20 the user issues the command gr20 which returns e g GR20hC7h Gyroscope register write The gwAADD command allows writing to the contents of the gyroscope registers in the demonstration kit board AA and DD expressed as hexadecimal values and written in upper case represent respectively the address of the register and the data to be written To write OxC7 to the register at address 0x20 for example the user issues the command gw20C7 Magnetometer register read The mrAA command allows the contents of the magnetometer registers in the demonstration kit board to be read AA expressed as a hexadecimal value and written in upper case represents the address of the register to be read Once the read command is issued the board returns MRAAhDDh where AA is the address sent by the user and DD is the data present in the register For example to read the register at address 0x00 the user issues the command mr00 which returns e g MROOh10h Magnetometer register write The mwAADD
17. CT UM0979 Sf i life augmented User man ual STEVAL MKI109V2 eMotion motherboard for MEMS adapter boards Introduction The STEVAL MKI109V2 eMotion is a motherboard designed to provide the user with a complete ready to use platform for the demonstration of MEMS devices mounted on adapter boards The STEVAL MKI109V2 uses an STM32F 103RET6 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 This user manual describes the hardware included with the demonstration kit and provides the information required to install the demonstration board and how to upgrade the firmware of the microcontroller For details regarding the features of each sensor please refer to the datasheet available for each individual device November 2014 DoclD017768 Rev 4 1 39 www st com Contents UM0979 Contents 1 Demonstration kit description 5 2 eMotion board installation 9 2 1 Hardware installation Windows platforms 9 2 2 DEU 10 2 2 1 DFU on WINdOWS eR eR uY ene a a kup ERE VERE 11 2 2 2 DFU on Linux eee 11 2 2 3 DF on Mac 45 eese debo teh ve hen ade d ue a 12 3 Supported MEMS adapter boar
18. D CD ROM drives System Tools s Human Interface Devices 3 Task Scheduler cg IDE ATA ATAPI controllers 3 Event Viewer 9 IEEE 1394 Bus host controllers Bz Shared Folders amp Keyboards Local Users and Groups n Mice and other pointing devices amp Performance i Modems gy Device Manager Monitors 2 Storage Network adapters 9 Disk Management PCMCIA adapters Services and Applications Y Ports COM amp LPT 9 Communications Port COM1 Y ECP Printer Port LPT1 STMicroelectronics Virtual COM Port COM11 1 Processors SD host adapters Security Devices Smart card readers DFU The MEMS STEVAL MKI109V2 demonstration board is capable of reprogramming an application through the USB in accordance with the DFU class specification defined by the USB Implementers Forum This capability is useful because it allows reprogramming the microcontroller directly in the field and is particularly well suited to USB applications where the same USB connector can be used both for the standard operating mode and for the reprogramming process In order to configure the eMotion board in DFU mode button SW2 must be pressed before supplying the board and released when the LEDs D1 D4 D5 and D6 light up If the firmware version in use is lower than V3 0 0 0 it s mandatory to patch the DFU feature using the Patcher V1 0 2 dfu file available under the DFU folder before
19. ED green is automatically switched on DoclD017768 Rev 4 17 39 Supported commands UM0979 Start command 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 OUT1 OUT2 and OUT3 are the bytes that contain the values measured at device outputs if the output data is represented on more than 8 bits OUT1 OUT2 and OUT3 are split into two bytes high byte e g XH and low byte e g XL IR contains the interrupt bytes and BT contains the bytes that describe the state of the buttons integrated on the board 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 commands Table 4 shows the format of the string returned for each device when a start command is sent Table 4 Returned values for start command STEVAL Device Returned value STEVAL MKIOO9V1 LIS3LVO2DL ST
20. EVAL MKIO89V1 LIS331DLH STEVAL MKIO92V1 LIS331HH STEVAL MKI105V1 LIS3DH STEVAL MKI107V1 L3G4200D STEVAL MKI107V2 L3GD20 STEVAL MK1110V1 AIS328DQ st XH XL YH YL ZH ZL int1 int2 sw1 sw2 r n STEVAL MKI125V1 A3G4250D STEVAL MKI134V1 LISSDSH STEVAL MKI135V1 LIS2DH STEVAL MKI136V1 L3GD20H STEVAL MKI151V1 LIS2DH12 STEVAL MKI153V1 H3LIS331DL STEVAL MKIO13V1 LIS302DL STEVAL MKIO87V1 LIS331DL STEVAL MKIOS90V1 LIS331DLF stX Y Z intl int2 sw1 sw2 v n STEVAL MKIO91V1 LIS331DLM STEVAL MKI152V1 LIS2DM STEVAL MKIO88V1 LIS33DE stXY Zint1 sw1 sw2 r n STEVAL MKIO15V1 LIS344ALH STEVAL MKI114V1 MAG PROBE STEVAL MKI137V1 LISS3MDL st XH YH YL ZH ZL int1 sw1 sw2 v n s t XH XL YH YL ZH ZL sw1 sw2 V n q 18 39 DocID017768 Rev 4 UM0979 Supported commands Table 4 Returned values for start command STEVAL Device Returned value STEVAL MKI074V1 LY330ALH STEVAL MKI075V1 LY3100ALH STEVAL MKIO76V1 LY3200ALH STEVAL MKI082V1 LPY4150AL STEVAL MKI083V1 LPY450AL STEVAL MKI084V1 LPY430AL s t vrefH vrefL 01H o1L out1H out1L out4H out4L o2H STEVAL MKIO85V1 LPY410AL O2L out2H out2L out5H out5L 03H o3L out3H out3L STEVAL MKIO86V1 LPY403AL out6H out6L sw1 sw2 r n STEVAL MKIO95V1 LPR4150AL STEVAL MKIO96V1 LPR450AL STEVAL MKI097V1 LPR430AL STEVAL MKI098V1 LPR410AL STEVAL MKIO99V1 LPR403AL STEVAL MKI106V1 LSM303DLHC STEVAL MKI113V1 LSM303DLM STEVAL MKI133V
21. 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 Gyroscope Stream to FIFO mode enable The gfifostf command enables the gyroscope Stream to FIFO mode Gyroscope Bypass to FIFO mode enable The gfifobtf command is used to enable the gyroscope Bypass to FIFO mode Gyroscope Bypass to Stream mode enable The gfifobts command is used to enable the gyroscope Bypass to Stream mode Gyroscope Dynamic Stream mode enable The gfifodstr command enables the gyroscope Dynamic Stream mode Magnetometer FIFO reset enable The mfiforst command enables the magnetometer FIFO reset mode q DocID017768 Rev 4 UM0979 Supported commands q Magnetometer FIFO mode enable The mfifomde command is used to enable the magnetometer FIFO mode Magnetometer FIFO stream mode enable The mfifostr command is used to enable the magnetometer FIFO stream mode Magnetometer Stream to FIFO mode enable The mfifostf command enables the magnetometer Stream to FIFO mode Magnetometer Bypass to FIFO mode enable The mfifobtf command is used to enable the magnetometer Bypass to FIFO mode Magnetometer Bypass to Stream mode enable The mfifobts command is used to enable the magnetometer Bypass to Stream mode Magnetometer Dynamic Stream mode enable The mf
22. V 1 LPR450AL STEVAL MKIO97V1 LPR430AL STEVAL MKIO98V1 LPR410AL STEVAL MKIO99V1 LPR403AL STEVAL MKI105V1 LIS3DH STEVAL MKI106V1 LSM303DLHC STEVAL MKI107V1 L3G4200D STEVAL MKI107V2 L3GD20 STEVAL MKI108V1 9AXISMODULE v1 LSM303DLHC L3G4200D STEVAL MKI108V2 9AXISMODULE v2 LSM303DLHC L3GD20 STEVAL MKI110V1 AIS328DQ STEVAL MKI113V1 LSM303DLM STEVAL MKI114V1 MAG PROBE based on LSM303DLHC Ly DoclD017768 Rev 4 13 39 Supported MEMS adapter boards 14 39 UM0979 Table 2 List of supported MEMS adapter boards continued Adapter board Device STEVAL MK1120V1 LPS331AP STEVAL MKI122V1 LSM330DLC STEVAL MK1123V1 LSM330D STEVAL MKI124V1 STEVAL MKI125V1 STEVAL MKI 133V1 STEVAL MKI134V1 10AXISMODULE LSM303DLHC L3GD20 LPS331AP A3G4250D LSM303D LIS3DSH STEVAL MKI135V1 LIS2DH STEVAL MKI136V1 L3GD20H STEVAL MKI137V1 STEVAL MKI 141V1 STEVAL MKI141V2 STEVAL MKI 142V1 LIS3MDL HTS221 I2C i f only HTS221 LPS25H STEVAL MKI151V1 LIS2DH12 STEVAL MKI 152V1 LIS2DM STEVAL MKI153V1 STEVAL MKI 154V1 DoclD017768 Rev 4 H3LIS331DL LSM9DSO q UM0979 4 4 1 4 2 q 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 The firmware
23. also handles the communication between the board and the PC through the USB bus These features allow the user to easily write their own applications to exploit the capabilities of the sensor chosen This section describes the commands that are supported by the firmware for the microcontroller of the eMotion demonstration kit Getting started Before using the commands supported by the firmware the following procedure must be performed 1 Connect the eMotion to the USB port 2 Launch an application which allows to send commands through the virtual serial port The remainder of this document assumes the use of Microsoft HyperTerminal program available with the Windows XP operating system 3 Create a new connection enter a name e g STEVAL MKI109V2 and click 4 In the Connect Using field select the virtual COM port to which the USB port has been mapped and click OK 5 n port settings set bits per second to 115200 data bits to 8 parity to none stop bits to 1 and flow control to none Click OK 6 Inthe HyperTerminal application window choose files gt properties gt settings then click on the ASCII Setup button 7 Select Send line ends with line feeds and Echo typed characters locally 8 Click the OK button to close the ASCII Setup window 9 Click the OK button to close the Properties window Once this procedure has been comp
24. c Add Vds c z Add z 1 TOMS dD TP PPA tar sr vr Schematic diagrams Jejdepy rz TIG DoclD017768 Rev 4 34 39 UM0979 6 Bill of materials Bill of materials The bill of materials for the eMotion demonstration kit is provided in Table 13 below Table 13 Bill of materials for STEVAL MKI109V2 Footprint 61206 POL C1 Capacitor 10 uF C2 Capacitor 100 nF 0805 0805 C3 Capacitor 100 nF C4 Capacitor 100 nF 0805 0805 C5 Capacitor 100 nF C6 Capacitor 100 nF 0805 0805 C7 Capacitor 100 nF C8 Capacitor 100 nF 0805 0805 C9 Capacitor 100 nF C10 Capacitor 4 7 uF C0805_POL 0805 C11 Capacitor 1 uF C12 Capacitor 1 uF C0805 POL C0805 POL C13 Capacitor 10 C14 Capacitor 33 nF 0805 0805 C17 Capacitor 10 nF C26 Capacitor 100 nF 0805 0805 Cosc1 Capacitor 18 pF Cosc2 Capacitor 18 pF 0805 0805 D1 SMD LED Blue LED D2 SMD LED Green LED 0805 0805 D3 SMD LED Orange LED D4 SMD LED Green LED 0805 0805 D5 SMD LED Red LED D6 SMD LED Orange LED 0805 HDR5X2 1 27 mm J1 Header_HE10_5X2 JTAG SWD connector J2 CON2 Power supply Header 1x2 2 mm J3 USB_mini_B Mini USB B USB_mini_B J5 Header 12 Header 12 JP 1X12 JP2 Header 12 Header 12X2 HDR1X12 STMicroelectronics Header 1x3 2 mm JP4 Header 3 JP5 Header 3 JP6 Header 3 PD HP Header
25. d to clear to 0 the full scale pin in analog devices 4 2 2 Digital output accelerometers supported commands Table 6 below lists the commands supported by the devices demonstration boards including a digital output accelerometer Table 6 Digital output accelerometers supported commands list Command Description Returned value Selects firmware according to the adapter setdbXXXVY connected start Starts continuous data acquisition see Table 4 debug Returns the output data in readable text format see Table 5 stop Stops data acquisition Device name e g LIS3DH Firmware version e g V1 0 Accelerometer register read e g RAAhDDh Accelerometer register write It gets a single X Y and Z data acquisition see Table 5 Prints the list of MKIs supported e g MKI105V4 listdev Prints the list of devices supported e g LIS3DH echoon Activates the write verbose mode e g RAAhDDh echooff Deactivates the write verbose mode fiforst Accelerometer Reset mode enable st000000IR FC FS fifomde Accelerometer FIFO mode enable st000000IRFCFS fifostr Accelerometer FIFO stream enable st000000IR FC FS fifostf 1 Accelerometer Stream to FIFO enable st000000IRFCFS fifobtf Accelerometer Bypass to FIFO enable st000000IRFCFS 26 39 DoclD017768 Rev 4 Ly UM0979 Supported commands Table 6 Digital output accelerometers supported commands list
26. ds 13 4 Supported commands 15 4 1 Getting starled pesce ke xA 15 4 2 Supported commands 15 4 2 1 Commands list and description 16 4 2 2 Digital output accelerometers supported commands 26 4 2 3 Analog output accelerometers supported commands 27 4 2 4 Digital output gyroscopes supported commands 28 4 2 5 Analog output gyroscopes supported commands 29 4 2 6 Digital output magnetometers supported commands 29 4 2 7 Digital output pressure sensor supported commands 30 4 2 8 Digital output humidity sensor supported commands 31 4 3 Quick start rs 32 5 Schematic diagrams 33 6 Bill of materials J J U su w W w IE Es TA 35 7 Revision history 38 2 39 DoclD017768 Rev 4 Ly UM0979 List of tables List of tables Table 1 Table 2 Table 3 Table 4 Table 5 Table 6 Table 7 Table 8 Table 9 Table 10 Table 11 Table 12 Table 13 Table 14 q Jumper configuration for power down PD self test ST and high pass filter reset HP 8 List of supported MEMS adapter boards 13 Supported commands li
27. e and the user is required to send the Zoff command to allow communication between the sensor and the microcontroller If Zoff has not been launched the firmware ignores any other command Device name The dev command retrieves the name of the adapter connected to the demonstration kit The returned value is for example LIS3DH Firmware version The ver command queries the demonstration kit and returns the version of the firmware loaded in the microprocessor for example V1 0 Accelerometer register read The rAA command allows the contents of the accelerometer registers in the demonstration kit board to be read AA expressed as a hexadecimal value and written in upper case represents the address of the register to be read Once the read command is issued the board returns RAAhDDh where AA is the address sent by the user and DD is the data present in the register For example to read the register at address 0x20 the user issues the command r20 which returns e g R20hC7h Accelerometer register write The wAADD command allows writing to the contents of the accelerometer registers in the demonstration kit board AA and DD expressed as hexadecimal values and written in upper case represent respectively the address of the register and the data to be written For example to write OxC7 to the register at address 0x20 the user issues the command w20C7 q DocID017768 Rev 4 21 39 Supported commands UM0979
28. e register q 28 39 DocID017768 Rev 4 UM0979 Supported commands 4 2 5 Analog output gyroscopes supported commands Table 9 below lists the commands supported by the devices demonstration boards including an analog output gyroscope Table 9 Analog output gyroscopes supported commands list setdbXXXVY Selects firmware according to the adapter connected Starts continuous data acquisition see Table 4 Returns the in readable text see Table 5 Stops data acquisition Forces 3 state Device name e g LIS3DH Firmware version e g V1 0 single It gets a single X Y and Z data acquisition see Table 5 list Prints the list of MKIs supported e g MKI105V1 listdev Prints the list of devices supported e g LIS3DH Activates the write verbose mode e g RAAhDDh Deactivates the write verbose mode PDON Sets power down pin PDOFF Clears power down pin STON Sets self test pin STOFF Clears self test pin HPON Sets high pass filter pin HPOFF Clears high pass filter pin 4 2 6 Digital output magnetometers supported commands Table 10 below lists the commands supported by the devices demonstration boards including a digital output magnetometer Table 10 Digital output magnetometer supported commands list Command Description Returned value Selects firmware according to the adapter setdbXXXVY connected start Starts continuous data acquisition see Table 4
29. ifodstr command enables the magnetometer Dynamic Stream mode Pressure sensor FIFO reset enable The pfiforst command enables the pressure sensor FIFO reset mode 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 Pressure sensor Bypass to FIFO mode enable The pfifobtf command is used to enable the pressure sensor Bypass to FIFO mode Pressure sensor Bypass to Stream mode enable The pfifobts command is used to enable the pressure sensor Bypass to Stream mode Pressure sensor Dynamic Stream mode enable The pfifodstr command enables the pressure sensor Dynamic Stream mode PDON and PDOFF The PDON and PDOFF commands are employed respectively to set to 1 and to clear to 0 the power down pin in analog devices DoclD017768 Rev 4 25 39 Supported commands UM0979 STON and STOFF The STON and STOFF commands are employed respectively to set to 1 and to clear to 0 the self test pin in analog devices HPON and HPOFF The HPON and HPOFF commands are employed respectively to set to 1 and to clear to 0 the high pass filter pin in analog devices FSON and FSOFF The FSON and FSOFF commands are employed respectively to set to 1 an
30. ivate the write command verbose mode Once this command is launched after every write command the firmware automatically performs also a read of the register just written This function is useful to check if the write has succeeded For instance if the echoon command is launched after a w2027 it results R2027 Echo off The echooff command stops the write command verbose mode Accelerometer FIFO reset enable The fiforst command enables the accelerometer FIFO reset mode For more details see the AN3308 application note DoclD017768 Rev 4 23 39 Supported commands UM0979 24 39 Accelerometer FIFO mode enable The fifomde command is used to enable the accelerometer FIFO mode For more details see the AN3308 application note Accelerometer FIFO stream mode enable The fifostr command is used to enable the accelerometer FIFO stream mode For more details see the AN3308 application note Accelerometer Stream to FIFO mode enable The fifostf command enables the accelerometer Stream to FIFO mode For more details see the AN3308 application note Accelerometer Bypass to FIFO mode enable The fifobtf command is used to enable the accelerometer Bypass to FIFO mode Accelerometer Bypass to Stream mode enable The fifobts command is used to enable the accelerometer Bypass to Stream mode Accelerometer Dynamic Stream mode enable The fifodstr command enables the accelerometer Dynamic Stream mode Gyroscope FIFO reset enable
31. leted the user can utilize the commands described in the following sections by typing them into the HyperTerminal window Supported commands The firmware supports a wide range of MEMS adapters the next section provides the complete list of supported commands see Table 3 and their description Then split into sections the list of commands available for each sensor supported by the eMotion firmware is provided DoclD017768 Rev 4 15 39 Supported commands UM0979 4 2 1 Commands list and description Table 3 Supported commands list Description Returned value setdbXXXVY Selects firmware according to the adapter connected Starts continuous data acquisition see Table 4 Returns the E in readable text see Table 5 Stops data acquisition Forces 3 state Device name e g LIS3DH Firmware version e g V1 0 Accelerometer register read e g RAAhDDh Accelerometer register write Gyroscope register read e g GRAAhDDh gwAADD Gyroscope register write Magnetometer register read e g MRAAhDDh Magnetometer register write Pressure sensor register read e g PRAAhDDh Pressure sensor register write Humidity sensor register read e g HRAAhDDh hwAADD Humidity sensor register write It gets a single X Y and Z data acquisition see Table 5 list Prints the list of MKIs supported e g MKI105V1 listdev Prints the list of devices supported e g LIS3DH echoon Activa
32. n a terminal and run the following command ruby e curl fsSL https raw github com Homebrew homebrew go install Once Homebrew is installed on your Mac you can install dfu utils with the following command brew install dfu util You should now be able to program the board So connect the eMotion board in DFU mode and run the following command dfu util a 0 D dfu path file dfu d 0483 df11 where dfu path and file dfu are the path to the dfu file and the dfu file name respectively example dfu util a 0 D Desktop eMotionV2 REL 4 O dfu d 0483 df11 To use the board with the upgraded firmware you need to disconnect and reconnect it in order to exit DFU mode q DocID017768 Rev 4 UM0979 Supported MEMS adapter boards 3 Supported MEMS adapter boards Table 2 below provides the complete list of supported adapter boards Table 2 List of supported MEMS adapter boards Adapter board Device STEVAL MKIOO9V 1 LIS3LVO2DL STEVAL MKIO13V1 LIS302DL STEVAL MKIO15V1 LIS344ALH STEVAL MKIO74V1 LY330ALH STEVAL MKIO75V1 LY3100ALH STEVAL MKIO76V 1 LY3200ALH STEVAL MKI082V 1 LPY4150AL STEVAL MKI083V1 LPY450AL STEVAL MKI084V1 LPY430AL STEVAL MKI085V1 LPY410AL STEVAL MKIO86V1 LPY403AL STEVAL MKI087V1 LIS331DL STEVAL MKIO88V1 LIS33DE STEVAL MKIO89V1 LIS331DLH STEVAL MKIO90V 1 LIS331DLF STEVAL MKIO91V1 LIS331DLM STEVAL MKIO92V1 LIS331HH STEVAL MKIO95V1 LPR4150AL STEVAL MKIO96
33. 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 09 Sep 2013 03 Nov 2014 Updated Section 2 2 DFU Table 2 List of supported MEMS adapter boards Table 4 Returned values for start command and Table 5 Returned values for debug command Updated Section 2 1 Hardware installation Windows platforms Table 2 List of supported MEMS adapter boards Table 4 Returned values for start command and Table 5 Returned values for debug command Added Section 2 2 2 DFU on Linux Section 2 2 3 DFU on Mac OS and Section 4 2 8 Digital output humidity sensor supported commands Removed STEVAL MKI109V1 q DocID017768 Rev 4 UM0979 IMPORTANT NOTICE PLEASE READ CAREFULLY STMicroelectronics NV and its subsidiaries ST reserve the right to make changes corrections enhancements modifications and improvements to ST products and or to this document at any time without notice Purchasers should obtain the latest relevant information on ST products before placing orders ST products are sold pursuant to 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 products No license express o
34. pressure sensor Table 11 Digital output pressure sensor supported commands list Command Description Selects firmware according to the adapter setdbXXXVY connected Returned value start Starts continuous data acquisition see Table 4 Returns the output data in readable text format debug see Table 5 Stops data acquisition Zon Forces 3 state Zoff Exits from 3 state dev Device name e g LIS3DH 30 39 DoclD017768 Rev 4 Ky UM0979 Supported commands Table 11 Digital output pressure sensor supported commands list continued Command Description Firmware version Returned value e g V1 0 Pressure sensor register read e g PRAAhDDh Pressure sensor register write It gets a single X Y and Z data acquisition see Table 5 Prints the list of MKIs supported e g MKI105V1 Prints the list of devices supported e g LIS3DH echoon Activates the write verbose mode e g PRAAhDDh echooff Deactivates the write verbose mode st000000IRFCFS st000000IRFC FS st000000IRFC FS st000000IRFC FS pfiforst Pressure sensor Reset mode enable pfifomde Pressure sensor FIFO mode enable pfifostr Pressure sensor FIFO stream enable pfifostf Pressure sensor Stream to FIFO enable pfifobtf 1 Pressure sensor Bypass to FIFO enable st000000IR FC FS pfifobts Pressure sensor Bypass to stream enable st000000IR FC FS
35. r the eMotion integrates three buttons two are available to the user on a dedicated GPIO of the microcontroller while the other is used as reset for the microcontroller All the MEMS adapter pins are available on two connectors placed on the board Figure 2 JP2 and JP3 The top silkscreen view and image of the full board are shown in Figure 2 and Figure 3 respectively DoclD017768 Rev 4 5 39 UM0979 Demonstration kit description Figure 2 Top silkscreen of the eMotion kit gt N io N N 9 z lt DocID017768 Rev 4 6 39 UM0979 q Demonstration kit description Figure 3 Board top view ref 3 Y h L wr H AJ nri p 9997 LEES o 09979077777 ref 12 ref 6 ref 11 ref 10 ref 9 ref 8 ref 7 AMO07758v1 In order to use the eMotion demonstration kit installation of a dedicated driver is required which is included in the installation pack together with a GUI interface which allows simple interaction with the sensor The steps required for driver and software installation are described in the following sections In Figure 3 some main components placed on the top layer of the eMotion kit are highlighted e Jumpers JP9 and JP10 Figure 3 ref 10 ref 11 are used to select the STM32 boot mode When the eMotion is used together with MEMS adapters JP9 and JP10 must be fitted see STM32 datasheet for more information e Jumper J2 Figure 3 ref 7 can
36. r implied to any intellectual property right is granted by ST herein Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product ST and the ST logo are trademarks of ST All other product or service names are the property of their respective owners Information in this document supersedes and replaces information previously supplied in any prior versions of this document 2014 STMicroelectronics All rights reserved q DocID017768 Rev 4 39 39
37. rce code of the firmware of the eMotion board together with the corresponding binary file that can be flashed to the board using the DFU software The section below describes the procedure to install the driver for the eMotion board needed on Windows platforms only and the DFU software Hardware installation Windows platforms No driver installation is needed on Linux and Mac OS platforms To install the STM32 virtual COM port driver on Windows platforms launch the VCPDriver V1 1 Setup exe included in the Windows installation package under the DRIVER folder and follow the instructions on the screen Once the driver is installed insert the demonstration kit board into a free USB port A notification message should appear as in Figure 4 Figure 4 Notification message STMicroelectronics Virtual COM Port COM11 O Device driver software installed successfully Now the eMotion should be recognized by the PC as a virtual COM In order to confirm which COM port has been assigned to the board right click on My Computer and select Manage select Device Manager and scroll through the list until Ports COM amp LPT In the following example Figure 5 the COM11 has been assigned to the board DoclD017768 Rev 4 9 39 eMotion board installation UM0979 2 2 10 39 Figure 5 Virtual COM port assignment File Action View Help 2 cH 612 5 Computer Management Local 43 DV
38. screen correspond to the LSB data shown as a decimal number q DocID017768 Rev 4 19 39 Supported commands 20 39 UM0979 Table 5 shows the format of the string returned for each device when a debug command is sent Table 5 Returned values for debug command STEVAL Device STEVAL MKIOO9V1 LIS3LVO2DL STEVAL MKIO13V1 LIS302DL STEVAL MKIO15V4 LIS344ALH STEVAL MKIO87V1 LIS331DL STEVAL MKIO88V4 LIS33DE STEVAL MKIO89V1 LIS331DLH STEVAL MKIO90V1 LIS331DLF STEVAL MKIO91V1 LIS331DLM STEVAL MKIO92V1 LIS331HH STEVAL MKI05V1 LIS3DH STEVAL MKI110V1 AIS328DQ STEVAL MKI134V1 LIS3DSH STEVAL MKI135V1 LIS2DH STEVAL MKI151V1 LIS2DH12 STEVAL MKI152V1 LIS2DM STEVAL MKI153V1 H3LIS331DL Returned value X XXXXX YzYYYYY Z ZZZZZ STEVAL MKIO82V1 LPY4150AL STEVAL MKIO83V1 LPY450AL STEVAL MKIO84V1 LPY430AL STEVAL MKIO85V1 LPY410AL STEVAL MKIO86V1 LPY403AL STEVAL MKIO95V1 LPR4150AL STEVAL MKIO96V1 LPR450AL STEVAL MKIO97V1 LPR430AL STEVAL MKIO98V1 LPR410AL STEVAL MKIO99V1 LPR403AL STEVAL MKIO74V1 LY330ALH STEVAL MKIO75V1 LY3100ALH STEVAL MKIO76V1 LY3200ALH VREF VVVVV OUT1 XXXXX 4OUT12XXXXX OUT3 YYYYY OUT6 YYYYY VREF VVVVV OUT1 XXXXX 40OUT1 XXXXX STEVAL MKI106V1 LSM303DLHC STEVAL MKI113V1 LSM303DLM STEVAL MKI133V1 LSM303D STEVAL MKI114V1 MAG PROBE STEVAL MKI137V1 LISS3MDL AX XXXXX AY YYYYY AZ ZZZZZ MY YYYYY MZ ZZZZZ
39. st 16 Returned values for start command 18 Returned values for debug 20 Digital output accelerometers supported commands list 26 Analog output accelerometers supported commands list 27 Digital output gyroscopes supported commands list 28 Analog output gyroscopes supported commands list 29 Digital output magnetometer supported commands list 29 Digital output pressure sensor supported commands list 30 Digital output humidity sensor supported commands list 31 Bill of materials for STEVAL MKI109V2 35 Document revision history llle 38 DoclD017768 Rev 4 3 39 List of figures UM0979 List of figures Figure 1 Demonstration board block diagram 5 Figure 2 silkscreen of the eMotion kit 6 Figure 3 Board top vieW s usus aY ee eee he hh de 7 Figure 4 Notification 9 Figure 5 Virtual COM port 5 10 Figure 6 eMotion board power supply and 5
40. tes the write verbose mode e g RAAhDDh echooff Deactivates the write verbose mode Accelerometer Reset mode enable st000000IR FC FS Accelerometer FIFO mode enable st000000IRFCFS fifostr Accelerometer FIFO stream enable st000000IR FC FS fifostf Accelerometer Stream to FIFO enable st000000IR FC FS fifobtf Accelerometer Bypass to FIFO enable st 0 0 0 0 0 0 IR FC FS fifobts Accelerometer Bypass to stream enable st 0 00000 IR FC FS fifodstr Accelerometer Dynamic stream enable st 0 0 0 0 0 0 IR FC FS gfiforst Gyroscope Reset mode enable st0 00000 IR FC FS q 16 39 DocID017768 Rev 4 UM0979 Supported commands Table 3 Supported commands list continued Command gfifomde Description Gyroscope FIFO mode enable Returned value st000000IRFCFS gfifostr Gyroscope FIFO stream enable st000000IRFC FS gfifostf Gyroscope Stream to FIFO enable st000000IRFC FS gfifobtf Gyroscope Bypass to FIFO enable gfifobts Gyroscope Bypass to stream enable gfifodstr mfiforst Gyroscope Dynamic stream enable Magnetometer Reset mode enable st 0 0 0 0 00 IR FC FS st 0 00000 IR FC FS st O 0 00 00 IR FC FS st 0 0 0000 IR FC FS mfifomde Magnetometer FIFO mode enable st 0 0 0 0 00 IR FC FS mfifostr Magnetometer FIFO stream enable st 0 0 0000 IR FC FS mfifostf Magnetometer Stream
41. th sudo to ensure having the correct permissions sudo apt get install dfu util Create a udev rules file sudo gedit etc udev 49 emotion rules and fill it with the following content 0483 5740 STM32F4 in USB Serial Mode CN5 ATTRS idVendor 0483 ATTRS idProduct 5740 ENV IID MM DEVICE IGNOREj 1 ATTRSf idVendor 0483 ATTRS idProduct 5740 ENV MTP NO PROBEj 1 SUBSYSTEMS usb ATTRS idVendor 0483 ATTRS idProduct 5740 MODE 0666 KERNEL ttyACM ATTRS idVendor 0483 ATTRS idProduct 5740 MODE 0666 0483 df11 STM32F4 in DFU mode CN5 SUBSYSTEMS usb ATTRSf idVendor 0483 ATTRS idProduct df11 MODE 0666 Tell udev to reload its rules sudo udevadm control reload rules You should now be able to program the board So connect the eMotion board in DFU mode and run the following command sudo dfu util a 0 D dfu_path file dfu d 0483 df11 where dfu_path and file dfu are the path to the dfu file and the dfu file name respectively example sudo dfu util a 0 D Desktop eMotionV2_REL_4_0 dfu d 0483 df11 DoclD017768 Rev 4 11 39 eMotion board installation UM0979 2 2 3 12 39 To use the board with the upgraded firmware you need to disconnect and reconnect it in order to exit DFU mode DFU on Mac OS The DFU program used for Mac operating systems is dfu util Before installing it you need to install Homebrew To do that you need to ope
42. to FIFO enable st 0 0 0 0 00 IR FC FS mfifobtf Magnetometer Bypass to FIFO enable st0 00000 IR FC FS mfifodstr mfifobts Magnetometer Bypass to stream enable Magnetometer Dynamic stream enable st 0 0 0 0 00 IR FC FS st 0 0 0 0 00 IR FC FS pfiforst Pressure sensor Reset mode enable st 0 0 00 00 IR FC FS pfifomde Pressure sensor FIFO mode enable st 0 0 0 0 00 IR FC FS pfifostr Pressure sensor FIFO stream enable pfifostf Pressure sensor Stream to FIFO enable pfifobtf Pressure sensor Bypass to FIFO enable pfifobts Pressure sensor Bypass to stream enable st 0 0 0 0 00 IR FC FS st 0 0 0 0 00 IR FC FS st 0 0 0 0 00 IR FC FS st 0 0 0000 IR FC FS pfifodstr Pressure sensor Dynamic stream enable st 0 0 0 0 00 IR FC FS PDON Set power down pin PDOFF Clears power down pin STON Sets self test pin STOFF Clears self test pin HPON Sets high pass filter pin HPOFF Clears high pass filter pin FSON Sets full scale pin Note q FSOFF Clears full scale pin IR interrupt byte FC FIFO control register FS FIFO source register Set demonstration board The command setdbxxxvy selects the part of the firmware able to handle the adapter board sensor connected to the board e g in order to select the firmware for the LIS3DH the command must be setdb105V1 The D6 L
43. tted mode e eMotion also integrates six LEDs and three buttons LED D1 Figure 3 ref 6 is switched on when the board is power supplied LEDs D2 and D3 Figure 3 ref 13 are directly connected to the interrupt pins of the MEMS digital adapters if available on the sensor mounted on the adapter board LEDs 4 D5 and D6 Figure 3 ref 12 are general purpose LEDs and are used to indicate firmware states For example LED D6 is switched on when a specific firmware is selected from those available LED D5 on indicates that the microcontroller is well configured for communication with the sensor Finally the LED D4 blinks according to the sensor data rate selected Button SW3 Figure 3 ref 1 is used to reset the STM32 Button SW1 and SW2 Figure 3 ref 2 and ref 5 are connected to STM32 GPIOs and are available to the user q DocID017768 Rev 4 UM0979 2 2 1 q eMotion board installation eMotion board installation The software package can be downloaded from the st com website and includes the following directory structure e DRIVER it contains the installation package for the USB drivers needed to connect the eMotion board to the PC No driver is needed on Linux and Mac OS platforms so this directory is included in the Windows installation package only e DFU it contains the dfu files and the installation package for the software needed to upgrade the firmware of the eMotion board e FIRMWARE it contains the sou
Download Pdf Manuals
Related Search
Related Contents
ASUS C6989 User's Manual Finlux 32F8030-T User's Manual Untitled KIP 5000 User Guides Land Pride 311-252M User's Manual Sur les pas d`Ératosthène AED ハートスタートFRx (PDF形式 2.28M) Descarga Copyright © All rights reserved.
Failed to retrieve file