XTRINSIC-SENSORS-EVK
Evaluation Kit for Freescale Xtrinsic Sensors
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 2
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Table of Contents
K
IT
O
VERVIEW
........................................................................................................................................................................... 4
K
IT
C
ONTENTS
: .......................................................................................................................................................................... 4
Xtrinsic Sensor Board ............................................................................................................................................................ 4
MPL3115 ............................................................................................................................................................................................... 4
MAG3110 .............................................................................................................................................................................................. 5
MMA8491Q .......................................................................................................................................................................................... 5
Pin Definition of Connectors ................................................................................................................................................. 5
Board Top View ..................................................................................................................................................................................... 5
Pin Definition......................................................................................................................................................................................... 6
Freescale Freedom FRDM-KL25Z ........................................................................................................................................ 7
XTRINSIC-Sensor board and FRDM-KL25Z......................................................................................................................... 8
Pin mapping ........................................................................................................................................................................................... 8
D
RIVERS FOR
S
ENSOR
B
OARD
................................................................................................................................................... 9
Driver for MPL3115A2 .......................................................................................................................................................... 9
Driver Interfaces .................................................................................................................................................................................... 9
Operation Modes ................................................................................................................................................................................... 9
Data Acquisition .................................................................................................................................................................................. 11
Raw Data Structure and Calculations ................................................................................................................................. 11
Alt Raw Data ....................................................................................................................................................................................... 11
Bar raw data ......................................................................................................................................................................................... 12
Temperature raw data ........................................................................................................................................................................... 12
Drivers for MAG3110 .......................................................................................................................................................... 12
Driver Interfaces .................................................................................................................................................................................. 12
Raw Data Structure and calculations .................................................................................................................................. 13
X-Axis data .......................................................................................................................................................................................... 13
Y-Axis data .......................................................................................................................................................................................... 14
Z-Axis data .......................................................................................................................................................................................... 14
D
EMONSTRATION
..................................................................................................................................................................... 15
Setup and Configuration ...................................................................................................................................................... 15
H
ARDWARE
.............................................................................................................................................................................. 21
Schematic ............................................................................................................................................................................. 21
PCB Layout .......................................................................................................................................................................... 25
Bill of Materials ................................................................................................................................................................... 26
ESD
PRECAUTIONS
AND
PROPER
HANDLING
PROCEDURES ................................................................................... 27
LIST OF FIGURES
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 3
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
FIGURE 1 SENSOR BOARD .............................................................................................................................. 4
FIGURE 2 SENSOR BOARD TOP VIEW ............................................................................................................. 5
FIGURE 3: PINOUTS OF I/O HEADERS ON FRDM-KL25Z ................................................................................. 7
FIGURE 4 XSTRINSIC-SENSORS-EVK ................................................................................................................ 8
FIGURE 5: MPL3115 DEMO .......................................................................................................................... 18
FIGURE 6 MAG3110 DEMO .......................................................................................................................... 19
FIGURE 7 MMA8491Q DEMO ...................................................................................................................... 20
FIGURE 8 SENSOR BOARD SCHEMATIC - 1 ................................................................................................... 21
FIGURE 9 SENSOR BOARD SCHEMATIC - 2 ................................................................................................... 22
FIGURE 10 SENSOR BOARD SCHEMATIC - 3 ................................................................................................. 23
FIGURE 11 SENSOR BOARD SCHEMATIC - 4 ................................................................................................. 24
FIGURE 12 SENSOR BOARD PCB TOP VIEW .................................................................................................. 25
LIST OF TABLES
TABLE 1 CN1 DATA INTERFACE CONNECTOR ................................................................................................. 6
TABLE 2 CN2 POWER SUPPLY CONNECTOR ................................................................................................... 6
TABLE 3 MPL3115A2 INTERFACE LIST ............................................................................................................ 9
TABLE 4 MPL3115A2_ACTIVE......................................................................................................................... 9
TABLE 5 MPL3115A2_STANDBY ..................................................................................................................... 9
TABLE 6 MPL3115A2_INIT_ALT ...................................................................................................................... 9
TABLE 7 MPL3115A2_INIT_BAR ................................................................................................................... 10
TABLE 8 SYSTEM OUTPUT DATA RATE SELECTION....................................................................................... 10
TABLE 9 MPL3115A2_SETOSR ...................................................................................................................... 10
TABLE 10 MPL3115A2_SETSTEPTIME .......................................................................................................... 10
TABLE 11 MPL3115A2_READ_ALT ............................................................................................................... 11
TABLE 12 MPL3115A2_READ_BAR ............................................................................................................... 11
TABLE 13 MPL3115A2_READ_TEMP ............................................................................................................ 11
TABLE 14 ALT RAW DATA STRUCTURE ......................................................................................................... 11
TABLE 15 BAR RAW DATA STRUCTURE ........................................................................................................ 12
TABLE 16 TEMPERATURE RAW DATA STRUCTURE ...................................................................................... 12
TABLE 17 MAG3110 INTERFACE LIST ........................................................................................................... 12
TABLE 18 MAG3110_INIT ............................................................................................................................. 12
TABLE 19 MAG3110_DEINIT ........................................................................................................................ 13
TABLE 20 MAG3110_READRAWDATA_X ..................................................................................................... 13
TABLE 21 MAG3110_READRAWDATA_Y ...................................................................................................... 13
TABLE 22 MAG3110_READRAWDATA_Z ...................................................................................................... 13
TABLE 23 X-AXIS DATA STRUCTURE ............................................................................................................. 13
TABLE 24 Y-AXIS DATA STRUCTURE ............................................................................................................. 14
TABLE 25 Z-AXIS DATA STRUCTURE ............................................................................................................. 14
TABLE 26 SENSOR BOARD BOM LIST ............................................................................................................ 26
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 4
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Kit Overview
The Xtrinsic sensor evaluation kit comes with a sensor board together with the Freescale FRDM-KL25Z platform.
The software drivers and code enable engineers to easily evaluate and demonstrate the performance of the
sensors in a variety of applications including:
eCompass
Mobile Phones/Tablet Computers
Remote Control/Wireless Mouse
Game Consoles
Navigation Devices
Medical Devices
Kit Contents:
Xtrinsic Sensors Board
FRDM-KL25Z board
Quick Start Guide
Xtrinsic Sensor Board
The sensor board comes equipped with three of Freescale's new-generation XTRINSIC MEMS sensors. The
MPL3115 is designed for accurate measurement of altitude and pressure, the MAG3110 for detection of magnetic
fields, and the MMA8491 for measurement of physical positions.
Figure 1 Sensor Board
MPL3115
The MPL3115 is a high-precision sensor used to provide accurate pressure and altitude data. It features an
adjustable sampling rate, ultra-low power consumption and intelligent functions, suitable for applications such as
mobile, medical and security devices. MPL3115 is able to provide digitized output, two separated wake-up
interrupts, minimum/maximum threshold mechanism, and autonomous data acquisition. The self data processing
ability of the MPL3115 reduces the need for communication with MCUs, which reduces overall system power
consumption.
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 5
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
MAG3110
The MAG3110 is a small, low-power, digital 3-axis magnetometer featuring a wide measurement range. It can
measure magnetic fields (the overlapped fields consisting of the geomagnetic field and the fields created by
components on PCB) on each of the 3 axes in the position where it is placed. The MAG3110 features an I2C serial
interface, and is capable of measuring magnetic fields of up to 10 Gauss with an output data rate up to 80Hz. The
output data rate can vary depending on the sampling intervals and may be adjusted from 12ms to several
seconds.
MMA8491Q
The MMA8491Q is a low voltage, 3-axis low-g accelerometer housed in a 3 mm by 3 mm QFN package. The device
can accommodate two accelerometer configurations, acting as either an easy to implement 45° Tilt Sensor or a
digital (I2C) output accelerometer. In the 45° Tilt Sensor mode, it offers extremely easy board implementation by
using a single line of output per axis. In the digital output mode, 14-bit ±8g raw data can be read from the device
with high 1 mg/LSB sensitivity. The extreme low power capabilities of the MMA8491Q reduce the low data rate
current consumption to less than 400 nA per Hz.
Pin Definition of Connectors
This section will briefly introduce the connectors used on sensor board and the pins of these connectors in terms
of definition, function and application.
Board Top View
Figure 2 Sensor Board Top View
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 6
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Pin Definition
CN1 – Data interface
Pin No. Pin Name Description
1
EN
MMA8491
2 Zout
MMA8491 Push
-
Pull Z
-
Axis
Tilt Detection Output
3 Yout
MMA8491
Push
-
Pull Y
-
Axis
Tilt Detection Output
4 Xout
MMA8491 Push
-
Pull X
-
Axis
Tilt Detection Output
5
Int_U1
MPL3115
Interrup
t
6
Int_U2
MAG3110
Interrupt
7
GND
Ground
8
NC
No Connection
9
SDA
I2C Slave Data Line
10
SCL
I2C Slave Clock Line
Table 1 CN1 Data Interface Connector
CN2: Power Supply Connector
Pin No. Pin Name Description
1
VDD
+3.3V
DC
Power Supply
2
NC
No Connection
3
GND
Ground
Table 2 CN2 Power Supply Connector
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 7
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Freescale Freedom FRDM-KL25Z
The FRDM-KL25Z features a KL25Z128VLK - a KL2 family device boasting a max operating frequency of 48MHz,
128KB of flash, a full-speed USB controller, and loads of analog and digital peripherals. The FRDM-KL25Z has an
easy access to MCU I/O via Arduino ™ R3 compatible I/O connectors.
The board also features a programmable OpenSDA debug interface with multiple applications available including:
Mass storage device flash programming interface
P&E Debug interface provides run-control debugging and compatibility with IDE tools
CMSIS-DAP interface: new ARM standard for embedded debug interface
Figure 2 FRDM-KL25Z board
Figure 3: Pinouts of I/O headers on FRDM-KL25Z
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 8
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
XTRINSIC-Sensor board and FRDM-KL25Z
Pin mapping
Sensor Board
CN1
FRDM KL25Z
J2
Sensor Board
CN2
FRDM KL25Z
J9
Figure 4 XSTRINSIC-SENSORS-EVK
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 9
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Drivers for Sensor Board
Driver for MPL3115A2
Driver Interfaces
The MPL3115A2 features three kinds of modes, 8 different sample rates, 16 different acquisition time steps (1
second to 9 hours), and compensated direct reading of pressure (20 bit in Pascal) or altitude (20 bit in meters).
The driver provides the following interfaces for implementing these features.
Table 3 MPL3115A2 Interface list
1
Modes of Operation
void MPL3115A2_Active (void)
2
Uint8_t MPL3115A2_Standby (void)
3
Uint8_t MPL3115A2_Init_Alt (void)
4
Uint8_t MPL
3115A2_Init_Bar (void)
5
Over sample
void MPL3115A2_SetOSR (uint8_t)
6
void MPL3115A2_SetStepTime (uint8_t)
7
Read raw data
uint32_t MPL3115A2_Read_Alt (void)
8
uint32_t MPL3115A2_Read_Bar (void)
9
uint32_t MPL3115A2_Read_Temp (void)
Operation Modes
MPL3115A2 has three operation modes: Standby, Active Altitude, and Active Barometer. These modes can be
implemented using the following interfaces.
Table 4 MPL3115A2_Active
Name
MPL3115A2_Active
Prototype
v
oid
MPL3115A2_Ac
tive (void)
Param
Void
Return Value
Void
Description
Put MPL3115A2 into Active Mode
Table 5 MPL3115A2_Standby
Name
MPL3115A2_Standby
Prototype
Uint8_t MPL3115A2_Standby (void)
Param
Void
Return Value
The value of CTRL_REG1
before modification
Description
Put MPL3115A2 into Standby Mode
Table 6 MPL3115A2_Init_Alt
Name
MPL3115A2_Init_Alt
Prototype
Uint8_t MPL3115A2_Init_Alt (void)
Param
Void
Return Value
0
fail, 1
success
Description
Initialize MPL3115A2 for Alt mode
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 10
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Table 7 MPL3115A2_Init_Bar
Name
MPL3115A2_Init_Bar
Prototype
Uint8_t MPL3115A2_Init_Bar (void)
Param
Void
Return Value
0
fail, 1
success
Description
Initialize MPL3115A2 for Bar mode
Over Sampling
Output Sample Rate can be set as shown in Table 8 System Output Data Rate Selection. Table 10 and 11 contain
the functions used for configuring over-sampling parameters.
Table 8 System Output Data Rate Selection
OSR
Oversample Ratio
Minimum Time Between Data Samples
0
1
2.5 ms
1
2
5 ms
2
4
10 ms
3
8
20 ms
4
16
40 ms
5
32
80 ms
6
64
160 ms
7
128
320 ms
Table 9 MPL3115A2_SetOSR
Name
MPL3115A2_SetOSR
Prototype
void MPL3115A2_SetOSR (uint8_t osr)
Param
OSR Ratio
Return Value
Void
Description
Change the OSR Ratio
Table 10 MPL3115A2_SetStepTime
Name
MPL
3115A2_SetStepTime
Prototype
void MPL3115A2_SetStepTime (uint8_t step)
Param
Sample Step = 2^step;
Return Value
Void
Description
Change sample step
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 11
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Data Acquisition
Pressure (20 bit in Pascals), Altitude (20 bit in meters), and Temperature (12 bit in degrees Celsius) can be read by
functions contained in the following tables, and be calculated using the formulas in section 0
Table 11 MPL3115A2_Read_Alt
Name
MPL3115A2_Read_Alt
Prototype
uint32_t MPL3115A2_Read_Alt (void)
Param
Void
Return Value
T
he raw data for Alt
itude
:
Description
Read Alt
itude
data from MPL3115A2
Table 12 MPL3115A2_Read_Bar
Name
MPL3115A2_Read_Bar
Prototype
uint32_t MPL3115A2_Read_Bar (void)
Param
Void
Return Value
The raw data for Bar
ometer
Description
Read Bar
ometer
data from MPL3115A2
Table 13 MPL3115A2_Read_Temp
Name
MPL3115A2_Read_Temp
Prototype
uint32_t MPL3115A2_Read_
Temp
(void)
Param
Void
Return Value
The raw data for temperature
Description
Read Temperature data from MPL3115A2
Raw Data Structure and Calculations
Alt Raw Data
Table 14 Alt raw data structure
31
24
23
16
15
8
7
0
Invalid
ALT_MSB
ALT_CSB
ALT_LSB
Integer part: ALT_MSB x 2
8
+ ALT_CSB
Decimal part: (ALT_LSB / 2
4
) x 0.0625
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 12
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Bar raw data
Table 15 Bar raw data structure
31
24
23
16
15
8
7
0
Invalid
BAR_MSB
BAR_CSB
BAR_LSB
Integer part: (BAR_MSB x 2
16
+ BAR_CSB x 2
8
+ BAR_LSB) / 2
6
Decimal part: BAR_LSB.BIT5 x0.5 + BAR_LSB.BIT4 x 0. 25
Temperature raw data
Table 16 Temperature raw data structure
31
24
23
16
15
8
7
0
Invalid
Invalid
T_MSB
T_LSB
Integer part: T_MSB
Decimal part: (T_LSB / 2
4
) x 0.0625
Drivers for MAG3110
Driver Interfaces
MAG3110 is a digital 3-axis magnetometer from which the data can be read using interfaces contained in Table 17
to Table 22
Table 17 MAG3110 Interface list
1
Initialize
Uint8_t MAG3110_Init(void)
2
void MAG3110_DeInit(void)
3
Read raw data
uint32_t
MAG3110_ReadRawData_x(void)
6
uint32_t MAG3110_ReadRawData_y(void)
7
uint32_t MAG3110_ReadRawData_z(void)
Table 18 MAG3110_Init
Name
MAG3110_Init
Prototype
Uint8_t MAG3110_Init(void)
Param
Void
Return Value
0
fail, 1
success
Description
Initialize MAG3110
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 13
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Table 19 MAG3110_DeInit
Name
MAG3110_DeInit
Prototype
void MAG3110_DeInit(void)
Param
Void
Return Value
Void
Description
Deinitialize MAG3110
Table 20 MAG3110_ReadRawData_x
Name
MAG3110_ReadRawData_x
Prototype
uint32_t MAG3110_ReadRawData_x(void)
Param
Void
Return Value
Raw data for x
-
axis
Description
Read x
-
axis data from MAG3110
Table 21 MAG3110_ReadRawData_y
Name
MAG3110_ReadRawData_y
Prototype
uint32_t MAG3110_ReadRawData_y(void)
Param
Void
Return Value
Raw data for y
-
axis
Description
Read y
-
axis data from MAG3110
Table 22 MAG3110_ReadRawData_z
Name
MAG3110_ReadRawData_z
Prototype
uint32_t MAG3110_ReadRawData_z(void)
Param
Void
Return Value
Raw data for z
-
axis
Description
Read x
-
axis data from MAG3110
Raw Data Structure and calculations
X-Axis data
X-axis 16-bit output sample data of the magnetic field strength is expressed as signed 2's complement.
Table 23 X-Axis data structure
31
24
23
16
15
8
7
0
Invalid
Invalid
X_MSB
X_LSB
Scale factor
Data (in µT unit) = Data(Count) x 0.1
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 14
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Y-Axis data
Y-axis 16-bit output sample data of the magnetic field strength is expressed as signed 2's complement.
Table 24 Y-Axis data structure
31
24
23
16
15
8
7
0
Invalid
Invalid
Y_MSB
Y_LSB
Z-Axis data
Z-axis 16-bit output sample data of the magnetic field strength is expressed as signed 2's complement.
Table 25 Z-Axis data structure
31
24
23
16
15
8
7
0
Invalid
Invalid
Z_MSB
Z_LSB
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 15
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Demonstration
After the driver code is loaded onto the Freedom KL25Z, the sensor features can be demonstrated with a
command line interface of HyperTerminal, or another UART tools.
Setup and Configuration
1.
Plug in a USB cable from a USB host to the OpenSDA mini-B USB connector of the FRDM-KL25Z. The FRDM-
KL25Z will be powered by this USB connection. FRDM-KL25Z comes with the mass-storage device (MSD) Flash
Programmer OpenSDA Application preinstalled. It will appear as a removable storage drive with a volume
label of
FRDM-KL25Z. (
Note: For more details on setup of the FRDM-KL25Z please refer to
http://www.element14.com/community/docs/DOC-49219)
2. Open the FRDM-KL25Z drive
,
and drop the image “sensors_freedom.srec” into it, as seen below.
3. The MSD Flash Programmer also includes a USB virtual serial port which requires an
.INF
file for proper
installation in Windows. The necessary
.INF
file is available as part of the P&E OpenSDA USB Drivers and on
the
FRDM-KL25Z
removable drive.
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 16
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
The serial port will be configured after the driver installation
– eg. COM6 in the example.
4. Launch the terminal program (eg. Tera Term) with the properties as follows:
Baud rate
115200
Data bits
8
-
bit
Stop bits
1
-
bit
Parity
None
Flow control
None
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 17
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
5. Reset the board
by pressing the reset button (SW1)
, and you can see the information displayed below
6. Type 'S0' into the terminal
through the PC keyboard, to try out the MPL3115A2 sensor. The terminal will
begin to display temperature readings. Touch the sensor with your finger and notice that the temperature
readings will start to rise. At the same time, the RGB LED will begin blinking red.
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 18
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Figure 5: MPL3115 demo
7. Press the "Enter" key on the keyboard to quit the demo and go back to the menu. Type ‘S1’ to try out the
MAG3110 sensor. Shake the board around, and you can see the 3-D magnetic field measurement change. At
the same time, the RGB LED will begin blinking green.
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 19
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Figure 6 MAG3110 Demo
8. Press the "Enter" key on the keyboard to return the menu, and type ‘S2’ to try out the MMA8491Q sensor
Turn the board from side to side and from front to back to see the corresponding x, y, and z coordinates
change as the board is tilted. At the same time, the RGB LED will begin blinking blue.
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 20
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Figure 7 MMA8491Q Demo
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 21
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Hardware
This document includes the hardware design files for the XTRINSIC Sensors board. For the FRDM-KL25Z board,
please refer to http://www.element14.com/community/docs/DOC-46626
Schematic
Figure 8 Sensor Board Schematic - 1
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 22
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Figure 9 Sensor Board Schematic - 2
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 23
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Figure 10 Sensor Board Schematic - 3
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 24
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Figure 11 Sensor Board Schematic - 4
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 25
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
PCB Layout
Figure 12 Sensor Board PCB TOP View
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 26
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
Bill of Materials
Reference
Description
Manufacturer
Part No.
Farnell
Newark
Priority
U1
PRESSURE SENSOR, 20
-
110KPA
FREESCALE MPL3115A2 2009084 61T7697 Preferred
U2 MAGNETOMETER, 3AXIS, I2C, 80HZ
FREESCALE MAG3110FCR1 2080492 83T2982 Preferred
U3 ACCELEROMETER - SENSOR, QFN-16
FREESCALE
MMA8491Q
2291592
47W865
Preferred
C1 MLCC, 0603, 6.3V, 10UF
KEMET C0603C106M9PACTU 1288201 86K0597 Preferred
TAIYO YUDEN JMK107BJ106MA-T 1463375 30K5476 Alternate
AVX QM036D106MAT 1867960 20T0206 Alternate
C2~ C11
MLCC, 0603, 16V,
0.1UF
AVX CM105X7R104K16AT 1216538 01M7218
Preferred
KEMET C0603C104J4RACTU 1650834 64K2836 Alternate
MULTICOMP B0603R104KCT 9406140 37K9922 Alternate
R1, R2, R3 RESISTOR, 0603, 4.7K, 1%
MULTICOMP
MCHP03W8F4701T5E
1576293
01N6891
Preferred
VISHAY CRCW06034K70FKEA 1469807 52K8494 Alternate
YAGEO RC0603FR-074K7L 1117265 98K7410 Alternate
R4 RESISTOR, 0603, 10K, 1%
MULTICOMP MCHP03W8F1002T5E 1576297 01N6844 Preferred
VISHAY
CRCW060310K0FKEA
1469748
52K8063
Alternate
YAGEO RC0603FR-0710KL 1117235 68R0049 Alternate
CN1 HEADER, 2.54MM, VERTICAL THT, 10WAY
MOLEX 90120-0770 9733353 25M5816
Preferred
SAMTEC HTS-110-G-A 1929555 83T9016
Alternate
CN2
HEADER, 2.54MM, VERTICAL THT, 3WAY
TE 825433-3 3417657 99K0795
Preferred
SAMTEC HTS-103-G-A 1926586 83T8997
Alternate
Table 26 Sensor Board BOM list
XTRINSIC-SENSORS-EVK
Evaluation kit for Freescale Xtrinsic Sensors
Doc ID: XTRINSICUM
Rev. 0.5, 06/03/2013
Embest and element14 are trademarks of Premier Farnell plc 27
© 2013 Premier Farnell plc. All Rights Reserved
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off.
ESD PRECAUTIONS AND PROPER HANDLING PROCEDURES
This section includes the precautions for mechanical handling and static precautions to be taken to avoid ESD
damage:
Avoid carpets in cool, dry areas. Leave development kits in their anti-static packaging until ready to be
installed.
Dissipate static electricity before handling any system components (development kits) by touching a
grounded metal object, such as the system unit unpainted metal chassis.
If possible, use antistatic devices, such as wrist straps and floor mats.
Always hold a evaluation board by its edges. Avoid touching the contacts and components on the board.
Take care when connecting or disconnecting cables. A damaged cable can cause a short in the electrical
circuit.
Prevent damage to the connectors by aligning connector pins before you connect the cable. Misaligned
connector pins can cause damage to system components at power-on.
When disconnecting a cable, always pull on the cable connector or strain-relief loop, not on the cable
itself.