accel25
2.1.0.0
|
Accel 25 Click is a compact add-on board that contains an acceleration sensor. This board features the MXC4005XC, a 12-bit three-axis thermal accelerometer from MEMSIC. It allows selectable full-scale acceleration measurements of ±2g, ±4g, or ±8g in three axes with a compatible I2C serial interface with 400KHz fast mode operation.
We provide a library for the Accel 25 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 Accel 25 Click driver.
accel25_cfg_setup
Config Object Initialization function. accel25_init
Initialization function. accel25_default_cfg
Click Default Configuration function. accel25_soft_reset
Accel 25 soft reset function. accel25_set_full_scale_range
Accel 25 set full scale range function. accel25_read_data
Accel 25 read data function. This example demonstrates the use of Accel 25 Click board by reading and displaying
accel data (X, Y, and Z axis) as well as temperature measurements on the USB UART.
The demo application is composed of two sections :
Initializes the driver and performs the Click default configuration.
Reads and displays the accel data (X, Y, and Z axis) as well as temperature measurements
on the USB UART every 100ms approximately.
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.