c6dofimu4
2.0.0.0
|
6DOF IMU 4 Click is an advanced 6-axis motion tracking Click boardâ„¢, which utilizes the ICM-20602, a high-performance integrated motion sensor, equipped with a 3-axis gyroscope and a 3-axis accelerometer.
We provide a library for the c6DofImu4 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for c6DofImu4 Click driver.
void c6dofimu4_cfg_setup ( c6dofimu4_cfg_t *cfg );
C6DOFIMU4_RETVAL c6dofimu4_init ( c6dofimu4_t *ctx, c6dofimu4_cfg_t *cfg );
void c6dofimu4_default_cfg ( c6dofimu4_t *ctx );
void c6dofimu4_set_sync_pin ( c6dofimu4_t *ctx, uint8_t state );
void c6dofimu4_get_data ( c6dofimu4_t *ctx, c6dofimu4_axis_t *accel_out, c6dofimu4_axis_t *gyro_out, int8_t *temp_out );
uint8_t c6dofimu4_set_fsr ( c6dofimu4_t *ctx, uint8_t gyro_resol, uint8_t accel_resol );
This application measures gyroscopic, accelerometer, and temperature data.
The demo application is composed of two sections :
Initializes I2C interface and performs a device reset and configurations.
Waits until data is ready and then reads the all data registers, accelerometer, gyroscope and temperature data, and shows results to the uart terminal every 500ms.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.