accel22 2.0.0.0
|
Accel 22 Click is a compact add-on board that contains an acceleration sensor. This board features the ADXL367, an ultra-low-power, high-performance three-axis accelerometer from Analog Devices. The ADXL367 allows selectable full-scale acceleration measurements in ranges of ±2g, ±4g, and ±8g in three axes, with a resolution of 0.25 mg/LSB on the ±2g range, alongside a configurable host interface that supports both SPI and I2C serial communication. This device combines a 3-axis MEMS accelerometer, a temperature sensor, and a 14-bit analog-to-digital converter (ADC) to synchronize an external analog signal conversion.
We provide a library for the Accel 22 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 22 Click driver.
accel22_cfg_setup
Config Object Initialization function. accel22_init
Initialization function. accel22_default_cfg
Click Default Configuration function. accel22_get_axes
This function reads accel X, Y, and Z axis data in mg. accel22_get_temperature
This function reads the temperature in Celsius. accel22_get_adc
This function reads the ADC voltage. This example demonstrates the use of Accel 22 click board by reading and displaying Accel data (X, Y, and Z axis) as well as temperature and ADC 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 and ADC 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.