How does it work?
Accel 16 Click as its foundation uses the ADXL363, a micropower complete sensor suite consisting of an accelerometer, an ADC for synchronous conversion of input from a third sensor, and a temperature sensor from Analog Devices. It measures both dynamic accelerations, resulting from motion or shock, and static acceleration, such as tilt, and allows selectable full-scale acceleration measurements in ranges of ±2g, ±4g, and ±8g (with a resolution of 1mg/LSB on the ±2g range). Acceleration is reported digitally, and the device communicates via the SPI protocol providing 12-bit output resolution for all three sensors.
The ADXL363 has two operating modes: Measurement mode for continuous, wide-bandwidth sensing; and Wake-up mode for limited bandwidth activity detection. Measurement mode represents its normal operating mode, and in this mode, acceleration data is read continuously, while the Wake-Up mode is ideal for simple detection of the presence or absence of motion at low power consumption. Wake-up mode helps implement a motion-activated ON/OFF switch, allowing the rest of the system to Power-Down until the activity is detected. In addition, measurement is suspended altogether by placing the device in Standby mode, reducing current consumption. During Standby, pending interrupts and data are preserved, and no new interrupts are generated.
In addition to a built-in accelerometer and temperature sensor, which the user can use to monitor internal system temperature or improve the device’s temperature stability via calibration, the ADXL363 incorporates a 12-bit analog-to-digital converter (ADC) for digitization of external analog input. The ADC converts analog inputs ranging from 10% to 90% of the supply voltage and is best suited for use with a sensor input due to its synchronization with the accelerometer and temperature sensor.
The ADXL363 communicates with MCU through a standard SPI interface that enables clock speeds up to 8MHz, supporting the most common SPI mode – SPI Mode 0. This Click board™ also possesses two interrupt pins, INT1 and INT2, routed to the INT and PWM pins on the mikroBUS™, which above all have a dual function. First, they can be used as classic interrupt pins to signal MCU that an event has been sensed or can be used, e.g., INT1 as an input for external clocking and INT2 as input for synchronized sampling. One or both of these alternate functions can be used concurrently; however, if an interrupt pin is used for its alternate function, it cannot simultaneously be used for its primary function, to signal interrupts.
This Click board™ can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before use with 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 various applications such as vibration and condition monitoring, test and measurements, predictive maintenance, and more
On-board modules
ADXL363 – micropower complete sensor suite consisting of an accelerometer, an ADC for synchronous conversion of input from a third sensor, and a temperature sensor from Analog Devices
Key Features
Accelerometer, temperature sensor, and provision for third analog sensor input, low power consumption, all sensors sampled synchronously, 12-bit resolution for all sensors, built-in features for motion-based system level power savings, and more
Interface
SPI
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 16 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 16 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Acceleration Range | ±2 | – | ±8 | g |
Sensitivity | 1000 | – | 250 | LSB/g |
Resolution | – | 12 | – | bits |
Operating Temperature Range | -40 | +25 | +85 | °C |
Software Support
We provide a library for the Accel 16 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.
Library Description
This library contains API for Accel 16 Click driver.
Key functions
-
accel16_get_axes
Get axes data. -
accel16_filter_configuration
Filter configuration. -
accel16_get_temperature
Get temperature data.
Example Description
This showcases ability of the click board to read x, y, and z axes data in different resolution, read IC temperature and also have additional functionality to read ADC data. Device also has ability to store data in internal fifo buffer.
void application_task ( void )
{
if ( ACCEL16_APPLICATION_FIFO == accel16.application_type )
{
accel16_read_fifo_data( );
}
else if ( ACCEL16_APPLICATION_REG == accel16.application_type )
{
accel16_read_reg_data( );
}
log_printf( &logger, "********************************************************rn" );
Delay_ms( 300 );
}
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:
- MikroSDK.Board
- MikroSDK.Log
- Click.Accel16
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.