ZStar3 Multiple Wireless Sensing Triple Axis Reference Design ZSTAR3RM Rev. 0 01/2008 freescale.
Safety of Radio Frequency Energy The manufacturer has evaluated the transmitter for safe operation for uncontrolled use in the general population. The measured power density at 1 cm is under the threshold established by the FCC and is not required to be tested for specific absorption rate. The manufacturer instructs the user that the transmitter should not be handled or placed near the body continuously for more than 30 minutes while operating.
Contents Introduction 7 Introduction 7 ZSTAR3 Wireless Sensing Triple Axis Reference design Introduction 9 Introduction 9 Features of ZSTAR3 10 Featured Products 11 Triple Axis Analogue Accelerometer MMA7360L 11 Triple Axis Digital Accelerometer MMA7450L 11 The SiP(System in Package) MC13213 12 ZSTAR3 Sensor Board Description 15 Board Overview 15 Accelerometric sensor sw controller 17 Double sensor support software model 17 Autocalibration process 17 Analogue sensor software support 18 Digital sensor softwa
Modifications of SMAC for ZSTAR3 RF protocol 31 New targets add to SMAC 32 New functions add to SMAC 32 ZSTAR3 RF Protocol 32 ZSTAR3 RF protocol features 32 Zpacket Format 33 Network Number(NetNum) 34 RX Strength 34 Zcommand 34 Zdata 35 Original ZSTAR Zcommand Description 35 ZSTAR3 Protocol Zcommand Description 35 ZSTAR3_PYLON 36 ZSTAR3_DATA 36 ZSTAR3_ACK 36 ZSTAR3_CONNECT 36 ZSTAR3_ION 36 ZSTAR3 Protocol SubCommands Description 36 ZSTAR3_GUI 36 ZSTAR3_MODE 37 ZSTAR3_OFF 37 ZSTAR3_GSEL 37 ZSTAR3_DATARATE 37
USB stick Installation 51 AN2295 Bootloader Drivers installation 55 ZSTAR3 GUI 59 Installation 59 ZSTAR3 GUI 62 Features of ZSTAR GUI 62 The ZStar3 GUI main controls 63 USB Data Flow monitor 63 Sensor Board overview screen 64 RF overview screen 65 General sensor tasks 66 Scope demo application 67 Acquire data demo application 68 Tilt tasks 69 Filtered tilt demo application 70 Motion tasks 71 Position tasks 72 Shock tasks 73 Digital tasks 74 Sensor registers demo application 75 Freescale Web Links.
<
> -6 Freescale Internal Use Only <> Freescale SemiconductorIntroduction Chapter 1 Introduction 1.1 Introduction This paper describes the next generation of design of a Wireless Sensing Triple Axis Reference design (ZSTAR3), a demo for wireless demonstration of the 3-axes accelerometers MMA7450L (RD3172MMA7450L) and MMA7360L (RD3172MMA7360L) sensors from Freescale. This demo is succesor of previous Freescale demo ZSTAR and its fully compatible with it.Demois build on new generation of Freescale parts and brings some extended functionalities.
Pr e li mi na ry Introduction Figure 1-2. ZSTAR3 demo suitcase ZSTAR3 Reference Design Manual, Rev. 0.
ZSTAR3 Wireless Sensing Triple Axis Reference design Introduction Chapter 2 ZSTAR3 Wireless Sensing Triple Axis Reference design Introduction 2.1 Introduction Pr e li mi na ry The Wireless Sensing Triple Axis Reference design (ZSTAR3) has been designed as a new generation of the previous ZSTAR (RD3152MMA7260Q) demo. A 2.4GHz radio-frequency (RF) link is also used in this new demo and its based on new solution modem and microcontroler in one package MC13213 family.
ZSTAR3 Wireless Sensing Triple Axis Reference design Introduction MC13213 HC908JW32 ry MMA7360L / MMA7450L • • • • • • • • • • • • • • • Features of ZSTAR3 Sensing of acceleration in 3 axes Handles digital and analogue sensors Wireless communication with sensors through the 2.
ZSTAR3 Wireless Sensing Triple Axis Reference design Introduction 2.3 Featured Products This demo consists of several Freescale products whose main features are listed below. There are come up two accelerometers, because the Sensor board can be assembled with digital or analogue Freescale accelerometer. 2.3.1 Triple Axis Analogue Accelerometer MMA7360L 2.3.2 Pr e li mi na Features: • 3mm x 5mm x 1.
ZSTAR3 Wireless Sensing Triple Axis Reference design Introduction Pr e li mi na ry Features: • Digital output (I2C/SPI) for processor system performance • Low-profile 14-pin 3mm x 5mm x 0.8mm LGA package • LGA volume is 77 percent smaller than Quad Flat No-Lead (QFN) package • XYZ: three axes of sensitivity in one device (2g, 4g, 8g) • Low current consumption: 400 µA • Standby mode: 5 µA • Low-voltage operation: 2.4 V - 3.
ZSTAR3 Wireless Sensing Triple Axis Reference design Introduction The MC13213 System in Package (SiP) integrates the MC9S08GT MCU with the MC1320x transceiver into a single 9x9mm LGA package. The MC13213 provides 60 K Flash memory and 4 K of RAM. By using the IEEE 802.15.4 Compliant MAC, or BeeStack ZigBee Protocol Stack, the MC13213 is an ideal solution for sensing and control applications that require mesh networking.
ZSTAR3 Wireless Sensing Triple Axis Reference design Introduction • • • • Supports single-ended or full differential operation Supports external low-noise amplifier (LNA) and/or Power Amplifer (PA) Three lower power modes for increased power life Supports streaming and data processing modes Software features: • Pr e li • mi na ry • Simple MAC — Small memory footprint (< 4 KB) — Supports point-to-point and star network configurations — ANSI C source code IEEE 802.15.
Chapter 3 ZSTAR3 Sensor Board Description 3.1 Board Overview ry The Sensor Board utilizes a small footprint size dual-layer printed circuit board (PCB) containing all the necessary circuitry for both accelerometer sensors and transferring data over a radio frequency (RF). mi na Buttons Crystal MMA7450L / MMA7360L PCB antennas Pr e li LED indicator MC13213 Lithium battery on the opposite side Figure 3-1. ZSTAR3 Sensor Board Overview The board is powered by a Lithium coin-sized CR2032 battery.
ZSTAR3 Sensor Board Description Power MC13213 SIP - System in package MCU + RF MMA7450L MMA7360LT accelerometer Antenna ry CR2032 Lithium battery mi na Figure 3-2. Sensor Board Block Diagram Figure 3-3. - ZSTAR3 Sensor Board Software Overview shows in more detail, how different software and hardware modules co-operate with each other.
ZSTAR3 Sensor Board Description GPIO Buttons KBI GPIO Sensor RF Protocol Handler Sensor data collector and driver S M A C RF modem 2.4GHz mi na ADC Data buffer ry LED Figure 3-3. ZSTAR3 Sensor Board Software Overview For the Sensor Board operation, several of the MC13213’s hardware modules are used: Analog to Digital Converter (ADC), Synchronous Peripheral Interface (SPI), External Interrupt Request (IRQ), Keyboard Interrupts and General Purpose Input/Output (GPIO). 3.
ZSTAR3 Sensor Board Description application note AN3447 - Implementing Auto-Zero Calibration Techniquefor accelerometers on www.freescale.com. 3.2.3 Analogue sensor software support The 3-axis accelerometer Sensor MMA7360L provides three separate analog levels for the X, Y and Z axis. These outputs are ratiometric which means that the output offset voltage and sensitivity will scale linearly with applied supply voltage.
ZSTAR3 Sensor Board Description • – in Stop3 mode, 700nA – in Wait mode, 560µA – in Run mode, 6.
ZSTAR3 Sensor Board Description The current consumption of the transmitter is ~30mA at that time, but only for a short period of time (typically ~600µs by 30Hz). In order to keep the Sensor Board informed on the status of connection (for example, if the data-receiving side - USB stick - is out of range, disconnected, etc.) and still synchronize with master, the reception has to be turned on after the data has been transmitted.
ZSTAR3 Sensor Board Description 3.3.1 Sensors power supply Sensor are powered by IO pins of microcontroler. This can be done, because sensors consumed less than 0.5mA Three output pins together are used for analog VDD supply pin of sensor. This option hold down dynamically changes of voltage with different current consumption of sensor. Main feature of this solution is unbeatable currunt when complete board is in deep sleep mode (all board concum less than 1µA).
ZSTAR3 Sensor Board Description header for regular BDM re-programming. The pin numbering is shown on Figure 3-5. - BDM Connector Layout 1 2 3 ry 4 5 mi na 6 Figure 3-5. BDM Connector Layout 3.3.5 Button Connections 3.3.6 Pr e li Three buttons (S1, S2 and S3) are connected directly to pins PTA0, PTA6 and PTA7. All have internal pull-up resistors, and are part of the Keyboard Interrupt module, therefore allow a direct microcontroller wake-up from the Stop modes.
ry ZSTAR3 Sensor Board Description mi na Figure 3-6. ZSTAR3 Antenna Layout The matching is provided by L1 coil. L2 and L3 coils bias the transmitter output transistors to the CT_Bias level. The inductors used in this design are from TDK: • L1 (3.3nH) MLG1608B3N3DT • L2, L3 (22nH) MLG1608B22NJT 3.3.7 Clocking Options of MC9S08QG8 3.3.
ZSTAR3 Sensor Board Description A large tantalum capacitor (C1, 220µF/4V) improves the response of the power supply to current peaks caused by reception or transmission. Coin-sized Lithium CR2032 batteries are targeted at a maximum continuous discharge current in the range of 3mA. Such a large capacitor helps to supply enough current to the MC13213 during a receive/transmit without significant Vdd voltage drops.
ZSTAR3 Sensor Board Description Table 3-2. Sensor Board Bill of Materials - Digital Sensor version Quantity Part Manufacturer 1 1 BATT1 battery holder CR2032 Renata SMTU 2032-1 2 1 C1 220uF/4V AVX TAJB227M004R 3 3 C2, C3, C12 6.8pF TDK C1608CH1H070D 4 8 C4, C5, C6, C7, C8, C9, C10, C17 100nF TDK C1608JB1H104K 5 2 C11, C16 1uF TDK C1608JB1A105KB 6 3 C13, C15 0R PHYCOMP 232270296001 7 1 L1 3.
5 switch3 SDO 62 63 64 1 2 3 4 5 12 13 14 15 16 17 18 19 70 47 71 48 49 50 51 U1 4 DVdd_mcu C17 100nF TXD RXD GND C16 1uF 20 21 68 67 66 65 52 53 54 55 56 57 58 59 44 43 42 41 24 25 26 46 69 39 38 37 36 35 34 40 Z-axis Y-axis X-axis DVdd_mcu SLEEP 1uF C11 VDD C10 GND 100nF 3 SENSOR 10 11 8 g-select INT1 13 12 14 7 1 SDO 1self_test 1SCL/SPC self_test SDO SCL/SPC SLEEP SCL SDA SDO GND L3 22nH C12 6.
Pr e li mi na ry ZSTAR3 Sensor Board Description ZSTAR3 Reference Design Manual, Rev. 0.
Pr e li mi na ry ZSTAR3 Sensor Board Description ZSTAR3 Reference Design Manual, Rev. 0.
Chapter 4 USB stick Board Description 4.1 Board Overview LED indicators Pr e li MCHC908JW32 mi na ry The USB Stick board is used same as in original ZSTAR demo with new software. For more hardware details please check RD3152MMA7260 Reference Design manual on www.freescale.com PCB antennas MC13191 Button USB “A” type plug Figure 4-1. USB stick Board Overview ZSTAR3 Reference Design Manual, Rev. 0.
USB stick Board Description LEDs USB driver GPIO RF modem 2.4 GHz SPI RF Protocol Handler S M A C PC Protocol Handler ry MC13191 Sensors Data USB USB port mi na Figure 4-2. USB Stick software overview Figure 4-2. USB Stick software overview shows, in more detail, how different software and hardware modules co-operate with each other.
Chapter 5 Software Design 5.1 Introduction 5.2 mi na ry This section describes the design of the ZSTAR3 software blocks. The software description comprises these topics: • 5.2, “SMAC (Simple Media Access Controller) modifications description • ‘Air’ 5.3, “ZSTAR3 RF Protocol protocol description • Serial 5.4, “ZSTAR3 USB protocol - Extended STAR protocol description • AN2295 5.
Software Design A fully detailed description of the SMAC is in the SMAC Reference Manual (SMACRM.pdf), available together with SMAC source code. 5.2.2.1 New targets add to SMAC Modification of SMAC for individual application are done by targets files that exact defines all pins and peripheries. For ZSTAR3 project purposes has been added to SMAC three new targets: • MC1319XZSTAR_USB.c/h - these files describes Original ZSTAR USB Stick board • ZSTAR_SENSOR.
Software Design • • • • • • 5.3.2 Support up to 16 sensors (slaves) Network datarate is 30Hz (33.333ms) Data capture designed network Lock Network number (NetNum) Automatic/Manual select of communication channel Collect all RSSI(Receive Signal Strength Indicator) information of communication Zpacket Format ry The ZSTAR Zpacket is contained inside the MC1319x/MC1321x standard packet structure, which is consistent with the IEEE 802.15.4 Standard.
Software Design 5.3.2.1 Network Number(NetNum) The network number is save in FLASH memory of each participant with ZSTAR3 RF protocol. The USB Stick randomly generated it at the first time of lifecycle and it can be changed by command from PC. The new Sensor board has this number erased from manufacture and it can to update it when it received first valid packet in ZSTAR3 RF protocol format.
Software Design Table 5-2. ZSTAR3 main commands Zcommand List ZCommand code Direction Zdata ZSTAR3_PYLON 0xA0 USB stick to Sensor Board Status and optional subcommand ZSTAR3_DATA 0x50 Sensor Board to USB stick Accelerometers values, status info ZSTAR3_DATA 0x60 Sensor Board to USB stick none ZSTAR3_CONNECT 0x40 Both Calibration data, board info ZSTAR3_ION 0x70 Sensor Board to USB stick Optional return read data from ION ry ZCommand Table 5-3.
Software Design 5.3.4.1 ZSTAR3_PYLON This is main and practically single command of USB Stick. Command is used as a net synchronization message and it’s one way how to get data and other sub commands to individual sensor boards. This command is replinish in protocol with mode of operation information (8/16 bits communication). Zdata bytes: 0 2 1 List of active sensors 4... 3 Selected sensor Subcommand Data depends on sub commands Figure 5-2. ZSTAR3_PYLON Zdata format 5.3.4.
Software Design 5.3.5.2 ZSTAR3_MODE This command is using only with ION device mounted on Sensor Board. Command can swtich individual digital work modes on digital sensor.Sensor board answer by ZSTAR3_DATA command. 5.3.5.3 ZSTAR3_OFF This command request switch off sensor. Is available only on Sensor Boards without power switch. 5.3.5.4 ZSTAR3_GSEL 5.3.5.5 ry This command is used as a request of change actual g select of sensor to new.Sensor board answer by ZSTAR3_DATA command.
Software Design 5.3.6.1 mi na ry — Master (USB Stick) - USB Stick of the ZSTAR3 supports original ZSTAR RF protocol and this state provide it. For ore details check Manual for original ZSTAR ZSTARRM Reference design manual - Original ZSTAR demo(RD3152MMA7260Q) RDM. — Slave (Sensor board) - Sensor board software conteins this state and it can support of original ZSTAR too, but all boards are ordered with prohibited compatibility. 4.
Software Design Tx Rx MCU Slave 1 Tx Rx MCU Slave 8 Tx Rx MCU Master Tx Rx MCU SMAC Interupts mi na Slave 0 ry for all 16 devices elapses. When the master catches any message from slaves, process it and immediatly open new receive window, if the last message wasn’t from 16th Slave device.. ZStar3 RF protocol typical period Figure 5-3. ZSTAR3 RF protocol period 5.4 ZSTAR3 USB protocol - Extended STAR protocol Pr e li The ZSTAR3 demo uses a subset of the original ZSTAR demo protocol commands.
Software Design Table 5-4. Original STAR commands Extended Asynchronous Answer Normal Command Note Detail Leng th rx (B) ‘R’ ‘N’ 1, 1 - - Reset to 8 bit mode ‘V’ ''x' value 'y' value 'z' value 1,61 - - Read acceleration data ‘G’ g-select value 1, 1 - - g-select read ‘g’ g-select value, ‘G’, result 2, 0, 2 {'g',result,index} 7 g-select write ‘K’ ''X' g(0) g(1) 'Y' g(0) g(1) 'Z' g(0) g(1) 1,.
Software Design Table 5-6.
Software Design Table 5-7. New ZSTAR3 commands (general commands) ‘h’, netnum 1,.
Software Design Table 5-9. Legend of colors Legend 5.4.4 Red Direction PC -> USB Stick Blue Direction USB Stick -> PC, regular data Burst mode ry A new mode of ZSTAR USB communication is burst mode. The Burst mode is designed to symplification reading process of new acceleration data. In burst mode USB Stick is sending all new received acceleration data from individual enabled sensor boards without any request command from PC.
Software Design A user is required to place the Sensor Board into horizontal position(for example on a desk), in which the earth’s gravity will induce a maximum acceleration in Z axis.First command ‘Q’ sent to USB Stick only prepare user to calibration by text help and second commnad ‘Q’ in line starts autocalibration process in Sensor board. 5.
Software Design 5.6.2 Bootloading Procedure mi na ry The easiest way how to Flash newest firmware into USB Stick is use The ZStar3 GUI application and by this application open Bootloader COM port1. But if you want proceed Bootloader procedure manually, yhen follow next steps. 1. Find on the installation CD the folder with binaries: Pr e li 2. Start (double-click) the CMD.EXE shortcut, a command line window should appear: 1. For more details check Chapter 7 of this Manual.
mi na ry Software Design 3. Now type: hc08sprg [bootloader com port number] [binary (S file) that you want to bootload], just like this: Pr e li hc08sprg.exe com8 accelerometer_v2_ZSTARJW32-new-DUALBOOT.S19 4. Press ENTER and initial bootloader communication will start: ZSTAR3 Reference Design Manual, Rev. 0.
mi na ry Software Design Pr e li If this screen does not appear, remove the USB stick and start from the beginning. The bootloader disappears (in Device Manager) and the newly loaded software starts to execute. Using this procedure the software in the USB stick can be changed anytime. ZSTAR3 Reference Design Manual, Rev. 0.
Software Design 5.7 Triapplication software of USB Stick USB Stick provides three different USB devices that can be changed in runtime. List of ZSTAR USB Devices: • CDC (Communication Device Class) - virtual serial port. • HID (Human interface device) - Mouse device • HID (Human interface device) - Keyboard device 5.7.1 CDC - Virtual Serial Port application 5.7.2 ry This is main application of ZSTAR3 project.
Software Design 5.7.4 Applications Switching All embedded application can be switched just by quickly pressing the button (having the USB stick inserted into the USB slot). The applications will appear and disappear accordingly. Pr e li mi na ry The ‘tilt’ mouse application in order to work must have Sensor Board calibrated correctly (e.g. using RD3152MMA7260Q_SW.exe or 5.4.6, “Semiautomatic Self-Calibration procedure). ZSTAR3 Reference Design Manual, Rev. 0.
Pr e li mi na ry Software Design ZSTAR3 Reference Design Manual, Rev. 0.
Chapter 6 Application Setup 6.1 6.1.1 ZSTAR3 Installation Procedure USB stick Installation mi na ry First of the all, we have to install the USB stick to your PC. Please follow the next steps. 1. Plug the USB stick into a USB slot.The ‘Found New Hardware’ announcement should appear: Pr e li 2. Then the installation wizard starts for new hardware. Choose “Install from a list or special location“ ZSTAR3 Reference Design Manual, Rev. 0.
Application Setup Pr e li 4. Installation should continue: mi na ry 3. Point to the Installation CD as the driver path: ZSTAR3 Reference Design Manual, Rev. 0.
mi na ry Application Setup Pr e li 5. If you are asked to stop or continue installation because the drivers are not certified by Microsoft, select the “Continue Anyway” button. 6. Installation should successfully finish. ZSTAR3 Reference Design Manual, Rev. 0.
mi na ry Application Setup Pr e li 7. Check whether a new serial port (ZSTAR Triaxial Demo) has appeared in your Device Manager (Right click My computer on the Desktop > Properties, Hardware tab, Device Manager button): ZSTAR3 Reference Design Manual, Rev. 0.
AN2295 Bootloader Drivers installation Pr e li 6.1.2 mi na ry Application Setup This procedure assumes that ZSTAR Demo drivers are already installed. The drivers are false common for the bootloader (= are already present in Windows folders). If not, the procedure will be identical to the ZSTAR drivers installation. 1. Press the Button on the USB stick and insert it into a USB connector (keeping the button pressed when inserted). The following window appears: ZSTAR3 Reference Design Manual, Rev. 0.
Application Setup mi na ry 2. The PC searches for an appropriate driver (as the ZSTAR Demo, in some instances a folder with drivers (zstar.inf and usbser-zstar.sys) needs to be selected), then the following window should appear: Pr e li 3. Just click Yes, and the bootloader port will be installed (as seen in the Device manager): 4. Right click My computer on the Desktop > Properties, Hardware tab, Device Manager button. 5. A similar setup should be observed: ZSTAR3 Reference Design Manual, Rev. 0.
Pr e li mi na ry Application Setup 6. Note down the COM port number (here, COM8); this is the port number of the Bootloader Once the software in the USB stick needs to be updated, the Bootloader can be invoked anytime, just by pressing the button while inserting the USB stick into the USB slot. ZSTAR3 Reference Design Manual, Rev. 0.
Pr e li mi na ry Application Setup ZSTAR3 Reference Design Manual, Rev. 0.
Chapter 7 ZSTAR3 GUI ZSTAR3 demo brings new GUI that supports all new features and functions. It’s distibuted as complete installation package with all neccesary files, includes Microsoft .NET Framework package. 7.1 Installation mi na ry 1. Run setup.exe file in installation directory to start installation of ZStar3 GUI to computer. Pr e li Figure 7-1. Installation files ZSTAR3 Reference Design Manual, Rev. 0.
ZSTAR3 GUI mi na ry 2. On first screen of ZStar3 installation packege only press “next“ button. Pr e li Figure 7-2. Start of installation ZSTAR3 Reference Design Manual, Rev. 0.
ZSTAR3 GUI mi na ry 3. In this step select destination directory and some others posibilities and press “next“ button. Please follow all next steps to get to end of installation process. Pr e li Figure 7-3. Second step of installation process - select destionation directory ZSTAR3 Reference Design Manual, Rev. 0.
ZSTAR3 GUI mi na ry 4. Finish step of the installation process. Figure 7-4. Last step of the installation process ZSTAR3 GUI Pr e li 7.2 The ZSTAR3 GUI is specially designed PC application for Freescale ZStar demos. It’s fully supports all new functionalitis of the ZSTAR demo and all available ZSTAR boards. 7.2.1 • • • • • • • • Features of ZSTAR GUI Support 16 sensors on one screen. Shows for each sensor basic information includes current acceleration values and freefall events.
ZSTAR3 GUI 7.2.2 The ZStar3 GUI main controls This panel is visible on all tabs of ZStar3 GUI application. It shows the most important controls and information of ZStar demo. 6 4 2 1 5 3 Figure 7-5. The ZStar3 GUI main controls 7.2.2.1 mi na ry The GUI main controls1: 1. USB Stick connection panel. 2. The ZStar resolution switch 8/16 bits. 3. Reset of the ZStar hardware. 4. USB data flow monitor. 5. Log file controls. 6.
ZSTAR3 GUI Sensor Board overview screen 1 4 7 7 7 7 5 7 7 7 7 7 6 5 7 Pr e li 7 ry 5 5 5 3 2 mi na 7.2.3 Figure 7-7. Main sensor board overview screen of the GUI The GUI main sensor board overview controls1: 1. Detail panel of Selected sensor board. 2. Current accelerometric data in graphical and text form. 3. Current tilt of selected board in graphical and text form. 4. Basic settings of selected sensor board. 5. Log file controls. 6. Currently connected sensors 7.
ZSTAR3 GUI 7.2.4 RF overview screen 3 2 1 8 ry 7 4 5 Pr e li 6 mi na 4 Figure 7-8. RF overview screen The GUI RF overview controls1: 1. Current work state of the ZStar demo. 2. Last measured information about occupations of indidual RF channels. 3. Flags of detected other ZStar communication on other channels. 4. Current used RF channel. 5. RF channel change control. 6. Netnum of RF communication change control. 7. RSSI2 informations of all connected sensors. 8. Versions of the Demo. 1.
ZSTAR3 GUI 7.2.5 General sensor tasks 1 ry 2 mi na 3 5 Pr e li 4 Figure 7-9. The General sensor tasks screen. The GUI General sensor tasks controls1: 1. Calibration screen - This screen allowed with more detail calibrate sensor on selected Sensor Board. 2. Acqire data screen - This application of the ZStar provides a acquire data of all connected sensors into Excel or text file. 3. Change g select screen - This screen allowed simply change of current g range on selected sensor board. 4.
ZSTAR3 GUI 7.2.5.1 Scope demo application This demo application shows graphical outputs of measured and computed values from selected sensor board.It can shows unchanged raw data received direct from sensors or computed values in g. This window as well provides computed absolute value from all three axes. All computed values can be displayed as filtered. 2 4 3 Pr e li mi na ry 1 Figure 7-10. Scope window application The Scope window application controls1: 1.
ZSTAR3 GUI 7.2.5.2 Acquire data demo application This application is designed to acquiring all maesured data from sensor. It allow select sensors to acquiring, select data rate of reading acceleration values, select which data will be saves and output of measured data. Thre are two choices of output: • Direct to Microsoft Excel application (tested on Excel 2003 version). • To CSV file - GUI save all measured data into text file that can be simply imported to Excel or another table application.
ZSTAR3 GUI 7.2.6 Tilt tasks 1 ry 2 mi na 3 4 5 Pr e li 6 Figure 7-12. The Tilt tasks screen. The GUI Tilt tasks controls1: 1. Tilt XYZ screen - Window shows tilt of all axes. Selectable normal / filtered values. 2. Filtered tilt - This application of the ZStar shows differencies beetwen normal measured tilt and filtered. 3. Tilt 2 Axes screen - This is special demo application that shows how can get from two axes full range of tilt 0° - 360°. 4.
ZSTAR3 GUI 7.2.6.1 Filtered tilt demo application Pr e li mi na ry This demo window shows different between measured tilt values and software filtered. This demo is using basic average filter algorithm. On screen is placed four panels: • Current measured tilt indicator. • Filtered value of current measured value indicator. • Setting box - there can be select measured axis of accelerometer and order of average filter up to 128 samples.
ZSTAR3 GUI 7.2.7 Motion tasks ry 1 mi na 2 Pr e li 3 Figure 7-14. The Motion tasks screen. The GUI Motion tasks controls1: 1. Anti-Theft screen - Window shows accelerometr posibilities in Anti - Theft applications. 2. Battery saver screen - This is demo that shows How can used accelerometers in some specific applications to save battery. 3. About box - This about box content various information about Motion accelerometers applications. 1.
ZSTAR3 GUI Position tasks ry 7.2.8 mi na 1 Pr e li 2 Figure 7-15. The Position tasks screen. The GUI Position tasks controls1: 1. FreeFall screen - Demo shows accelerometer possibilities of FreeFall detection. 2. About box - This about box content various information about Position accelerometers applications. 1. Red numbers in picture marks individual controls described in list below. ZSTAR3 Reference Design Manual, Rev. 0.
ZSTAR3 GUI 7.2.9 Shock tasks ry 1 mi na 2 3 Pr e li 4 Figure 7-16. The Shock tasks screen. The GUI Shock tasks controls1: 1. Shipping and handling screen - This demo shows how can used accelerometers in Shipping. 2. Treshold Detection screen - This window shows measuring of g treshold by accelerometers. 3. Shock Detection screen - This window shows measuring peaks of g by accelerometers. 4. About box - This about box content various information about Shock accelerometers applications. 1.
ZSTAR3 GUI 7.2.10 Digital tasks This tab contains specialy designed demos for Freescale digital accelerometer sensor(ION) MMA7450L. ry 1 mi na 2 3 Pr e li 4 Figure 7-17. The Digital tasks screen. The GUI Digital tasks controls1: 1. Sensor registers screen - This demo shows all regisers inside of digital sensor in user friendly format. 2. Level Treshold Detection screen - This window shows measuring of g treshold by digital accelerometers. 3.
ZSTAR3 GUI 7.2.10.1 Sensor registers demo application Pr e li mi na ry This is specially designed window that shows all internal registers of MMA745xL accelerometer. It is splited to two main parts: • Left part contains list of all registers in MMA745xL accelerometer and its values in hex format. At bottom of this panel are placed two check boxes.
ZSTAR3 GUI Freescale Web Links. Pr e li mi na ry 7.2.11 Figure 7-18. The Links screen. This screen contains couple of interesting links about Freescale and its accelerometric sensors. 7.3 The ZStar3 GUI Update USB Stick Software utility The ZStar3 GUI can easily upgrade firmware in USb Stick by Bootloader capatibily. There are two different ways how to start upgrade utility: • Self-acting start - GUI always check software version of USB Stick with open port action.
ZSTAR3 GUI 7.3.1 Update process (Manual start) 1. For manual start select Bootloader Com port1 from Comport list and press Open button. Select right ComPort Then Open this port Figure 7-19. Update software procedure - step1 ry 2. When the GUI show the a Information message box about Update procedure, click on OK button to continue. mi na Figure 7-20. Update software procedure - step2 Select type of the USB Stick Pr e li 3. Now the GUI shows the Update window.
ZSTAR3 GUI 4. When you select right type of USB Stick, the GUI know which files it has and offer latest version of available software. Available version mi na ry File name of available version Figure 7-22. Update software procedure - step4 Pr e li 5. Now you can press ReFlash button. The GUI starts looking for a available Bootloader port. Figure 7-23. Update software procedure - step5 ZSTAR3 Reference Design Manual, Rev. 0.
ZSTAR3 GUI mi na ry 6. When the GUI found a Bootloader port, the original bootload procedure starts. Please wait to end of bootloader process. Figure 7-24. Original bootloader application Pr e li When Update process finish success, close update window and enjoy all new features that brings new version of the ZStar firmware. ZSTAR3 Reference Design Manual, Rev. 0.
Pr e li mi na ry ZSTAR3 GUI ZSTAR3 Reference Design Manual, Rev. 0.
Appendix A References The following documents can be found on the Freescale web site: http://www.freescale.com. Pr e li mi na ry 1. AN2295 Application note - Developer’s Serial Bootloader for M68HC08 and HCS08 MCUs 2. AN3153 Application note - Using the Full-Speed USB Module on the MCHC908JW32 3. AN3447 Application note - Implementing Auto-Zero Calibration Techniquefor accelerometers 4. ZSTARRM Reference design manual - Original ZSTAR demo(RD3152MMA7260Q) RDM 5. MC9S08QG8 data sheet 6.
Pr e li mi na ry References ZSTAR3 Reference Design Manual, Rev. 0.