Mikroelektronika d.o.o.
Accel 28 Click Board
Accel 28 Click Board
Couldn't load pickup availability
Key Features:
- Low power consumption, high performance and resolution, high reliability, FIFO storage, integrated interrupt features, selectable serial interface, embedded temperature sensor, embedded self-test, and more
- Based on the LIS2HH12TR - ultra-low-power high-performance three-axis accelerometer from STMicroelectronics
- Can be used for various applications such as motion-activated functions and user interfaces, tap-double-tap recognition, free-fall detection, tracking, and many more
- mikroBUS: I2C and SPI Interfaces
Accel 28 Click Board™ is a compact add-on board that contains an acceleration sensor. This board features the LIS2HH12TR, an ultra-low-power high-performance three-axis accelerometer from STMicroelectronics. It allows selectable full-scale acceleration measurements in ranges of ±2g, ±4g, and ±8g in three axes with a configurable host interface that supports both SPI and I2C serial communication. It has an integrated FIFO buffer that allows users to store data to limit the intervention by the host microcontroller. This Click board™ makes the perfect solution for various applications such as motion-activated functions and user interfaces, tap-double-tap recognition, free-fall detection, tracking, and many more.
The Accel 28 Click Board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
![Mikroelektronika d.o.o. MIKROE-5737 Accel 28 Click Board™ - The Debug Store UK](http://thedebugstore.com/cdn/shop/files/mikroelektronika-d-o-o-mikroe-5737-40147531071711.jpg?v=1687769412&width=1445)
![Mikroelektronika d.o.o. MIKROE-5737 Accel 28 Click Board™ - The Debug Store UK](http://thedebugstore.com/cdn/shop/files/mikroelektronika-d-o-o-mikroe-5737-40147531006175.jpg?v=1687769411&width=1445)
![Mikroelektronika d.o.o. MIKROE-5737 Accel 28 Click Board™ - The Debug Store UK](http://thedebugstore.com/cdn/shop/files/mikroelektronika-d-o-o-mikroe-5737-40147530973407.jpg?v=1687769404&width=1445)
![Mikroelektronika d.o.o. MIKROE-5737 Accel 28 Click Board™ - The Debug Store UK](http://thedebugstore.com/cdn/shop/files/mikroelektronika-d-o-o-mikroe-5737-40147531170015.jpg?v=1687769413&width=1445)
![Mikroelektronika d.o.o. MIKROE-5737 Accel 28 Click Board™ - The Debug Store UK](http://thedebugstore.com/cdn/shop/files/mikroelektronika-d-o-o-mikroe-5737-40147531104479.jpg?v=1687769403&width=1445)
![Mikroelektronika d.o.o. MIKROE-5737 Accel 28 Click Board™ - The Debug Store UK](http://thedebugstore.com/cdn/shop/files/mikroelektronika-d-o-o-mikroe-5737-40147531038943.jpg?v=1687769584&width=1445)
![Mikroelektronika d.o.o. MIKROE-5737 Accel 28 Click Board™ - The Debug Store UK](http://thedebugstore.com/cdn/shop/files/mikroelektronika-d-o-o-mikroe-5737-40147531137247.jpg?v=1687769581&width=1445)
How Does The Accel 28 Click Board™ Work?
The Accel 28 Click Board™ is based on the LIS2HH12TR, an ultra-low-power high-performance three-axis accelerometer from STMicroelectronics. The sensing element is made of a suspended silicone structure anchored in a few points and free to move toward the sensed acceleration. If there is an acceleration, the proof mass is displaced from its normal position and causes an imbalance in the capacitive half-bridge, which is measured. The whole measurements are on the values of internal capacitors. The values are outputted as 16-bit data. The sensor features extreme robustness with 10000g of high shock survivability. It also has an embedded temperature sensor for temperature compensation and a self-test. The self-test capability allows the user to check the functioning of the sensor in the final application. The sensor is already factory calibrated.
The FIFO buffer of the LIS2HH12TR sensor works in several modes. Bypass mode bypasses the FIFO and is used to reset the FIFO when in FIFO mode. In FIFO mode, the sensor stores data from all three channels in the FIFO buffer. Stream mode provides continuous FIFO updates; the older data is discarded as new data arrives. There are additional modes Stream-to-FIFO, Bypass-to-Stream, Bypass-to-FIFO, Retrieving data from FIFO, and Burst. The Burst mode allows multiple reads to be performed.
The Accel 28 Click Board™ allows using both I2C and SPI interfaces with a maximum frequency of 400KHz for I2C and 10MHz for SPI communication. The selection can be made by positioning SMD jumpers labelled as COMM SEL in an appropriate position. Note that all the jumpers' positions must be on the same side, or the Click board™ may become unresponsive. While the I2C interface is selected, the LIS2DTW12 allows choosing the least significant bit (LSB) of its I2C slave address using the SMD jumper labelled ADDR SEL. The Accel 28 Click Board™ also possesses two interrupt pins, both routed to the INT pin on the mikroBUS™ socket over the INT SEL jumper (default INT1). These interrupt pins signal MCU that an event has been sensed entirely programmed by the user through the I2C/SPI 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 | It can be used for various applications such as motion-activated functions and user interfaces, tap-double-tap recognition, free-fall detection, tracking, and many more |
On-board modules | LIS2HH12TR - ultra-low-power high-performance three-axis accelerometer from STMicroelectronics |
Key Features | Low power consumption, high performance and resolution, high reliability, FIFO storage, integrated interrupt features, selectable serial interface, embedded temperature sensor, embedded self-test, and more |
Interface | I2C,SPI |
Compatibility | mikroBUS |
Click board size | S (28.6 x 25.4 mm) |
Input Voltage | 3.3V |
PINOUT DIAGRAM
This table shows how the pinout of the Accel 28 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | ![]() |
Pin | Notes | |||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | NC | ||
NC | 2 | RST | INT | 15 | INT | Interrupt | |
SPI Chip Select | CS | 3 | CS | RX | 14 | NC | |
SPI Clock | SCK | 4 | SCK | TX | 13 | NC | |
SPI Data OUT | SDO | 5 | MISO | SCL | 12 | SCL | I2C Clock |
SPI Data IN | SDI | 6 | MOSI | SDA | 11 | SDA | I2C Data |
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | NC | |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1-JP3 | COMM SEL | Right | Communication Interface Selection SPI/I2C: Left position SPI, Right position I2C |
JP4 | INT SEL | Left | Interrupt Channel Selection 1/2: Left position 1, Right position 2 |
JP5 | ADDR SEL | Left | I2C Address Selection 0/1: Left position 0, Right position 1 |
ACCEL 28 CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | - | 3.3 | - | V |
Acceleration Range | ±2 | - | ±8 | g |
Sensitivity | 0.061 | - | 0.244 | mg/digit |
Resolution | - | 16 | - | bit |
Software Support
Software Support
We provide a library for the Accel 28 Click Board™ as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
The package can be downloaded/installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on MikroE Github account.
Library Description
This library contains API for Athe Accel 28 Click Board™ driver.
Key functions
-
accel28_get_data
Accel 28 data reading function. -
accel28_write_reg
Accel 28 register data writing function. -
accel28_sw_reset
Accel 28 SW reset function.
Example Description
This example demonstrates using the Accel 28 Click Board™ by reading and displaying the accelerometer data (X, Y, and Z axis).
void application_task ( void )
{
err_t error_flag = ACCEL28_OK;
if ( ACCEL28_PIN_STATE_HIGH == accel28_get_int_state( &accel28 ) )
{
uint8_t tmp_data;
error_flag = accel28_read_reg( &accel28, ACCEL28_REG_STATUS, &tmp_data );
if ( ( tmp_data & ACCEL28_STATUS_ZYX_DATA_AVL ) && ( ACCEL28_OK == error_flag ) )
{
error_flag = accel28_get_data( &accel28, &accel_data );
if ( ACCEL28_OK == error_flag )
{
log_printf( &logger, " X-axis %.2f mgrn", accel_data.x_data );
log_printf( &logger, " Y-axis %.2f mgrn", accel_data.y_data );
log_printf( &logger, " Z-axis %.2f mgrn", accel_data.z_data );
log_printf( &logger, " = = = = = = = = = = = = = =rn" );
}
}
}
}
The full application code, and ready to use projects can be installed directly from NECTO Studio The 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.Accel28
Additional Notes and Information
Depending on the development board you are using, you may need USB UART Click Board™, 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 MIKROE compilers.
MIKROSDK
The Accel 28 Click Board™ is supported with mikroSDK - MIKROE 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.
Accel 28 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.
![banner Image](http://thedebugstore.com/cdn/shopifycloud/shopify/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_medium.gif)