How does it work?
Accel 24 Click is based on the MXC6655XA, a highly reliable digital triaxial acceleration from MEMSIC. The MXC6655XA is highly configurable with a programmable acceleration range of ±2g, ±4g, or ±8g based on MEMSIC’s proprietary thermal technology built with a 0.18μm standard CMOS process. It contains no moving sensor parts, eliminating field reliability and repeatability issues; there is no measurable resonance (immunity to vibration), no stiction, and no detectable hysteresis.
The MXC6655XA also eliminates the “click” sounds typically heard in ball-based orientation sensors. The MEMS structure is greater than 200,000g. This sensor provides X/Y/Z axis acceleration signals with a low 0g offset and temperature signals with high accuracy. In addition, it also detects six orientation positions, X/Y shake, and shakes directions.
Accel 24 Click communicates with an MCU using the standard I2C 2-Wire interface to read data and configure settings capable of operating in a standard or fast mode of operation. The acceleration signal is provided in 12-bit output resolution. In addition to communication pins, this board also possesses an additional interrupt pin, routed to the INT pin on the mikroBUS™ socket, for orientation and X/Y shake detections. The MXC6655XA allows users to be placed in a Power-Down mode enabled through the I2C interface.
This Click board™ can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before using MCUs with different logic levels. However, the Click board™ comes equipped with a library containing functions and an example code that can be used, as a reference, for further development.
Specifications
Type
Motion
Applications
Can be used for a wide range of information appliances, consumer electronics, household safety applications, and more
On-board modules
MXC6655XA – digital triaxial acceleration from MEMSIC
Key Features
Low power consumption, high performance and resolution, MEMS sensor with on-chip signal processing, no moving parts, 12-bit signal output for X, Y and Z axes, 6-position orientation detection, shake detection with interrupt, I2C interface, and more
Interface
I2C
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V
Pinout diagram
This table shows how the pinout on Accel 24 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
Accel 24 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Acceleration Range | ±2 | – | ±8 | g |
Acceleration Resolution | – | 12 | – | bits |
Sensitivity (±2 ~ ±8) | 256 | – | 1024 | LSB/g |
Operating Temperature Range | -40 | +25 | +85 | °C |
Software Support
We provide a library for the Accel 24 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The package can be downloaded/installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for Accel 24 Click driver.
Key functions
-
accel24_get_int_pin
This function returns the INT pin logic state. -
accel24_read_data
This function checks the data ready bit, clears it, and then reads the accel (X, Y, Z) and temperature measurements. -
accel24_set_full_scale_range
This function sets the full scale range resolution.
Example Description
This example demonstrates the use of Accel 24 Click board™ by reading and displaying accel data (X, Y, and Z axis) as well as temperature measurements on the USB UART.
void application_task ( void )
{
accel24_data_t meas_data;
// Wait for data ready indication
while ( accel24_get_int_pin ( &accel24 ) );
if ( ACCEL24_OK == accel24_read_data ( &accel24, &meas_data ) )
{
log_printf( &logger, " X: %.3f grn", meas_data.x );
log_printf( &logger, " Y: %.3f grn", meas_data.y );
log_printf( &logger, " Z: %.3f grn", meas_data.z );
log_printf( &logger, " Temperature: %.2f degCrn", meas_data.temperature );
}
Delay_ms ( 100 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Accel24
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.
mikroSDK
This Click board™ is supported with mikroSDK – MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.