Home

STEVAL-MKI109V1 - eMotion motherboard for MEMS

image

Contents

1. 8X DIGHIN AHR zr Tb PA do a A A a EL AN OMNI Pals Pals Ta c CH x1 x1 5 n OSIN ZS 2S sa in i a TA ISON ta aa sa ta sa Li BT NAIS NU ms TMS tg AA SO LOOH 1LOOH eRe MOOD W001 W001 gwr A001 o z JA HO D s vos ed oni oa s IMS x 1 ES I vni L ZA dd TIN daa daa L ad daa dak MP PPA Mp PPA A s q ASA SIT ASN 901 WIESE si dagsn lt waasn gt aaa di a A Wdasn S3z2EBB2208000320 aa 35 ER555R42525555 m ABlczs3 o0MZ 5 dada REEERE lt aq am e sup masaa BSP ERSSSE oaviva pa L fao dd 2a Ds das PE BOS CMS EIU ness toa T SL merno c ma E a OSIN ZHds rldd 287 oaviamiwova A cat Vas as s SOWaavstad wA Hp AX 89 Lt ia 19AV 94 mo 3 Ha HOA TIN LID EMS exper Z N SC ex 12qv 124 01 IS v Ir OON SVd 0IOGV 0d 4 XL ILAVSMV 6Yd ISUN oe aaa I oe XA LLAVSN O Iva 09S O Idd Ba sar Wades pr poc As ma daan e OASSNU va CEOSO VIOd nis pejunoy ION OI MS SAI ri TSA T ra as OLW 2due perd Qu ker p PPA BB og Du daa EE BE SSe ECEPPPEEP EP PEE SZERESEBREERREBII SO LICEINLS Abe AS E dA z Fl any DS das DM a AHG TOS A0 SYA TS Ja ANN Aa vas wo oni vas oa A IOS Ja Vas od Xvipur ici ooi apo mac daa psyunow joN pejunoy ION ou es tidi SINO Ta TXT PCH A C opto 7 I9PVH TXTI 19peoH PAUD
2. Ti UM0979 J User manual STEVAL MKI109V1 eMotion motherboard for MEMS adapter board March 2011 Introduction The STEVAL MKI109V1 eMotion is a motherboard designed to provide the user with a complete ready to use platform for demonstration of MEMS devices mounted on adapter boards The eMotion board uses an STM32F102RB 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 and run the demonstration kit user interface For details regarding the features of each sensor please refer to the datasheets available for each individual device Doc ID 17768 Rev 1 1 32 www st com Contents UM0979 Contents 1 Demonstration kit description AA ee 5 2 eMotion board installation eeeeeeeeeeese 9 2 1 Hardware installation cxx npa KK eet ERE ER been Sent ERERRGCRESCER AEA 9 2 2 DEU ABAD ete er eee E eee ee eee eee re te ee eee eee ee ae 11 3 Supported MEMS adapter boards 12 4 Supported commands 0000 cece eect eee eee ee 13 4 1 iuba PITT 13 4 2 Supported commands 00 0 c eee eee 13 4 2 1 Commands list and descriptio
3. bi ref 6 ref 11 ref 10 ref 9 ref 8 ref 7 AM07758v1 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 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 J1P0 must be fitted see STM32 datasheet for more information Jumper J2 Figure 3 ref 7 can be used to directly supply the board from 3 5 V to 6 V instead of using the USB connector Jumper JP1 allows the user to measure the sensor current consumption by connecting a multimeter in series with its terminals Figure 3 ref 9 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 Doc ID 17768 Rev 1 7 32 Demonstration kit description UM0979 8 32 Table 1 Jumper configuration for p
4. to this document and the products and services described herein at any time without notice All ST products are sold pursuant to ST s terms and conditions of sale Purchasers are solely responsible for the choice selection and use of the ST products and services described herein and ST assumes no liability whatsoever relating to the choice selection or use of the ST products and services described herein No license express or implied by estoppel or otherwise to any intellectual property rights is granted under this document If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION OR INFRINGEMENT OF ANY PATENT COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE ST PRODUCTS ARE NOT RECOMMENDED AUTHORIZED OR WARRANTED FOR USE IN MILITARY AI
5. ASCII char s and t which correspond to the hexadecimal values 73h 74h OUT1 OUT2 and OUTS 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 OUTS 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 ky Doc ID 17768 Rev 1 15 32 Supported commands UM0979 Note 16 32 1 Table 4 Returned values for start command STEVAL Device STEVAL MKI009V1 LISSLVO2DL STEVAL MKIO89V1 LIS331DLH STEVAL MKIO90V1 LIS331DLF STEVAL MKI091V1 LIS331DLM STEVAL MKIO92V1 LIS331HH STEVAL MKI105V1 LIS3DH STEVAL MKI107V1 L3G4200D STEVAL MKI110V1 AIS328DQ Returned value s t XH XL YH YL ZH ZL int1 int2 sw1lsw2 v n STEVAL MKIO13V1 L
6. POL C14 Capacitor 33 nF 0805 C17 Capacitor 10 nF 0805 C26 Capacitor 100 nF 0805 Cosc1 Capacitor 18 pF 0805 Cosc2 Capacitor 18 pF 0805 D1 SMD LED Blue LED 0805 D2 SMD LED Green LED 0805 D3 SMD LED Orange LED 0805 D4 SMD LED Green LED 0805 D5 SMD LED Red LED 0805 D6 SMD LED Orange LED 0805 J1 Header HE10 5X2 JTAG SWD connector HDR5X2 1 27 mm J2 CON2 Power supply Header 1x2 2 mm J3 USB_mini_B Mini USB B USB_mini_B J4 Header 12 Header 12 HDR1X12 J5 Header 12 Header 12 JP 1X12 JP1 CON2 Current Measure Header 1x2 2 mm JP2 Header 12 Header 12X2 HDR1X12 JP3 Header 12 Header 12X2 HDR1X12 JP4 Header 3 STMicroelectronics Header 1x3 2 mm JP5 Header 3 PD Header 1x3 2 mm JP6 Header 3 HP Header 1x3 2 mm 28 32 Doc ID 17768 Rev 1 ky UM0979 Bill of materials Table 11 Bill of materials continued 4 Doc ID 17768 Rev 1 Designator Description Comment Footprint JP7 CON2 Header 1x2 2 mm JP9 CON2 Header 1x2 2 mm JP10 CON2 Header 1x2 2 mm Osc1 Pat 16 MHz Ceramic SMD Crystal 3 2x2 5 mm Q1 BC817 25 BC817 SOT 23 Q2 BC817 25 BC817 SOT 23 R2 Resistor 10 KQ 0805 R3 Resistor 10 ko 0805 R4 Resistor 10 ko 0805 R5 Resistor 10 KQ 0805 R6 Resistor 10 KQ 0805 R7 Resistor 1 MO 0805 R8 Resistor 10 KQ 0805 R9 Resistor 0805 R10 Resistor 0805 R11 Resistor 10 KQ 0805 R12 Resistor 10 kO 0805 R13 Resistor 10 KQ 0805 R14 Resistor 10 KQ 0805 R15 Resis
7. available for each sensor supported by the eMotion firmware is reported Doc ID 17768 Rev 1 13 32 Supported commands UM0979 4 2 1 Commands list and description Table 3 Supported commands list 14 32 Doc ID 17768 Rev 1 Command Description Returned value setdbXXXVY Selects c T to the adapter start Starts continuous data acquisition see Table 4 debug Returns the ia in readable text see Table 5 stop Stops data acquisition Zon Forces 3 state Zoff Exits from 3 state dev Device name e g LISIDH ver Firmware version e g V1 0 TAA Accelerometer register read e g RAAhDDh wAADD Accelerometer register write grAA Gyroscope register read e g GRAAhDDh gwAADD Gyroscope register write mrAA Magnetometer register read e g MRAAhDDh mwAADD Magnetometer register write prAA Pressure sensor register read e g PRAAhDDh pwAADD Pressure sensor register write 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 LISIDH echoon Activates the write verbose mode e g RAAhDDh echooff Deactivates the write verbose mode fifostr Accelerometer FIFO stream mode enable st 0 0 0 0 0 0 IR FC FS fifomde Accelerometer FIFO mode mode enable st 0 0 0 0 0 0 IR FC FS fifotrg Accelerometer D
8. 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 Doc ID 17768 Rev 1 17 32 Supported commands UM0979 18 32 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 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
9. 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 activate 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 stream mode enable The fifostr command is used to enable the accelerometer FIFO stream mode For more details see the AN3308 application note Doc ID 17768 Rev 1 19 32 Supported commands UM0979 20 32 Accelerometer FIFO mode enable The fifomde command is used to enable the accelerometer FIFO mode For more details see the AN3308 application note Accelerometer Stream to FIFO mode enable The fifotrg command enables the accelerometer stream to FIFO mode For more details see the AN3308 application note Accelerometer FIFO reset enable The fiforst command enables the accelerometer FIFO reset mode For more details see the AN3308 application note Gyroscope FIFO stre
10. 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 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 addr
11. 31DLF e STEVAL MKIO91V1 LIS331DLM e STEVAL MKIO92V1 LIS331HH e STEVAL MKI105V1 LISIDH e STEVAL MKI110V1 AIS328DQ Table 6 Digital output accelerometers supported commands list Command Description Returned value setdbXXXVY Selects firmware according to the adapter connected start Starts continuous data acquisition see Table 4 debug Returns the ee in readable text see Table 5 stop Stops data acquisition Zon Forces 3 state Zoff Exits from 3 state dev Device name e g LISIDH ver Firmware version e g V1 0 AA Accelerometer register read e g RAAhDDh WAADD Accelerometer register write 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 LISIDH echoon Activates the write verbose mode e g RAAhDDh echooff Deactivates the write verbose mode fifostr Accelerometer FIFO stream mode enable st000000IRFCFS fitomde Accelerometer FIFO mode mode enable st0000001IRFCFS fifotrg Accelerometer Pic to FIFO mode st000000IRFECES fiforst Accelerometer reset mode enable st000000IRFCFS 1 Available only for devices with embedded FIFO Note ky Doc ID 17768 Rev 1 IR interrupt byte FC FIFO control register FS FIFO source register Supported commands UM0979 4 2 3 Analog output accelerometers supported commands Table 7 bel
12. AL MKI015V1 LIS344ALH STEVAL MKIO87V1 LIS331DL STEVAL MKIO89V1 LIS331DLH STEVAL MKIO90V1 LIS331DLF STEVAL MKIO91V1 LIS331DLM STEVAL MKIO92V1 LIS331HH STEVAL MKI105V1 LIS3DH STEVAL MKI110V1 AIS328DQ X XXXXX Y YYYYY Z ZZZZZ STEVAL MKIO82V1 LPY4150AL STEVAL MKIO83V1 LPY450AL STEVAL MKIO85V1 LPY410AL STEVAL MKIO86V1 LPY403AL STEVAL MKIO95V1 LPR4150AL STEVAL MKIO96V1 LPR450AL STEVAL MKIO97V1 LPR430AL STEVAL MKIO98V1 LPR410AL STEVAL MKIO99V1 LPR403AL STEVAL MKI107V1 L3G4200D P PPPPP R RRRRR YzYYYYY STEVAL MKI112V1 LPS001WP P PPPPP T TTTTT D DDDDD VREF VVVVV OUT1 XXXXX 40UT1 XXXXX OUT3 YYYYY OUT6 YYYYY 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 STM32F102RB microcontroller mounted on the demonstration kit These commands allow the isolation of the sensor from the microprocessor and let the user to interact with the sensor in a pure analog way By default when the kit is first turned on the lines are in 3 state mode 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
13. E to FIFO mode st000000IRFCES fiforst Accelerometer reset mode enable st 0 0 0 0 0 0 IR FC FS gfifostr Gyroscope FIFO stream mode enable st0 0 0000 IR FC FS gfifomde Gyroscope FIFO mode mode enable st 0 0 0 000 IR FC FS gfifotrg Gyroscope stream to FIFO mode enable st 0 0 0 0 0 0 IR FC FS gfiforst Gyroscope reset mode enable st 0 0 0000 IR FC FS gfifobts Gyroscope Bypass to FIFO enable st 0 00000 IR FC FS PDON Set power down pin a UM0979 Supported commands Table 3 Supported commands list continued Command Description Returned value 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 FSOFF Clears full scale pin Note 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 LED green is automatically switched on 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
14. IS302DL STEVAL MKI087V1 LIS331DL stX Y Z intl int2 swilsw2 v n st XH XL YH YL ZH ZL sw1 sw2 v n STEVAL MKIO82V1 LPY4150AL STEVAL MKIO83V1 LPY450AL STEVAL MKIO85V1 LPY410AL STEVAL MKIO86V1 LPY403AL STEVAL MKIO95V1 LPR4150AL STEVAL MKIO96V1 LPR450AL STEVAL MKIO97V1 LPR430AL STEVAL MKIO98V1 LPR410AL STEVAL MKIO99V1 LPR403AL s t vrefH vrefL 01H o1L out1H out1L out4H out4L o2H o2L out2H out2L out5H out5L 03H o3L out3H out3L out6H out6L sw1lsw2 W n STEVAL MKIO15V1 LIS344ALH STEVAL MKI112V1 LPS001WP s t PH PL TEMPH TEMPL DH DL int1 sw1 sw2 v n XH X axis output high byte same for Y axis Z axis P pressure and TEMP temperature XL X axis output low byte same for Y axis Z axis P pressure 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 screen correspond to the LSB data shown as a decimal number Table 5 shows the format of the string returned for each device when a debug command is sent Doc ID 17768 Rev 1 a UM0979 Supported commands Table 5 Returned values for debug command STEVAL Device Returned value STEVAL MKI009V1 LISSLVO2DL STEVAL MKI013V1 LIS302DL STEV
15. LPR4150AL STEVAL MKIO96V1 LPR450AL STEVAL MKIO97V1 LPR430AL STEVAL MKIO98V1 LPR410AL STEVAL MKIO99V1 LPR403AL Table 9 Analog output gyroscopes supported commands list Command Description Returned value setdbXXXVY Selects firmware according to the adapter connected start Starts continuous data acquisition see Table 4 debug Returns the ee in readable text see Table 5 stop Stops data acquisition Zon Forces 3 state Zoff Exits from 3 state dev Device name e g LISIDH ver 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 LISIDH 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 HPON Sets high pass filter pin HPOFF Clears high pass filter pin 24 32 Doc ID 17768 Rev 1 ky UM0979 Supported commands 4 2 6 Digital output pressure sensor supported commands Table 10 below lists the commands supported by the following devices demonstration boards e STEVAL MKI112V1 LPS001WP Table 10 Digital output pressure sensor supported commands list Command Descripti
16. ORON t ras ras TO m UN vr m TNO N 01 SI or or TINI 0 6 3 91 6 6 S IS a S ELNO Sd SLDO L a 8I n E L 9 61 9 9 e Aad SO az B FINO E ox a v KHET TSS 1c D 10 t ino oe d NIA Vas es TINO E NIA OdS 9100 T c T T I at vc I 1 1 Todd dD MP PPA car Sr ot Tar 4ejdepy 893 rz TIG mm 1099000 AMS LSALNF ISUN Kil Od XIO AS WOW AAMS SALE l ni WIgwig 0I dda MAP n PRUnOW ION dda GdAGQdA ddA EC adg 1 soo ZHW9 1 ps9 1950 T IR T inooso T i tf NIOSO 4 Hu W WI DI daa JU t Ha at T TIMA vest ven daa 3moor EV 8t ILNO vost oin daa TINO AM07277v1 27 32 Doc ID 17768 Rev 1 Bill of materials UM0979 6 Bill of materials The bill of materials for the eMotion demonstration kit is provided in Table 11 below Table 11 Bill of materials Designator Description Comment Footprint C1 Capacitor 10 uF C1206_POL C2 Capacitor 100 nF 0805 C3 Capacitor 100 nF 0805 C4 Capacitor 100 nF 0805 C5 Capacitor 100 nF 0805 C6 Capacitor 100 nF 0805 C7 Capacitor 100 nF 0805 C8 Capacitor 100 nF 0805 C9 Capacitor 100 nF 0805 C10 Capacitor 4 7 uF C0805 POL C11 Capacitor 1 uF 0805 C12 Capacitor 1 uF C0805 POL C13 Capacitor 10 uF C0805
17. R CRAFT SPACE LIFE SAVING OR LIFE SUSTAINING APPLICATIONS NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY DEATH OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE ST PRODUCTS WHICH ARE NOT SPECIFIED AS AUTOMOTIVE GRADE MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK Resale of ST products with provisions different from the statements and or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever any liability of ST ST and the ST logo are trademarks or registered trademarks of ST in various countries Information in this document supersedes and replaces all information previously supplied The ST logo is a registered trademark of STMicroelectronics All other names are the property of their respective owners 2011 STMicroelectronics All rights reserved STMicroelectronics group of companies Australia Belgium Brazil Canada China Czech Republic Finland France Germany Hong Kong India Israel Italy Japan Malaysia Malta Morocco Philippines Singapore Spain Sweden Switzerland United Kingdom United States of America www st com 32 32 Doc ID 17768 Rev 1 1677
18. T1 JJ Porta di comunicazione Bluetooth COM16 wy Porta di comunicazione Bluetooth COMS J STM Virtual COM Port COM11 SB Processors amp Secure Digital host controllers XQ Smart card readers 2 2 DFU 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 The MEMS DFU Device Firmware Update GUI is a graphical interface that allows the user to download and replace the firmware of a MEMS product division demonstration board directly from a PC through the USB port The MEMS MKI109V1 demonstration board has the capability 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 to reprogram 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 For more details regarding DFU and the microcontroller ST GUI see the related user manual located under Start gt STMicroelectronics gt DfuSe gt Docs gt DfuSe Getting Started 4 Doc ID 17768 Rev 1 11 32 Supported MEMS adapter boards UM0979 3 12 32 Supported MEMS ada
19. Y and Z data measured by the sensor Send stop to end the continuous acquisition and visualization Doc ID 17768 Rev 1 25 32 UM0979 Schematic diagram Schematic diagram 5 The schematic diagram of the eMotion demonstration kit is shown in Figure 7 and Figure 8 Schematic diagram of the eMotion board power supply and USB Figure 7 Np PPA NP PPA osa asn osq asn JdOASN 31gasn 4 WG8Sh xaaea WG8Sh Waasn 3u00 us L s dsn MN 947901931 daasn Y On eon AS asne snq AND waasn wee Yeu g Lon on n 91 ANO PONO ocu 4uoor 99 Ka ou m woes 118908 veu ZO 4021809 pajunow yon FH LO AH Nok 8H a CLNVI sue f Ino nang 001 vio 82 4T EU SSVdAd NA pug 3INse3 y jus Ung b z mon un OEXXSB6ESPI zn ES 1p PpA ldr daa sda G Ag 8sn dL Add ng Ja mog bumaha 4 L AS 8sn er XL feu osa asn v 62H aaa a smun ane da wa A j er AM07278v1 Doc ID 17768 Rev 1 26 32 Schematic diagram UM0979 Schematic diagram of the eMotion board STM32 and connectors Figure 8
20. am mode enable The fifostr command is used to enable the gyroscope FIFO stream mode Gyroscope FIFO mode enable The gfifomde command is used to enable the gyroscope FIFO mode Gyroscope Stream to FIFO mode enable The gfifotrg command enables the gyroscope stream to FIFO mode Gyroscope FIFO reset enable The gfiforst command enables the gyroscope FIFO reset mode Gyroscope FIFO bypass to stream enable The gfifobts command enables the gyroscope bypass to 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 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 and to clear to 0 the full scale pin in analog devices Doc ID 17768 Rev 1 ky UM0979 Supported commands 4 2 2 Digital output accelerometers supported commands Table 6 below lists the commands supported by the following devices demonstration boards e STEVAL MKIOO9V1 LIS3LVO2DL e STEVAL MKIO13V1 LIS302DL e STEVAL MKIO87V1 LIS331DL e STEVAL MKIO89V1 LIS331DLH e STEVAL MKIO90V1 LIS3
21. eneral Purpose LEDs AM07756v1 As shown in the Figure 1 the eMotion demonstration kit is based on the STM32F102RB 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 release The eMotion also integrates three general purpose LEDs two LEDs connected directly to the interrupt pins of digital adapters and the power USB LED Moreover 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 silk screen view and image of the full board are shown in Figure 2 and Figure 3 respectively Doc ID 17768 Rev 1 5 32 UM0979 Demonstration kit description Top silk screen of the eMotion kit Figure 2 gt Kk LO N N o z X Doc ID 17768 Rev 1 6 32 UM0979 Demonstration kit description Figure 3 Board top view t2 y TY au a x zz a te Hox NE m z ALIO Beeeees 8 taskini wale i ae J
22. ess of the register and the data to be written To write Ox20 to the register at address 0x01 for example the user issues the command mw0120 Doc ID 17768 Rev 1 1677 UM0979 Supported commands 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 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
23. her immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing Continue Anyway STOP Installation CD Now the eMotion should be recognized by the PC as a virtual COM In order to check 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 8 LPT In the following example Figure 6 the COM11 has been assigned to the board Doc ID 17768 Rev 1 a UM0979 eMotion board installation Figure 6 Virtual COM driver port assignment Computer Management DER a File Action View Window Help e OO Computer Management Local Batteries E i System Tools Bluetooth Devices ujj Event Viewer 4 Computer Shared Folders cgp Disk drives z Local Users and Groups d Display adapters Performance Logs and Alerts 5 DVD CD ROM drives z Device Manager Qg Human Interface Devices Gg Storage Sy IDE ATA ATAPI controllers t Removable Storage 9 IEEE 1394 Bus host controllers Disk Defragmenter 5 Keyboards Disk Management Mice and other pointing devices Ta Services and Applications L Modems J Manitors Bl Network adapters E PCMCIA adapters XJ Personal Identification Devices 4 Ports COM amp LPT a Communications Port COM1 ay ECP Printer Port LP
24. n 0c eee eee 14 4 2 2 Digital output accelerometers supported commands 21 4 2 3 Analog output accelerometers supported commands 22 4 2 4 Digital output gyroscopes supported commands 23 4 2 5 Analog output gyroscopes supported commands 24 4 2 6 Digital output pressure sensor supported commands 25 AS QUICKCAM PR 25 5 Schematic diagram xus certs ARKA WG sone nbs IRR RA a RE as 26 6 Bill of materials ad s nO I6 RR DR CC n ON DNI D n Dn n 28 7 REVISION history cc acce aii o ORC C SICCO e e 31 2 32 Doc ID 17768 Rev 1 ky 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 Jumper configuration for power down PD self test ST and high pass filter reset HP 8 List of supported MEMS adapter boards 22 000 cee eee 12 Supported commands list 0 0 000 c ee 14 Returned values for start command 0 0 0 c eee tenes 16 Returned values for debug command 0 00 eee eee 17 Digital output accelerometers supported commands list llle 21 Analog Output Accelerometers supported commands list a 22 Digital output gyroscopes supported commands list llle 23 Analog output gyroscopes supported commands list ee eee eee 24 Digital output pressure senso
25. n SW1 and SW2 Figure 3 ref 2 and ref 5 are connected to STM32 GPIOs and are available to the user Doc ID 17768 Rev 1 ky UM0979 eMotion board installation 2 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 e DFU it contains the installation package for the software needed to upgrade the firmware of the eMotion board DFU e FIRMWARE it contains the source 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 sections below describe the procedure to install the driver for the eMotion board and the DFU software 2 1 Hardware installation To install the STM32 virtual COM port driver launch the VCPDriver V1 1 Setup exe included in the 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 The Notify icon should appear as in Figure 4 Figure 4 Notify icon J Found New Hardware STM32 Virtual COM Port Bi KA 10 46 AM AM07759v1 The Hardware Update Wizard window then appears Figure 5 follow the instructions on the screen to complete the procedure When driver installations starts the user is
26. on Returned value setdbXXXVY Selects firmware according to the adapter connected start Starts continuous data acquisition see Table 4 debug Returns the ant ae in readable text see Table 5 stop Stops data acquisition Zon Forces 3 state Zoff Exits from 3 state dev Device name e g LISIDH ver Firmware version e g V1 0 prAA Pressure sensor register read e g PRAAhDDh pwAADD Pressure sensor register write 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 LISIDH echoon Activates the write verbose mode e g RAAhDDh 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 retrieve the X Y and Z acceleration data from the demonstration kit 1 2 3 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 LISSDH 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 STM32F102RB microcontroller and w2047 to switch on the LISSDH and to set the data rate to 50 Hz Send the debug command to get the X
27. ording to the adapter connected start Starts continuous data acquisition see Table 4 debug Returns the ee in readable text see Table 5 stop Stops data acquisition Zon Forces 3 state Zoff Exits from 3 state dev Device name e g LISIDH ver 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 list Prints the list of MKIs supported e g MKI105V1 listdev Prints the list of devices supported e g LISIDH echoon Activates the write verbose mode e g RAAhDDh echooff Deactivates the write verbose mode gfifostr Gyroscope FIFO stream mode enable st000000IRFCFS gfifomde Gyroscope FIFO mode mode enable st000000 IR FC FS gfifotrg Gyroscope stream to FIFO mode enable st000000IRFCFS gfiforst Gyroscope reset mode enable st000000IRFCFS gfifobts Gyroscope bypass to FIFO enable st000000 IR FC FS 1 Available only for devices with embedded FIFO Note IR interrupt byte FC FIFO control register FS FIFO source register ky Doc ID 17768 Rev 1 23 32 Supported commands UM0979 4 2 5 Analog output gyroscopes supported commands Table 9 below lists the commands supported by the following devices demonstration boards STEVAL MKIO82V1 LPY4150AL STEVAL MKIO83V1 LPY450AL STEVAL MKIO85V1 LPY410AL STEVAL MKIO86V1 LPY403AL STEVAL MKIO95V1
28. ow lists the commands supported by the following devices demonstration boards e STEVAL MKIO15V1 LIS344ALH Table 7 Analog Output Accelerometers supported commands list Command Description Returned value setdbXXXVY Selects firmware according to the adapter connected start Starts continuous data acquisition see Table 4 debug Returns the ee in readable text see Table 5 stop Stops data acquisition Zon Forces 3 state Zoff Exits from 3 state dev Device name e g LISIDH ver 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 LISIDH 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 22 32 Doc ID 17768 Rev 1 ky UM0979 Supported commands 4 2 4 Digital output gyroscopes supported commands Table 8 below lists the commands supported by following devices demonstration boards e STEVAL MKI107V1 L3G4200D Table 8 Digital output gyroscopes supported commands list Command Description Returned value setdbXXXVY Selects firmware acc
29. ower down PD self test ST and high pass filter reset HP Jumper an Te Jumper y 23 Jumper unfitted position position JP4 logic level 1 self test Self testis handled by logic level 0 self test ST ON the firmware OFF default JP5 logic level 1 power Power down is handled logic level 0 normal PD down mode by the firmware mode default JP6 logic level 1 external high pass MIS reset is logic level 0 normal h handled by the HP high pass filter reset firmware mode default 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 Jumper JP7 Figure 3 ref 4 is used to select either JTAG JP7 unfitted or SWD JP7 fitted mode 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 D4 D5 and D6 Figure 3 ref 12 are general purpose LEDs and are used to indicate some firmware state 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 Butto
30. prompted with the Hardware Installation dialog window click the Continue Anyway button Doc ID 17768 Rev 1 9 32 eMotion board installation UM0979 10 32 Figure 5 Hardware update Wizard Found New Hardware Wizard Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking on your computer on the hardware installation CD or on the Windows Update Web site with your permission Read our privacy policy Can Windows connect to Windows Update to search for software O Yes this time only O Yes now and every time connect a device Click Next to continue Please wait while the wizard installs the software Found New Hardware Wizard This wizard helps you install software for STM32 Virtual COM Port A If your hardware came with an installation E or floppy disk insert it now What do you want the wizard to do Install the software automatically Recommended O Install from a list or specific location Advanced Click Next to continue Hardware Installation 3 STM Virtual COM Port e e The software you are installing for this hardware STM Virtual COM Port has not passed Windows Logo testing to verify its compatibility with Windows XP Tell me why this testing is important Continuing your installation of this software may impair or destabilize the correct operation of your system eit
31. pter boards Table 2 below provides the complete list of supported adapter boards Doc ID 17768 Rev 1 Table 2 List of supported MEMS adapter boards Adapter board Device STEVAL MKI009V 1 LISSLVO2DL STEVAL MKIO13V 1 LIS302DL STEVAL MKIO15V 1 LIS344ALH STEVAL MKIOS82V 1 LPY4150AL STEVAL MKIO83V 1 LPY450AL STEVAL MKIO85V 1 LPY410AL STEVAL MKIO86V 1 LPY403AL STEVAL MKIO87V 1 LIS331DL STEVAL MK1089V 1 LIS331DLH STEVAL MKI090V 1 LIS331DLF STEVAL MKI091V1 LIS331DLM STEVAL MKIO92V 1 LIS331HH STEVAL MKIO95V 1 LPR4150AL STEVAL MKIO96V 1 LPR450AL STEVAL MKIO97V 1 LPR430AL STEVAL MKIO98V 1 LPR410AL STEVAL MKIO99V 1 LPR403AL STEVAL MKI105V1 LIS3DH STEVAL MKI107V1 L3G4200D STEVAL MK1110V1 AIS328DQ STEVAL MK1112V1 LPS001WP a UM0979 Supported commands 4 4 1 4 2 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 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 Ge
32. r supported commands list 0000 ee ee 25 Bill of materials secc eee ee nee ret E qe oe Pla eae NG ee a 28 Document revision history 0 0 0 rn 31 Doc ID 17768 Rev 1 3 32 List of figures UM0979 List of figures Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 4 32 Demonstration board block diagram liiis nee 5 Top silk screen of the eMotion kit anaa 6 Board Op VOW aasa nn Na NG uski GA NAAN ENEE GANG ree ce ea d 7 NOUV ICOM is maa eee ee E fee BRE a GN PAN E a NG a aa EORR DR 9 Hardware update Wizard 0 rr 10 Virtual COM driver port assignment eee 11 Schematic diagram of the eMotion board power supply and USB 26 Schematic diagram of the eMotion board STM32 and connectors 27 Doc ID 17768 Rev 1 ky UM0979 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 S P1 I2C Analog MEMS S B USB devica ADC STM32F102RB Connector DIL 24 uC With DFU Connector Feature Analog Power On LED Controls Interrupt LEDs ST PD FS G
33. tor 0805 R16 Resistor 0805 R17 Resistor 10 KQ 0805 R18 Resistor 10 ko 0805 R19 Resistor 10 KQ 0805 R20 Resistor 0 0805 R21 Resistor 0 0805 R22 Resistor 100 0 0805 R23 Resistor 100 Q 0805 R24 Resistor 100 Q 0805 R25 Resistor 100 0 0805 R26 Resistor 4 7 kQ 0805 R27 Resistor 4 7 KQ 0805 R28 Resistor 0 0805 R29 Resistor 0 0805 R30 Resistor 100 Q 0805 R31 Resistor 1 kQ 0805 R32 Resistor 0 0805 R33 Resistor 0 0805 R34 Resistor 36 KQ 0805 29 32 Bill of materials UM0979 Table 11 Bill of materials continued Designator Description Comment Footprint R35 Resistor 180 Q 0805 R36 Resistor 1 5 KQ 0805 R37 Resistor 220 0805 R38 Resistor 22Q 0805 R39 Resistor 47 kQ 0805 SW1 SMT SWITCH Sw2 SMT SWITCH SW3 SMT SWITCH U1 TS924 TS924 TS924 U2 Component_1 Ids3985xx30 SOT23 5 U3 TS924 TS924 TS924 U4 TS922 TS922 SO8_2 U5 USBLC6 2P6 USBLC6 2P6 SOT 666 U6 STM32F103RB STM32F102R8 LQFP64 30 32 Doc ID 17768 Rev 1 kr UM0979 Revision history 7 Revision history Table 12 Document revision history Date 02 Mar 201 1 Revision 1 Initial release Changes Doc ID 17768 Rev 1 31 32 UM0979 Please Read Carefully Information in this document is provided solely in connection with ST products STMicroelectronics NV and its subsidiaries ST reserve the right to make changes corrections modifications or improvements
34. tting 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 MKI0109V1 and click OK 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 On the 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 completed 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 reports the complete list of supported commands see Table 3 and their description Then split into sections the list of commands

Download Pdf Manuals

image

Related Search

Related Contents

Dell PP22L Laptop User Manual    le stationnement à gentilly 2eme_phase oct 2014  Sony VAIO VPCZ137GX/S notebook  G9 Quick Guide125x125mm-low.p65  RAEP : REPÈRES METHODOLOGIQUES POUR LA REDACTION  Philips Auto Cradle for iPod    JLG-600S-600SJ-660SJ-UM-2009  External PIR - AntiPet - AntiMask - SH146AX  

Copyright © All rights reserved.
Failed to retrieve file