accel29 2.1.0.0
|
Accel 29 Click is a compact add-on board that contains an acceleration sensor. This board features the ADXL314, a three-axis ±200g accelerometer from Analog Devices. The ADXL314 offers 16-bit digital output data with a configurable host interface that supports SPI and I2C serial communication. An integrated memory management system with a 32-level FIFO buffer can store data to minimize host processor activity and lower overall system power consumption. Low power modes enable intelligent motion-based power management with threshold sensing and active acceleration measurement at low power dissipation.
We provide a library for the Accel 29 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 29 Click driver.
accel29_cfg_setup
Config Object Initialization function. accel29_init
Initialization function. accel29_default_cfg
Click Default Configuration function. accel29_calibrate_offset
This function calibrates accel offset to the specified values by setting the OFSX/Y/Z registers. accel29_get_avg_axes
This function reads a specified number of samples for accel X, Y, and Z axis data in g and averages them. This example demonstrates the use of Accel 29 click board by reading and displaying the accelerometer data (X, Y, and Z axis) averaged from 100 samples.
The demo application is composed of two sections :
Initializes the driver, performs the click default configuration, and calibrates the accel data offsets.
Reads and displays on the USB UART the accelerometer data (X, Y, and Z axis) averaged from 100 samples.
This click board should be used for high g applications of up to +-200g. It is not recommended for low g applications because of its high scale factor which is about 48.83 mg per LSB.
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.