36 Thornwood Dr. Ithaca, NY 14850
tel: 607-257-1080 fax: 607-257-1146
www.kionix.com - info@kionix.com
AN 044
Getting Started with the KMX61
© Kionix 2014
13 Aug 2014
Page 1 of 9
Introduction
There is a growing interest in 6 Degree-of-Freedom inertial sensor solutions for purpose of
enhancing end user experience. This application note will help developers quickly implement
proof-of-concept designs using Kionix’s KMX61, a tri-axis accelerometer and tri-axis
magnetometer single chip combo solution. Please refer to the KMX61 data sheet for additional
implementation guidelines. Kionix strives to ensure that our sensors will meet design
expectations by default, but it is not possible to provide default settings to work in every
environment. Depending on the intended application, it is very likely that some customization will
be required in order to optimize performance. The information provided here will help the
developer get the most out of the KMX61 combo sensor.
Circuit Schematic
This section shows recommended wiring for the KMX61, based on proven operation of the part.
Specific applications may require modifications from these recommendations. Please refer to the
KMX61 Data Sheet for all pin descriptions.
Figure 1. Application Schematic
16 15 14
1 13
2 12
3 KMX61 11
4 10
5 9
6 7 8
KMX61
Vdd
C
1
C
2
C
3
IO_Vdd
SCL
SDA
ADDR
GND
AN 044
© Kionix 2014
13 June 2014
Page 2 of 9
Implementation
Here we present several basic ways to initialize the part. These can vary based on desired
operation, but generally the initial operations a developer wants to do are: 1) read back
acceleration and magnetic field data asynchronously, 2) read back acceleration and magnetic
field data when next data is ready via interrupt, 3) use the Wake Up function of accelerometer to
place magnetic sensoro from stand-by to operating mode. These cursory solutions are provided
as a means for configuring the part to a known operational state. Note that these conditions just
provide a starting point, and the values may vary as developers refine their application
requirements.
1- Asynchronous Read Back Acceleration and Magnetic Field Data (Setting G-Range and
ODR)
- Write 0x10 to Control Register 1 (CTRL_REG1) to set G-range to +/-2g
Register Name
Address
Value
Hex
Binary
Hex
Binary
CTRL_REG1
0x24
0010 0100
0x10
0001 0000
- Write 0x22 to Data Control Register (ODCNTL) to set the Output Data Rate (ODR) of
the accelerometer and magnetometer to 50 Hz. (Note: This is also the default value.)
Register Name
Address
Value
Hex
Binary
Hex
Binary
ODCNTL
0x2C
0010 1100
0x22
0010 0010
- Write 0x00 to Stand-by register (STBY_REG) to set the accelerometer and
magnetometer into operating mode.
Register Name
Address
Value
Hex
Binary
Hex
Binary
STBY_REG
0x29
0010 1001
0x00
0000 0000
- Acceleration and Magnetic field data can now be read from the ACCEL_XOUT_L,
ACCEL_XOUT_H, ACCEL_YOUT_L, ACCEL_YOUT_H, ACCEL_ZOUT_L,
ACCEL_ZOUT_H, MAG_XOUT_L, MAG_XOUT_H, MAG_YOUT_L, MAG_YOUT_H,
MAG_ZOUT_L, and MAG__ZOUT_H registers in 2’s complement format.