smartdof5
2.1.0.0
|
Smart DOF 5 Click is a compact add-on board designed for precise motion and orientation detection in automotive applications. This board features the ASM330LHHXG1, a high-accuracy 6-axis inertial measurement unit (IMU) from STMicroelectronics. It features a 3-axis accelerometer and a 3-axis gyroscope and supports dual operating modes (high-performance and low-power) with flexible communication options through SPI or I2C interfaces. Additionally, it includes the Click Snap format, enabling the autonomous use of the Snap section and integration of external sensors via the I2C Master interface.
We provide a library for the Smart DOF 5 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 Smart DOF 5 Click driver.
smartdof5_cfg_setup
Config Object Initialization function. smartdof5_init
Initialization function. smartdof5_default_cfg
Click Default Configuration function. smartdof5_get_int_pin
This function returns the interrupt 1 pin logic state. smartdof5_get_data
This function reads the accelerometer, gyroscope, and temperature measurement data. smartdof5_set_accel_fsr
This function sets the accel measurement full scale range. This example demonstrates the use of Smart DOF 5 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 at 12.5 Hz output data rate.
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.