accel8
2.0.0.0
|
Accel 8 Click is an advanced 6-axis motion tracking Click boardâ„¢, which utilizes the MPU6050, a very popular motion sensor IC, equipped with a 3-axis gyroscope and 3-axis accelerometer.
We provide a library for the Accel8 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 Accel8 Click driver.
void accel8_cfg_setup ( accel8_cfg_t *cfg );
ACCEL8_RETVAL accel8_init ( accel8_t *ctx, accel8_cfg_t *cfg );
void accel8_default_cfg ( accel8_t *ctx );
void accel8_get_accel_axis ( accel8_t *ctx, int16_t *x_axis, int16_t *y_axis, int16_t *z_axis );
void accel8_get_gyro_axis ( accel8_t *ctx, int16_t *x_axis, int16_t *y_axis, int16_t *z_axis );
uint8_t accel8_get_interrupt ( accel8_t *ctx );
This application measures accelermeter and gyroscopic data and temperature.
The demo application is composed of two sections :
Initialization driver init, reset chip and start configuration chip for measurement.
Reads Accel X/Y/Z axis, Gyro X/Y/Z axis and device Temperature. All data logs on the USBUART every 2 sec.
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.