c6dofimu2
2.0.0.0
|
6DOF IMU 2 Click is capable of precise acceleration and angular rate (gyroscopic) measurement.
We provide a library for the 6DofImu2 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 6DofImu2 Click driver.
void c6dofimu2_cfg_setup ( c6dofimu2_cfg_t *cfg );
C6DOFIMU2_RETVAL c6dofimu2_init ( c6dofimu2_t *ctx, c6dofimu2_cfg_t *cfg );
void c6dofimu2_default_cfg ( c6dofimu2_t *ctx );
void c6dofimu2_default_cfg ( c6dofimu2_t *ctx, c6dofimu2_cfg_t *cfg );
void c6dofimu2_read_accel ( c6dofimu2_t *ctx, c6dofimu2_accel_data_t *accel_data );
void c6dofimu2_read_gyro ( c6dofimu2_t *ctx, c6dofimu2_gyro_data_t *gyro_data );
Example Code presents acceleration and angular rate (gyroscopic) measurement.
The demo application is composed of two sections :
Application Init performs Logger and Click initialization.
This is an example which demonstrates the usage of 6DOF IMU 2 Click board. It measures accel and gyro coordinates (X,Y,Z) and then the results are being sent to the UART Terminal where you can track their changes for every 1 sec.
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.