STEVAL-MKI091V1 STMicroelectronics, STEVAL-MKI091V1 Datasheet - Page 30
![DEMO BOARD FOR LIS331DLM](/photos/9/19/91981/steval-mki091v1_sml.jpg)
STEVAL-MKI091V1
Manufacturer Part Number
STEVAL-MKI091V1
Description
DEMO BOARD FOR LIS331DLM
Manufacturer
STMicroelectronics
Series
MEMS, nanor
Datasheets
1.STEVAL-MKI009V1.pdf
(42 pages)
2.STEVAL-MKI091V1.pdf
(38 pages)
3.STEVAL-MKI091V1.pdf
(4 pages)
Specifications of STEVAL-MKI091V1
Sensor Type
Accelerometer, 3 Axis
Sensing Range
±2g, 4g, 8g
Interface
I²C, SPI
Sensitivity
64LSB/G, 32LSB/g, 16LSB/g
Embedded
No
Utilized Ic / Part
LIS331DLM
Acceleration
2 g, 4 g, 8 g
Sensing Axis
Triple Axis
Interface Type
I2C, SPI
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Voltage - Supply
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
For Use With/related Products
LIS331DLM
Other names
497-10491
STM32-MEMS development kit
7.3
30/42
Example of MEMS Library usage: analog MEMS
This section shows an example of a main function to set-up and read data from an analog
MEMS. Do not forget to set-up the defines in the stm32_mems_adapter.h file according to
the STM32 demonstration board used.
/* This main function sets up and reads data from any analog MEMS */
int main (void)
{
MEMS_ANL_Get_Axis(&ADC_DataValue[0],&ADC_DataValue[1],&ADC_DataValu
e[2]);
}
/* Wait 40ms after reset to let the MEMS turn on from power down*/
s16 ADC_DataValue[3];
/* Setup STM32 system clock and other peripherals here */
/* … */
/* Setup all peripherals related to analog MEMS */
MEMS_ANL_Setup();
Delay(40);
/* Restart ADC and DMA */
MEMS_ANL_ADC_Restart();
while (1)
{
}
return 0;
/* Use the data */
/* … */
/* Read all analog MEMS axis */
Doc ID 15703 Rev 1
UM0701