Home

SPMB250-A1EVAL demonstration kit user manual and installation

image

Contents

1. 0c eee eens 6 3 Installation procedures 000 eee 8 3 1 Installing the FTDI driver 0 8 3 2 Installing the Plane demo cc eee 9 4 Firmware description 0 00 c cee es 10 4 1 Dongle firmware a 10 4 2 MotionBee firmware 0 0 0 cee eee eens 11 4 3 Forming a network 0 000 ee eee ee eee 11 5 101 AA 12 6 Revision history 0 0 cc AA AA AA 14 2 15 Doc ID 14826 Rev 2 ky UM0562 1 1 1 SPMB250 A1EVAL description SPMB250 A1EVAL description The SPMB250 A1EVAL demonstration kit in the rest of the document is a ready to use kit designed as a platform for evaluating the capabilities of the SPMB250 A1 wireless sensor in motion monitoring applications where two sensor modules communicate with a remote device over an 802 15 4 channel The kit includes two SPMB250 A1 modules and one ZigBee based dongle module This document describes the modules contained in the demonstration kit the features of the software loaded in the demonstration kit modules the format of the packets at the serial output of the dongle when the software is used The three different classes of demonstration kit users are Demo users The kit runs the demo using a simple tilt monitoring application In this case the document provides guidelines on how to network the modules together install the FTDI driver Install and run the demo Developers of new PC
2. ky UM0562 YZ User manual SPMB250 A1EVAL demonstration kit user manual and installation guide Introduction The SPMB250 A1 is a ready to use wireless acceleration sensor based on a 802 15 4 compliant radio transceiver The integration of two SPMB250 A1 modules together with an 802 15 4 ZigBee based dongle make the SPMB250 A1EVAL demonstration kit a complete tool for demonstrating the features and functions of the SPMB250 A1 in remote motion monitoring applications The modules in the kit are pre programmed with an application based on the EmberZNet 3 0 0 ZigBee protocol stack that allows the sending of data captured by the accelerometer to the dongle when plugged into a PC USB slot The kit also includes a graphical application which provides an example of one of the possible uses of the acceleration data Figure 1 SPMB250 A1EVAL demonstration kit Remote motion monitoring tracking recognition November 2009 Doc ID 14826 Rev 2 1 15 www st com Contents UM0562 Contents 1 SPMB250 A1EVAL description an 3 1 1 Demonstration kit contents eee 3 1 2 CD contents sucanetees suavdda AY 4 1 3 Related documents 0 cece ee eee ete 4 1 4 PC system requirements 0 00 cece eee ee eens 4 1 5 Target applications 0 0 cc eens 4 2 SPMB250 A1EVAL kit hardware 02 0 c ee eee ee eee 5 2 1 SPMB250 A jcac e6n04cdaeean Genta dbigivesetsdagadatecead 5 22 ZigBee dongle
3. applications The software loaded in the sensors and dongle is meant to be used without modifications and allows the development of PC applications that can use up to 4 SPMB250 A1 modules together In this case the document provides guidelines on how to network the modules together install the FTDI driver Developers of new application firmware The new firmware must be loaded on the modules by means of integrated SIF connectors Instructions on application development with the EmberZNet protocol stack and the use of Ember development tools for the SN250 is beyond the scope of this document The reader should refer to the Ember documentation for details Demonstration kit contents 2 SPMB250 A1 acceleration sensor modules 1 ZigBee based dongle 2 battery holders 8 AA batteries 1 CD Doc ID 14826 Rev 2 3 15 SPMB250 A1EVAL description UM0562 1 2 1 3 1 4 1 5 4 15 CD contents SPMB250 A1 datasheet SPMB250 A1EVAL demonstration kit user manual and installation guide this document Plane demo software files javacomm20 win32 java3d 1_4 O windows i586 1 Related documents SPMB250 A1 datasheet SPZB250 datasheet Ember documentation library LIS3LV02DL datasheet and application note AN2381 PC system requirements Microsoft Windows XP Intel Pentium III or higher 512 MB of RAM 50 MB of available hard disk space An Internet connection to download the Java environment and F
4. 01FF fixed values 1 Connect the dongle to one of the USB slots on the PC The dongle is powered through the USB port Both green and red LEDS turn on After creating the network the dongle starts sending advertisement packets 2 To connect a MotionBee within the network a Turn on the power switch b Push the commissioning button The green LED turns on c The MotionBee initiates the joining procedure and when the association step is completed the red LED turns on d The MotionBee starts sending packets every 33 ms and the green LED blinks at each transmission e The dongle collects packets sent by the MotionBee making them available through the COM port with the format described above The red LED blinks each time it receives a packet Up to 4 MotionBee modules can be connected to the same dongle without significant loss of performance Doc ID 14826 Rev 2 11 15 Plane demo 5 12 15 UM0562 Plane demo The demonstration kit includes a demonstration program which provides an example of a possible use of the data on the PC to which the dongle is connected The program demonstrates the tilt measurement capabilities of accelerometers using a simulated aircraft referred to as Plane throughout this document By creating a connection with the COM port several kinds of applications running on the host computer can be used or developed to store visualize or elaborate sensor data that are available
5. EM use It integrates the SN250 ZigBee system on chip SoC with an external oscillator a balun filter and an antenna The SN250 SoC design integrates a full featured 802 15 4 radio with a 16 bit processor It is designed to run the EmberZNet ZigBee protocol stack from Ember Corp and can be fully reprogrammed to run custom applications The MotionBee modules also integrate a SIF connector allowing interfacing with the Ember development kit for firmware loading and debugging Finally the module integrates two LEDs 1 power connector 1 power switch a reset button and a commissioning button ZigBee dongle Based on the SPZB250 the ZigBee dongle dongle in the rest of the document is a module with a USB stick form factor It provides a cost effective method of adding ZigBee wireless connectivity to any device which employs USB The dongle can be programmed using the SIF connector integrated in the board When connected the dongle is powered through the USB and it can be used to transfer data to the connected operator for data analysis storage and computation The dongle uses a USB controller from FTDI Ltd to communicate with the host computer The main components of the dongle are represented in Figure 4 Doc ID 14826 Rev 2 ky UM0562 Figure 4 SPMB250 A1EVAL kit hardware ZigBee based dongle module IF t USB connector ONDERO SPZB250 AM00535v1 Doc ID 14826 Rev 2 7 15 Installation procedur
6. TDI driver download files and follow installation instructions on the relevant web sites To run the demonstration the PC requires the installation of the Java SE Runtime Environment JRE The demo successfully runs with JRE 6 5 which is available from the Sun Microsystems web site Target applications Accelerometer sensors can be generally used to measure both dynamic and static acceleration data The SPMB250 A1 provides a small portable solution with the capability to accommodate various accelerometer applications requiring data transmission over a wireless channel The radio is 802 15 4 compliant and is integrated with a processor in a single chip solution for use with the EmberZNet ZigBee protocol stacks The accelerometer is a three axis digital output linear MEMS sensor Possible target application are Medical devices Sport equipment Games Environmental monitoring Industrial control Security Doc ID 14826 Rev 2 ky UM0562 2 2 1 SPMB250 A1EVAL kit hardware SPMB250 A1EVAL kit hardware The demonstration kit is ready to use and is designed as a platform to evaluate the capabilities of SPMB250 A1 wireless sensor in remote motion monitoring applications The kit is securely packaged in a padded box as shown in Figure 2 Figure 2 Demonstration kit box SPMB250 A1 Batteries and holders AM00533v1 SPMB250 A1 The SPMB250 A1 referred to as MotionBee in the remainder of the document belongs to t
7. ere gravity is the acceleration being measured The force of gravity is used as an input to determine the orientation of an object calculating its degree of tilt The x y z acceleration values are elaborated on the PC application to evaluate the rotation angles of a graphical object Plane The behavior of the demo is intuitive as the graphical object on the PC monitor moves according to the movements impressed on the MotionBee module Figure 9 Plane demo while running c C WINDOWS system32 cmd exe 16 gt 82 3 43 2 164 2 52 6 102 69 Y 679 Z 616 ac 5 105 95 3 46 2 108 2 53 6 102 4 AM00540v1 sj Doc ID 14826 Rev 2 13 15 Revision history UM0562 6 14 15 Revision history Table 1 Document revision history owe Bawa One 10 Feb 2009 Initial release 24 Nov 2009 Updated Chapter 3 2 on page 9 a Doc ID 14826 Rev 2 UM0562 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 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
8. es UM0562 3 Installation procedures 3 1 Installing the FTDI driver The dongle integrates a USB controller from FTDI to communicate with the host computer To communicate with the dongle the FTDI drivers must be installed on the host FTDI provides drivers for Windows Linux BSD Macintosh and Windows CE Windows users require the virtual COM port VCP drivers If the necessary drivers are not already installed on the PC they can be downloaded from the driver section of the FTDI Chip web site After the file has completed downloading to a folder on the PC unzip the file Plug the dongle into an available USB slot on the PC The operating system detects the new hardware and prompts for the location where the driver files can be found With the browser select the root of the driver directory that was unzipped previously and follow the on screen instructions After installing the driver the dongle appears as a COM port in the Windows device manager Multiple dongles may be connected to the USB ports of the same computer simultaneously In this case each dongle will be assigned a different COM port identifier The example in Figure 5 shows one dongle connected to the PC and assigned COM27 as its USB Serial Port Figure 5 Virtual COM port number Device Manager Window o Computer Management m Fie Action View Window Help e omaga Computer Management Local Fb Disk drives Gi System Tools E Display adapters Pal Event V
9. he COM AM00538v1 Doc ID 14826 Rev 2 ky UM0562 4 2 4 3 Firmware description Figure 7 shows the format of the packet as available at the COM port The i and e bytes are fixed at 105d and 102d respectively and function as a packet delimiter NodelD corresponds to the network address of the MotionBee modules assigned during the network joining procedure In an application running on the PC this field makes it possible to distinguish the sender of each packet xX Y Zare the acceleration values as detected by the sensors in each MotionBee MotionBee firmware The firmware loaded on the MotionBee modules includes the EmberZNet 3 0 0 protocol stack together with a simple application that samples the accelerometer with a fixed frequency of 33 Hz The accelerometer data are composed within the packet payload and then sent to the radio for transmission On each axis the scale of measured values is set to 2 J This application has been written only for demonstration purposes and it uses the accelerometer sensor in a specific configuration Custom firmware can be developed and loaded on the modules through the SIF connector in order to fully exploit all of the sensor configuration capabilities please refer to the LISILV02DL datasheet and application note AN2381 Forming a network The procedure to network the dongle and the MotionBee is described below The network uses channel 26 and PANID Ox
10. he STMicroelectronics MotionBee sensor family and is designed to enable the development of applications for remote motion monitoring This version of the MotionBee sensor integrates an SPZB250 ZigBee wireless module together with an LISSLVO2DL 3 axis MEMS accelerometer and represents a ready to use battery powered wireless sensor The compact size of the MotionBee makes it ideal for use in many different remote motion monitoring applications When the EmberZNet protocol stack is loaded MotionBee can play the role of end device or router ina ZigBee network The main components integrated in the MotionBee modules are represented in Figure 3 Doc ID 14826 Rev 2 5 15 SPMB250 A1EVAL kit hardware UM0562 2 2 6 15 Figure 3 SPMB250 A1 MotionBee module Accelerometer sensor Red Led SPZB250 Commissioning Button Green Led Reset Button SIF Connector AM00534v1 The accelerometer is a 3 axis digital output linear MEMS sensor that includes a sensing element and an IC interface capable of taking information from the sensing element and providing the measured acceleration signals to external applications through an I C SPI serial interface The LISSLVO2DL has a user selectable full scale of 2 g 6 g and is capable of measuring acceleration data over a bandwidth of 640 Hz for all axes The device bandwidth may be selected according to application requirements The SPZB250 is a ready to use ZigBee module for O
11. iewer Hush DYDCD ROM drives g Shared Folders Floppy disk controllers a Performance Logs and Alerts Ba Human InterFace Devices SA Device Manager lax IDE ATAJATAPI controllers Storage al Infrared devices Removable Storage tg Keyboards Disk Defragmenter Mice and other pointing devices Disk Management he Modems Ha Services and Applications a Monitors E8 Network adapters E PEMCIA adapters Ports COM amp LPT F Communications Pork COM1 Vi rtu al COM Gat Css sera pot cone associated MR Processors to the Dongle Sound video and game controllers System devices Universal Serial Bus controllers ag AM00536v1 a 8 15 Doc ID 14826 Rev 2 UM0562 Installation procedures 3 2 Installing the Plane demo In order to properly run the Plane demo the following steps must be carefully followed 1 Install the Java Runtime Environment JRE the Plane demo has been developed in Java and requires the JRE installation on the PC The demo has been successfully tested with JRE 6 5 2 Install the Java3D package Java 3D is an additional Java package that enables the creation of three dimensional graphics applications and Internet based applets The Java3D install file is included in the demonstration kit CD To install the package double click on the file java3d 1 4 O windows i586 1 and follow the installation wizard 3 Install the Javacomm package Javacomm is an additio
12. in the format described in Section 4 1 Dongle firmware The sender of each packet can be recognized thanks to the NodelD field that is assigned to each MotionBee during the process of joining the network The demonstration kit is equipped with a simple graphical application Plane that uses acceleration data to measure the tilt of an object In order to properly run the demo the installation procedures described in the Section 3 must be complete To run the demo 1 Plug the dongle into an empty USB slot on your PC 2 Double click on the Run Plane batch file in lt your_folder gt Plane The windows shown in Figure 8 appear on the screen 3 Switch on a MotionBee module and then press the commissioning button After a few seconds the MotionBee starts to send packets to the dongle The aircraft object on the screen starts to move by continuously tracking the tilt impressed on the MotionBee The packets read by the application through the COM port are visualized in the terminal window See Figure 9 Figure 8 Plane graphic and terminal windows cs C WINDOWS system3 cmd exe C Documents and Settings My Documents StopPlane gt java MainClass Initing JAVA port Com 27 baud 115208 Plane DER AM00539v1 a Doc ID 14826 Rev 2 UM0562 Plane demo The goal of the application is to show how accelerometers can be used to measure the tilt of an object where the tilt is a static measurement and wh
13. nal Java package that provides access to a serial port It has been developed by Sun Microsystems and can be downloaded from the Sun web site Javacomm is also included in the demonstration kit CD To install the package a unzip javacomm20 win32 zip b copy the file commapi win32com dll to lt your_jdkroot_folder gt lt your_jre_folder gt bin c copy the file commapi comm jar to lt your_jdkroot_folder gt lt your_jre_folder gt lib ext d copy the file commapi javax comm properties to lt your_jdkroot_folder gt lt your_jre_folder gt lib 4 Install the Java binary files Copy Plane zip from the demonstration kit CD into one of your personal folders xyour folders in the rest of the document and unzip it The folder Plane will be created that contains the Java binary files needed to run the demo 5 Set the virtual COM port The virtual COM port associated with the dongle see the previous paragraph to detect this number must be edited in the following file lt your_folder gt Plane configfiles configuration xml For example if the virtual COM port is COM27 the content of configuration file must become lt xml version 1 0 gt lt config gt lt port gt 27 lt port gt lt start gt i lt start gt lt stop gt f lt stop gt lt length gt 10 lt length gt lt config gt where the number of the port is specified in line 3 Note The names of folders contained in the folder path MUST NOT contain blank s
14. paces Doc ID 14826 Rev 2 9 15 Firmware description UM0562 4 4 1 10 15 Firmware description The demonstration kit is released with a simple application already loaded in the MotionBee and dongle modules This application integrates the functionalities of a ZigBee based protocol EmberZNet 3 0 0 which allows the networking of the modules in a star configuration as represented in Figure 6 Specifically When acting as end device router each MotionBee collects data from the integrated accelerometer encapsulates this data within the payload and transmits the packet over the wireless channel When acting as network coordinator and sink device the dongle receives the packets from the MotionBee and transfers their payload to the serial port to make them available on the PC through the COM port Figure 6 Demonstration kit network configuration AM00537v1 Dongle firmware The dongle firmware integrates the EmberZNet 3 0 0 protocol stack with a simple application that allows the transfer of the data payload to the UART port of the SN250 SoC together with the NodelD of the sender The main purpose of this is to allow PC access to the accelerometer data through the COM port The firmware is not compliant with application profiles defined within the ZigBee Alliance and has been written only for demonstration purposes Figure 7 Packet format at the COM port 102d 105d Vector available through t
15. 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 2009 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 Singapore Spain Sweden Switzerland United Kingdom United States of America www st com Doc ID 14826 Rev 2 15 15 sj
16. 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 AIR 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

Download Pdf Manuals

image

Related Search

Related Contents

Nilfisk-ALTO 3.4 User's Manual  MSL 05_04_11 - Advance Lifts, Inc.    7318 LB USER`S MANUAL    DISPLAY UNIT DP860 SERIES USER'S GUIDE  Downloads - Eszett Solutions  

Copyright © All rights reserved.
Failed to retrieve file