c6dofimu5
2.0.0.0
|
6DOF IMU 5 Click features 7-Axis ICM-20789 chip from TDK, an integrated 6-axis inertial device that combines a 3-axis gyroscope, 3-axis accelerometer, and an ultra-low noise MEMS capacitive pressure sensor.
We provide a library for the C6DofImu5 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 C6DofImu5 Click driver.
void c6dofimu5_cfg_setup ( c6dofimu5_cfg_t *cfg );
C6DOFIMU5_RETVAL c6dofimu5_init ( c6dofimu5_t *ctx, c6dofimu5_cfg_t *cfg );
void c6dofimu5_default_cfg ( c6dofimu5_t *ctx );
void c6dofimu5_power ( c6dofimu5_t *ctx, uint8_t on_off );
void c6dofimu5_read_gyroscope ( c6dofimu5_t *ctx, int16_t *gyro_x, int16_t *gyro_y, int16_t *gyro_z );
void c6dofimu5_read_accelerometer ( c6dofimu5_t *ctx, int16_t *accel_x, int16_t *accel_y, int16_t *accel_z );
This example demonstrates the use of 6DOF IMU 5 Click board.
The demo application is composed of two sections :
Initializes the driver, checks the communication and sets the device default configuration.
Measures acceleration, gyroscope, temperature and pressure data and displays the results on USB UART each second.
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.