airmotion
2.1.0.0
|
Air Motion Click is a compact add-on board that contains a 6-axis inertial measurement unit. This board features TDK InvenSense’s ICM-40627, a 6-axis MEMS MotionTracking™ device that combines a 3-axis user-selectable gyroscope accelerometer.
We provide a library for the Air Motion 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 Air Motion Click driver.
airmotion_cfg_setup
Config Object Initialization function. airmotion_init
Initialization function. airmotion_default_cfg
Click Default Configuration function. airmotion_set_reg_bank
Air Motion set register bank function. airmotion_sw_reset
Air Motion software reset function. airmotion_get_data_from_register
Air Motion read data function. This example demonstrates the use of Air Motion Click board.
The demo application is composed of two sections :
Initializes the driver after that resets the device and performs default configuration and reads the device id.
When the device is in Tap Detection Mode, Air Motion Click board will read and display the direction, axis, and number of taps that it detected. If Tap Detection mode is disabled, the device will read accel, gyro, and temperature data.
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.