6DOF IMU 13 Click-Platine
6DOF IMU 13 Click-Platine
Overview
Das 6DOF IMU 13 Click Board™ ist eine kompakte Zusatzplatine, die einen eCompass enthält, der aus einem 3-Achsen-Linearbeschleunigungsmesser und einem 3-Achsen-Magnetfeldsensor besteht. Diese Platine verfügt über den MC6470, einen Beschleunigungsmesser und Magnetometer für eine 6-DoF-Sensorlösung (6 Freiheitsgrade) von mCube Inc. Es verfügt über einen linearen Beschleunigungsbereich von ±16 g und einen rauscharmen Magnetsensor mit einer Magnetfeldauflösung von bis zu 0,15 μT, mit einer einzigen I2C-Schnittstelle zur separaten Steuerung der Magnetometer- und Beschleunigungsmesserfunktionen, die einen unabhängigen Betrieb der Funktionen für Anwendungsflexibilität ermöglicht. Dieses Click Board™ ist eine ausgezeichnete Wahl für Anwendungen, die eine hochpräzise Richtungsanzeige erfordern, wie z. B. Kartenausrichtung, Virtual-Reality-Datenüberlagerung, verbesserte Navigation und Gyroskopersatz.
Das 6DOF IMU 13 Click wird von einer mikroSDK-kompatiblen Bibliothek unterstützt, die Funktionen enthält, die die Softwareentwicklung vereinfachen. Dieses Click Board™ ist ein gründlich getestetes Produkt und kann auf einem System verwendet werden, das mit der mikroBUS™-Buchse ausgestattet ist.
How Does The 6DOF IMU 13 Click Board™ Work?
The 6DOF IMU 13 Click Board™ is based on the MC6470 that combines an accelerometer and magnetometer for a 6 DoF (6 Degrees of Freedom) sensor solution, from mCube Inc. An accelerometer has two states of operation: STANDBY which is his default state after Power-Up function, and WAKE. The STANDBY state offers the lowest power consumption, and only in this state, the I2C interface is active and all register reads and writes are allowed. There is no event detection, sampling, or acceleration measurement in this state. In WAKE state, only write access is permitted to the MODE register. The full-scale acceleration range can be adjusted from ±2g, up to ±16g with a 14-bit resolution.
This 6DOF IMU 13 Click Board™ also includes a high-performance magnetic sensor with 0.15μT resolution, broad field range up to ±2.4mT, and a programmable output data rate from 0.5 to 100 Hz. The magnetometer has two operational modes, Stand-By and Active Mode with Force and Normal State, whose primary purpose is for power management. It also provides additional functions such as Data Ready Function which occurs when new measured results are updated, Offset Calibration and Drift Functions, and Temperature Measurement Function that retrieves temperature data used for internal compensation of output data from an internal temperature sensor. The magnetic sensor output value of each axis is positive when turned toward the magnetic north.
The MC6470 possesses two interrupt outputs, magnetometer (IN2) and an accelerometer (IN1) interrupts, routed to the AN and INT pins on the mikroBUS™ used to signal MCU that an event has been sensed. It also supports directional tap detection in ±X, ±Y, or ±Z axis, where each axis is independent, although only one direction per axis is supported simultaneously. In this case, the interrupt pins can be used to indicate that a tap event has been detected.
The 6DOF IMU 13 Click Board™ communicates with MCU using the standard I2C 2-Wire interface with a maximum frequency of 400kHz. The MC6470 always operates as an I2C slave device on both magnetometer and accelerometer I2C interfaces and allows the choice of the least significant bit (LSB) of its I2C slave address which can be done by using the SMD jumper labelled as ADDR SEL.
This Click Board™ is designed to be operated only with a 3.3V logic level. A proper logic voltage level conversion should be performed before the Click board™ is used with MCUs with different logic levels.
Specifications
Type | Acceleration,Magnetic,Motion |
Applications | Can be used for applications where there is a need for high-precision directional pointing such as map orientation, virtual reality data overlay, enhanced navigation, and gyroscope replacement. |
On-board modules | 6DOF IMU 13 Click is based on the MC6470, 6 DoF solution, a 3-axis accelerometer, and 3-axis magnetometer sensors, from mCube Inc. |
Key Features | Low power consumption, high precision, programmable interrupts, user scalable accel full-scale range, programmable output data rate, and more. |
Interface | I2C |
Compatibility | mikroBUS |
Click board size | S (28.6 x 25.4 mm) |
Input Voltage | 3.3V |
Pinout diagram
This table shows how the pinout on 6DOF IMU 13 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
Magnet. Interrupt | IN2 | 1 | AN | PWM | 16 | NC | |
NC | 2 | RST | INT | 15 | IN1 | Accel. Interrupt | |
NC | 3 | CS | RX | 14 | NC | ||
NC | 4 | SCK | TX | 13 | NC | ||
NC | 5 | MISO | SCL | 12 | SCL | I2C Clock | |
NC | 6 | MOSI | SDA | 11 | SDA | I2C Data | |
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | NC | |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | ADDR SEL | Left | I2C Address Selection: Left position 0, Right position 1 |
6DOF IMU 13 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | -0.3 | 3.3 | 3.6 | V |
Acceleration (any axis) | - | - | 10.000 | g |
Acceleration Sensitivity | 8 | - | 4096 | LSB/g |
Magnetometer Field Range | -2.4 | - | 2.4 | mT |
Magnetometer Sensitivity | - | 0.15 | - | µT / LSB |
Operating Temperature Range | -40 | - | +85 | °C |
Software Support
We provide a library for the 6DOF IMU 13 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library covers all the necessary functions that enable the use of the 6DOF IMU 13 Click board. It initializes and defines the I2C bus driver and drivers that offer a plethora of settings. The library also offers functions that allow reading of accelerometer and magnetometer, as well as generic read and write function that offers reading( and writing) of different lengths of data.
Key Functions
void c6dofimu13_get_magneto ( float *mag_x, float *mag_y, float *mag_z );
- Function is used to read magnetometer data.void c6dofimu13_get_accel ( float *accel_x, float *accel_y, float *accel_z );
- Function is used to get acceleration rate.void c6dofimu13_accel_init ( uint8_t samp_rate, uint8_t samp_range, uint8_t samp_res );
- Function is used to initialize accelerometer, user can select data rate, range and resolution.
Example Description
The application is composed of three sections :
- System Initialization - Initializes I2C module, LOG and GPIO structures, sets INT and AN pins as input.
- Application Initialization - Initialises I2C driver, initiates magnetometer and accelerometer and writes an initial log.
- Application Task - (code snippet) Demonstrates use of 6DOF IMU 13 click board by reading angular rate, acceleration rate and displaying data via USART terminal.
void application_task ( ) { mikrobus_logWrite( "-----------------------", _LOG_LINE ); mikrobus_logWrite( " Magnetometer readings ", _LOG_LINE ); c6dofimu13_get_magneto ( &mag_x, &mag_y, &mag_z ); FloatToStr( mag_x, log_txt ); mikrobus_logWrite( "X-axis :", _LOG_TEXT ); mikrobus_logWrite( log_txt, _LOG_TEXT ); mikrobus_logWrite( "µT", _LOG_LINE ); FloatToStr( mag_y, log_txt ); mikrobus_logWrite( "Y-axis :", _LOG_TEXT ); mikrobus_logWrite( log_txt, _LOG_TEXT ); mikrobus_logWrite( "µT", _LOG_LINE ); FloatToStr( mag_z, log_txt ); mikrobus_logWrite( "Z-axis :", _LOG_TEXT ); mikrobus_logWrite( log_txt, _LOG_TEXT ); mikrobus_logWrite( "µT", _LOG_LINE ); mikrobus_logWrite( "-----------------------", _LOG_LINE ); Delay_ms( 500 ); mikrobus_logWrite( " Accelerometer readings ", _LOG_LINE ); c6dofimu13_get_accel( &acc_x, &acc_y, &acc_z ); FloatToStr( acc_x, log_txt ); mikrobus_logWrite( "X-axis :", _LOG_TEXT ); mikrobus_logWrite( log_txt, _LOG_TEXT ); mikrobus_logWrite( "g", _LOG_LINE ); FloatToStr( acc_y, log_txt ); mikrobus_logWrite( "Y-axis :", _LOG_TEXT ); mikrobus_logWrite( log_txt, _LOG_TEXT ); mikrobus_logWrite( "g", _LOG_LINE ); FloatToStr( acc_z, log_txt ); mikrobus_logWrite( "Z-axis :", _LOG_TEXT ); mikrobus_logWrite( log_txt, _LOG_TEXT ); mikrobus_logWrite( "g", _LOG_LINE ); mikrobus_logWrite( "-----------------------", _LOG_LINE ); Delay_ms( 1000 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- I2C
- UART
- Conversions
Additional Notes and Information
Depending on the development board you are using, you may need a USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
mikroSDK
This Click board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Software Support
We provide a library for the 6DOF IMU 13 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library covers all the necessary functions that enable the use of the 6DOF IMU 13 Click board. It initializes and defines the I2C bus driver and drivers that offer a plethora of settings. The library also offers functions that allow reading of accelerometer and magnetometer, as well as generic read and write function that offers reading( and writing) of different lengths of data.
Key Functions
void c6dofimu13_get_magneto ( float *mag_x, float *mag_y, float *mag_z );
- Function is used to read magnetometer data.void c6dofimu13_get_accel ( float *accel_x, float *accel_y, float *accel_z );
- Function is used to get acceleration rate.void c6dofimu13_accel_init ( uint8_t samp_rate, uint8_t samp_range, uint8_t samp_res );
- Function is used to initialize accelerometer, user can select data rate, range and resolution.
Example Description
The application is composed of three sections :
- System Initialization - Initializes I2C module, LOG and GPIO structures, sets INT and AN pins as input.
- Application Initialization - Initialises I2C driver, initiates magnetometer and accelerometer and writes an initial log.
- Application Task - (code snippet) Demonstrates use of 6DOF IMU 13 click board by reading angular rate, acceleration rate and displaying data via USART terminal.
void application_task ( ) { mikrobus_logWrite( "-----------------------", _LOG_LINE ); mikrobus_logWrite( " Magnetometer readings ", _LOG_LINE ); c6dofimu13_get_magneto ( &mag_x, &mag_y, &mag_z ); FloatToStr( mag_x, log_txt ); mikrobus_logWrite( "X-axis :", _LOG_TEXT ); mikrobus_logWrite( log_txt, _LOG_TEXT ); mikrobus_logWrite( "µT", _LOG_LINE ); FloatToStr( mag_y, log_txt ); mikrobus_logWrite( "Y-axis :", _LOG_TEXT ); mikrobus_logWrite( log_txt, _LOG_TEXT ); mikrobus_logWrite( "µT", _LOG_LINE ); FloatToStr( mag_z, log_txt ); mikrobus_logWrite( "Z-axis :", _LOG_TEXT ); mikrobus_logWrite( log_txt, _LOG_TEXT ); mikrobus_logWrite( "µT", _LOG_LINE ); mikrobus_logWrite( "-----------------------", _LOG_LINE ); Delay_ms( 500 ); mikrobus_logWrite( " Accelerometer readings ", _LOG_LINE ); c6dofimu13_get_accel( &acc_x, &acc_y, &acc_z ); FloatToStr( acc_x, log_txt ); mikrobus_logWrite( "X-axis :", _LOG_TEXT ); mikrobus_logWrite( log_txt, _LOG_TEXT ); mikrobus_logWrite( "g", _LOG_LINE ); FloatToStr( acc_y, log_txt ); mikrobus_logWrite( "Y-axis :", _LOG_TEXT ); mikrobus_logWrite( log_txt, _LOG_TEXT ); mikrobus_logWrite( "g", _LOG_LINE ); FloatToStr( acc_z, log_txt ); mikrobus_logWrite( "Z-axis :", _LOG_TEXT ); mikrobus_logWrite( log_txt, _LOG_TEXT ); mikrobus_logWrite( "g", _LOG_LINE ); mikrobus_logWrite( "-----------------------", _LOG_LINE ); Delay_ms( 1000 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- I2C
- UART
- Conversions
Additional Notes and Information
Depending on the development board you are using, you may need a USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
mikroSDK
This Click board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.