accel11
2.0.0.0
|
Accel 11 Click features an ultra-low power triaxial accelerometer sensor with embedded intelligence, labeled as the BMA456.
We provide a library for the Accel11 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Accel11 Click driver.
void accel11_cfg_setup ( accel11_cfg_t *cfg );
ACCEL11_RETVAL accel11_init ( accel11_t *ctx, accel11_cfg_t *cfg );
void accel11_default_cfg ( accel11_t *ctx );
int16_t accel11_get_axis_data ( accel11_t *ctx, uint8_t axis );
uint8_t accel11_test_comunication ( accel11_t *ctx );
void accel11_power_on_procedure ( accel11_t *ctx );
This demo application reads X / Y / Z axis acceleration data.
The demo application is composed of two sections :
Initialization device.
Reads X / Y / Z axis acceleration data and it logs to USBUART every 1500ms.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.