MIKROE-2102

MIKROE-2102 Datasheet


From MikroElektonika Documentation Revision as of 17:28, 26 May 2016 by Srdjan.misic talk | contribs

Part Datasheet
MIKROE-2102 MIKROE-2102 MIKROE-2102 (pdf)
PDF Datasheet Preview
Accel 3 click

Accel 3 click

Accel 3 click IC/Module H3LIS331DL

Interface SPI CS, SCK, MISO, MOSI , I2C SCL, SDA , INT Power 3.3V supply Website

Accel 3 click carries ST’s H3LIS331DL low-power high-g 3-axis digital accelerometer. The IC has ±100g/±200g/±400g dynamically selectable full scales and outputs 16-bit data at rates from Hz to 1 kHz. On the upper end, the chip can survive a 1000g high-shock. H3LIS331DL has extremely low power consumption down to 1µA in lowpower mode . Advanced sleep-to-wakeup functions are also available. Accel 3 click can communicate with the target MCU either through the mikroBUS SPI or UART interface, with additional functionality provided by an interrupt pin INT . The board is designed to use a power supply only.

Features and usage notes

Accel 3 click has three groups of jumpers zero ohm resistors onboard - The four jumpers on the left side of the board are for choosing between the SPI or I2C interface for the sensor output. By default, these are soldered into the I2C position. On the right side of the board, the upper jumper is for specifying which of the two interrupt pins on H3LIS331DL will be connected to the mikroBUS pin. - The final jumper is for configuring the I2C address

The I2C interface is compliant with both normal and fast modes 400 KHz , both common I2C standards.

H3LIS331DL incorporates a sleep-to-wakeup function. In sleep mode the sensor is in a low-power operating mode it continues to detect acceleration and generate interrupt requests, but with lower data rate refreshments. Once an interrupt threshold is sensed, the device automatically wakes up and increases the output data rate and bandwidth.

Schematic also available in PDF

Programming

This snippet reads three axes' from the accelerometer every 30 milliseconds and displays them to UART. The values displayed have been calibrated and are measured in gs.
1 #include <stdint.h>
2 #include "accel3.h"
4 sbit ACCEL_3_CS at GPIOD_ODR.B13;
5 sbit ACCEL_3_INT at GPIOD_IDR.B10;
7 void main
9 uint8_t address = 0x18;
10 xyz_t* my_coords;
12 //I2C
13 I2C1_Init_Advanced &_GPIO_MODULE_I2C1_PB67 ;
14 Delay_ms 200 ;
16 //Accel 3 Initialization
17 accel3_init address, accel_mode, d_rate, mode ;
19 while 1
my_coords = accel3_get_xyz ;
sprintf text, " x %d y %d z %d ", my_coords->x_pos, my_coords->y_pos, my_coords->z_pos ;
24 25 26 27 28 29

UART1_Write_Text text UART1_Write_Text Delay_ms 30 ;

Code examples that demonstrate the usage of Accel 3 click with MikroElektronika hardware, written for mikroC for ARM, AVR, dsPIC, FT90x, PIC and PIC32 are available on Libstock

Resources
- Accel 3 click code examples on Libstock
- Accel 3 click related tutorial on learn.mikroe.com
- H3LIS331DL vendor’s data sheet

Retrieved from

This page was last modified on 26 May 2016, at Content is available under Creative Commons Attribution unless otherwise noted.
6/15/2016
More datasheets: IDT71V2559S75PF | IDT71V2559S80BG | IDT71V2559S80PF | IDT71V2559S80PF8 | IDT71V2559S85BG | IDT71V2559S85BG8 | IDT71V2559S85PF | IDT71V2559S85PF8 | IDT71V2559S75PF8 | MTFDDAA064MAM-1J1


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived MIKROE-2102 Datasheet file may be downloaded here without warranties.

Datasheet ID: MIKROE-2102 649233