Freescale Semiconductor MMA865FC Series User Manual

Sensor toolbox

Advertisement

Quick Links

Freescale Semiconductor
User's Guide
MMA865xFC Sensor Toolbox
User's Guide
1

Introduction

The Freescale MMA865xFC sensor toolbox
accelerometer kit provides hardware and software for the
demonstration and evaluation of the Xtrinsic
MMA865xFC accelerometers (MMA8652FC,
MMA8653FC). This user's guide shows you how to use
this kit.
The MMA865xFC kit includes the following:
MMA865x interface board
MMA8652FC accelerometer daughter board
MMA8653FC accelerometer daughter board
The kit requires a USB-interface board to attach the kit
to a personal computer. Both items can be purchased on
the
Freescale
website.
MMA865xFC kit, part number LFSTBEB865x
MMA865x USB-interface board, part number
LFSTBUSB
Optional 9V battery board (for non-volatile
memory datalogging), part number LFSTBBAT9
© 2012 Freescale Semiconductor, Inc. All rights reserved.
Document Number: MMA865xFCSTUG
Contents
1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2
About the MMA865x Accelerometers . . . . . . . . . . . . . . . 2
3
Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3.1 Connecting the kit . . . . . . . . . . . . . . . . . . . . . . . . . . 3
4
4.2 Directional Flick application . . . . . . . . . . . . . . . . . . 10
4.3 Tilt Detection application . . . . . . . . . . . . . . . . . . . . 14
4.4 Orientation application. . . . . . . . . . . . . . . . . . . . . . 17
4.5 Graphical Datalogger application . . . . . . . . . . . . . 21
4.6 NVM Datalogger application . . . . . . . . . . . . . . . . . 26
4.7 Configuration screen . . . . . . . . . . . . . . . . . . . . . . . 29
4.10 Full-System Evaluation application . . . . . . . . . . . . 41
5
5.1 Directional Flick application . . . . . . . . . . . . . . . . . . 62
5.3 Graphical Datalogger application . . . . . . . . . . . . . 62
6
Revision History. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Rev. 0, 10/2012

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MMA865FC Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Freescale Semiconductor MMA865FC Series

  • Page 1: Table Of Contents

    Revision History....... 64 • MMA865x USB-interface board, part number LFSTBUSB • Optional 9V battery board (for non-volatile memory datalogging), part number LFSTBBAT9 © 2012 Freescale Semiconductor, Inc. All rights reserved.
  • Page 2: About The Mma865X Accelerometers

    Converter Converter Transducer Anti-Aliasing Z-axis Filter Transducer Freefall Orientation with Detection Hysteresis and Z-lockout Auto-WAKE/Auto-SLEEP Configurable with debounce counter and multiple motion interrupts for control Figure 2. MMA8653 block diagram MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 3: Getting Started

    Figure How the 3 axes are mapped to the MMA865xFC kit Power switch Figure 3. Board assemblies Figure 4 shows how the boards of the MMA865xFC kit fit together. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 4: Installing The Sensor Toolbox Software

    If you have been previously used Freescale's sensor toolbox software, these drivers already are installed on your PC. 1. To download the sensor toolbox software, click the following link: http://www.freescale.com/sensortoolbox. The webpage, shown next, appears. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 5 7. Proceed through the setup wizard’s series of dialog boxes. During the process, you will be asked if you want a Sensor Toolbox icon added to your Start menu and desktop. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 6 8. When the Ready to Install dialog box, shown below, appears, review the installation configuration and click the Install button. A progress bar displays the status of the software installation and the final dialog box, shown below, appears. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 7 — To launch the toolbox software upon completion of the setup, leave the Run Sensor Toolbox checkbox enabled. If you chose to install the FTDI driver, a command-line window briefly appears. The application is now ready for use. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 8: Understanding The Accelerometer Demonstrations

    If the LFSTBUSB USB-interface board is connected properly, then the software will detect which of the MMA865xQ daughter boards is attached to the evaluation board, and display the device-specific menus. Upon device connection, the software displays the demo launcher menu, shown in the next illustration. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 9 To navigate to a different demo, close the browser window for the current demo and click on a different demo box in the launcher menu, which remains in the background as long as the application is running. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 10: Directional Flick Application

    The flick must be done in the direction indicated by the red arrow. Note: Before changing any of the Active screen’s settings, select the Standby option button. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 11 Before changing any settings, enable Standby mode, because the settings cannot be changed in Active mode. After changing any configuration settings, enable Active mode, to register the new settings with the device. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 12 This setting should be enabled for the flick detection to work properly. If it is disabled, the events that are moving the pictures will constantly occur as you move the device and the pictures will simply flick from end to end. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 13 Saves the new configuration settings after the repositioning of the Threshold and Debounce sliders. Reset Enables the moving of the Threshold and Debounce sliders. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 14: Tilt Detection Application

    Standby option button. Note: In order for the tilt to be registered, the device must be held up so that it is facing you (or held on a desk on its edge). MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 15 Indicates the angle the device is being held at, along the X and Y axes (degrees). Tilt Angle Fine Shows the Arcminutes value of the angle (where an arcminute is equal to1/60 of a Degree degree). MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 16 Sets the device to Active mode. Standby Active • Standby Mode Indicates the device’s status (Read only). • Wake Mode Note: The device will never enter Sleep mode during this demo. • Sleep Mode MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 17: Orientation Application

    The image below the gauge is a simulated mobile phone that displays the same orientation indicated by the gauges. The information is provided by the device's accelerometer data. Note: Before changing any of the Active screen’s settings, select the Standby option button. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 18 Active mode. After changing any configuration settings, enable Active mode, to register the new settings with the device. Each menu frame’s fields and options are described in Table MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 19 Sets the device to Active mode. Standby • Standby Mode Indicates the device’s status. Active • Wake Mode Note: The device will never enter Sleep mode during this demo. • Sleep Mode MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 20 Causes the timer set by the Debounce slider to reset each time that an event fails to reach the debounce time. Saves the new configuration settings after the repositioning of the Threshold and Debounce sliders. Reset Enables you to move the Threshold and Debounce sliders. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 21: Graphical Datalogger Application

    Datalog button • To start the datalog, click the button (or use keyboard shortcut ctrl+N). The same button turns into "Stop current Datalog". • To stop the datalog, click the button. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 22 The communications port that the device is using 115200 The baud rate at which the device is communicating with the computer (PC) 8 None One None 8 data bits, no parity, 1 stop bit, no error checking MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 23 4.5.2 Configuration screen The Configuration screen gives you access to advanced options. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 24 This will cause a 32-point lag between when the data is acquired and when it is displayed on the graph. Watermark Set the sample number to be stored in the FIFO before the Watermark Flag is asserted. slider MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 25 Type in the to-be-written register value in the text box under the text "value". Click the button "write" to write the value the register. As a good practice, you should always read the register to verify the write. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 26: Nvm Datalogger Application

    The application can collect the data, using either the device tethered to the computer with the USB cable or using a 9V battery board (LFSTBBAT9). The battery board can be purchased on the Sensor Toolbox website. 9V Battery Board (LFSTBBAT9) Figure 5. Battery board MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 27 Note: Before a new datalog is started, the “Erase NVM memory” button must be clicked. Download to Excel Exports the data stored in the device’s NVM to a comma-separated-values (.csv) file, which can be opened with any spreadsheet or text application. button MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 28 For information about setting a delay, see Delay Options in Table 7, “NVW Datalogger – Configuration screen,” on page 5. To download the data, reconnect the device to the computer and re-open the NVM Datalogger demo. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 29: Configuration Screen

    NVM. • 15 sec Note: The delay options are only available when the “Untethered datalog” has • 30 sec been selected on the Main Screen. • 1 min MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 30 Table 7. NVW Datalogger – Configuration screen (Continued) Screen frame Element Description • 2g Sets the range over which the accelerometer acquires data. Dynamic Range • 4g • 8g MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 31: Directional Tap With Fifo Application

    FIFO, displays that show the MCU status, an estimate of used current, and the direction of the last tap. Note: Before changing any of the Active screen’s settings, select the Standby option button. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 32 Green indicates that the host MCU has been awakened from Sleep by event interrupts, and is active. Estimated System Displays the approximate amount of current that the device is drawing from the power source. Current MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 33 Before changing any settings, enable Standby mode, because the settings cannot be changed in Active mode. After changing any configuration settings, enable Active mode, to register the new settings with the device. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 34 Double tap • The HPF Bypass option button normally should be cleared. • Enabling the HPF Bypass can cause non-tap events (such as tilting the device) to be registered as taps. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 35 Sets the threshold for detecting single and double pulses to the factory-defined values. Double Tap To configure this frame’s other values, the Default Single + Double Tap option button must be cleared. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 36: Directional Shake With Fifo Application

    The Software Algorithm field shows the last shake detected. • The MCU state and estimate current are shown on the right. Note: Before changing any of the Active screen’s settings, select the Standby option button. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 37 Green indicates that the host MCU has been awakened from Sleep by event interrupts, and is active. Status Estimated Displays the approximate amount of current that the device is drawing from the power source. System Current MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 38 Before changing any settings, enable Standby mode, because the settings cannot be changed in Active mode. After changing any configuration settings, enable Active mode, to register the new settings with the device. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 39 Sets the device to Active mode. Standby • Standby Mode Indicates the device’s status. Active • Wake Mode Note: The device will never enter Sleep mode during this demo. • Sleep Mode MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 40 After changing the values of the Threshold and Debounce sliders, click Set to implement the settings. Reset Enables a new configuration of the Threshold and Debounce sliders. Before changing the settings of the Threshold and Debounce sliders, click Reset. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 41: Full-System Evaluation Application

    Before changing any settings, enable Standby mode, because the settings cannot be changed in Active mode. After changing any configuration settings, enable Active mode, to register the new settings with the device. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 42 Note: In Enable Low Noise mode, any g-force greater than ±4g will not be read. • 2g Sets the range over which the accelerometer acquires data. Dynamic • 4g Range • 8g MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 43 Click Start button to start the display of accelerometer data on graph. Click Stop to stop displaying data. Note: Ensure that the device is in Active mode for valid data output. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 44 Initiates a test where the device applies a small electrostatic force to the sensor, to simulate a small Button acceleration. If you leave this box checked during tests, then all measurements will be offset by this simulated acceleration. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 45 • and the application’s interrupt is enabled in the Interrupts section of the Main Screen. Interrupt This device has 7 interrupt sources: FIFO, Data Ready, Transient, Pulse, System Interrupt Motion FF, Orientation, Auto Sleep. Settings MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 46 The Registers screen enables you to read from or write to any of the device’s registers. For information about the functions and values of each register, see the MMA8652FC / MMA8653FC data sheets. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 47 This is the default setting. • INT Open Drain • Open Drain— When selected, the interrupt pins will be open drain, which allows multiple interrupt signals to be connected to the same interrupt line. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 48 Shifts from red to green if any axis had an old measurement that was X, Y, or Z Overwrite (F_OVF) replaced by a new measurement before the earlier measurement was read. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 49 This screen enables you to configure the motion detection and the freefall detection applications in the left section. The detection result is shown at the left bottom section. The accelerometer axes data can be selected to plot on the right graph. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 50 Causes the timer set by the Debounce slider to reset to 0, for each time that an event fails to reach the debounce time. Motion or FF Event This indicator switches from red to green if an event is triggered. Detected MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 51 Displays the data acquired by the accelerometer. Acceleration in Gs is plotted Real-Time Output against the number of samples. • X-Axis These graph-legend entries give the line color of the graph lines for the respective axes. • Y-Axis • Z-Axis MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 52 4.10.6 Orientation screen This screen enables you to configure the orientation detection applications in the left section. The detection result is shown at the right section. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 53 After changing either the Debounce slider, click Set to register the new settings with the device. Reset Resets the Debounce slider. Before configuring the Debounce slider, click Reset to enable the new configuration. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 54 Indicator switches from red to green, to display which parameter (of the configured Orientation orientation parameters) has been tripped. • Front Detection • Back Indicator (Read only) • Up • Down • Left • Right MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 55 The accelerometer axes data can be selected to plot on the right graph. Note: For best results in detecting transient events, the HPF Data Out box in the Operation-Mode Frame should be checked. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 56 • Z-Axis Data Plot (Graph) Displays the data acquired by the accelerometer. • X-Axis These graph-legend entries give the line color for the respective axes. (Read only) • Y-Axis • Z-Axis MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 57 Before changing any settings, enable Standby mode, because the settings cannot be changed in Active mode. After changing any configuration settings, enable Active mode, to register the new settings with the device. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 58 • After using the axis threshold sliders, Set XYZ Click Set to register the new click Set XYZ Thresholds. Thresholds settings with the device. Reset XYZ Click Reset to enable a new Thresholds configuration. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 59 • Y Detected - Detection Direction Y Indicator • Z Detected - (Read only) Direction Z Event Detected The indicator switches from red to green if a tap / double tap is detected. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 60 Before changing any settings, enable Standby mode, because the settings cannot be changed in Active mode. After changing any configuration settings, enable Active mode, to register the new settings with the device. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 61 Copy to clipboard Copy all the FIFO data that has been running under the current configuration to the clipboard. You can access this data by copying them to an Excel spreadsheet. MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 62: Running The Accelerometer Demonstrations

    2. Select the Graphical Datalogger application from the main launcher menu. 3. Click the Start a New Datalog button. 4. Move the device to observe how the data is graphed on the screen. Also see “Graphical Datalogger application” on page MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 63: Non-Volatile Memory Datalogger Application

    The Y-axis indicator should switch to green and the Direction window should display Y Positive. 5. To demonstrate the device’s ability to detect shakes, shake the device along any of its axes. Also see “Directional Shake with FIFO application” on page MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 64: Revision History

    Revision History Table 20. Revision history Revision Revision Description of changes number date 10/2012 • Initial release MMA865xFC Sensor Toolbox User’s Guide, Rev. 0 Freescale Semiconductor, Inc.
  • Page 65 CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, SMARTMOS, TurboLink, Vybrid, and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2012 Freescale Semiconductor, Inc.

This manual is also suitable for:

Mma8653fcMma8652fc

Table of Contents