c6dofimu22 2.1.0.0
|
6DOF IMU 22 Click is a compact add-on board for advanced motion tracking. This board features the ICM-42670-P, a high-performance 6-axis MEMS MotionTracking IMU from TDK InvenSense. The ICM-42670-P integrates a 3-axis gyroscope and accelerometer, offering exceptional precision in motion detection. It supports both I2C and SPI interfaces for communication, features a substantial 2.25Kbytes FIFO, and includes two programmable interrupts that enhance power efficiency through a wake-on-motion feature.
We provide a library for the 6DOF IMU 22 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for 6DOF IMU 22 Click driver.
c6dofimu22_cfg_setup
Config Object Initialization function. c6dofimu22_init
Initialization function. c6dofimu22_default_cfg
Click Default Configuration function. c6dofimu22_read_data
This function reads the accelerometer, gyroscope, and temperature measurement data. c6dofimu22_get_int1_pin
This function returns the INT1 pin logic state. c6dofimu22_clear_data_ready
This function clears the data ready interrupt by reading the INT_STATUS_DRDY register. This example demonstrates the use of 6DOF IMU 22 click board by reading and displaying
the accelerometer and gyroscope data (X, Y, and Z axis) as well as a temperature measurement in degrees Celsius.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Waits for a data ready indication and then reads the accelerometer, gyroscope, and temperature measurements.
The results are displayed on the USB UART every 80ms as per the accel and gyro output data rate which is set to 12.5 Hz.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need 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. UART terminal is available in all MikroElektronika compilers.