STEVAL-MKI006V1 STMicroelectronics, STEVAL-MKI006V1 Datasheet - Page 31
![BOARD EVALUATION LIS302DL](/photos/9/18/91858/steval-mki006v1_sml.jpg)
STEVAL-MKI006V1
Manufacturer Part Number
STEVAL-MKI006V1
Description
BOARD EVALUATION LIS302DL
Manufacturer
STMicroelectronics
Series
MEMSr
Datasheets
1.STEVAL-MKI009V1.pdf
(42 pages)
2.STEVAL-MKI006V1.pdf
(42 pages)
3.STEVAL-MKI006V1.pdf
(4 pages)
Specifications of STEVAL-MKI006V1
Design Resources
STEVAL-MKI006V1 Gerber Files STEVAL-MKI006V1 Schematic STEVAL-MKI006V1 Bill of Materials
Sensor Type
Accelerometer, 3 Axis
Sensing Range
±2.3g, 9.2g
Interface
SPI, USB
Sensitivity
18 ~ 72 mg/Digit
Voltage - Supply
5V, USB
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
LIS302DL
Acceleration
2 g, 8 g
Sensing Axis
Triple Axis
Output Type
Digital
Interface Type
USB
Silicon Manufacturer
ST Micro
Silicon Core Number
LIS302DL
Kit Application Type
Sensing - Motion / Vibration / Shock
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
497-6229
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
STEVAL-MKI006V1
Manufacturer:
STMicroelectronics
Quantity:
135
UM0701
7.4
Example of MEMS Library usage: digital MEMS over I
This section shows an example of the main function to set-up and read data from a digital
MEMS over the I
SPI) would make this example work over an SPI interface. 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 LIS302DL digital
MEMS */
int main(void)
{
numbers! */
*/
/* CTRL_REG1 Register - Data rate 400Hz, power up, enable all axes
/* Wait 40ms after reset to let the MEMS turn on from power down*/
u8 i;
u8 i2c_buffer[6];
t_mems_data MEMS_Data={0, 0, 0, 0, 0, 0};
/* Setup STM32 system clock and other peripherals here */
/* … */
/* Setup all peripherals related to digital MEMS */
MEMS_I2C_Setup(LIS302DL_I2C_ADDR);
Delay(40);
/* Check who_am_i value */
MEMS_I2C_ReadReg(LIS302DL_WHO_AM_I, &i);
if (i != LIS302DL_WHO_AM_I_VALUE) return 1;
/* Initialize registers of LIS302DL */
/* IMPORTANT NOTE: These settings differ for different MEMS part
/* Following are settings for LIS302DL. */
MEMS_I2C_WriteReg (LIS302DL_CTRL_REG1, 0x47);
while (1)
{
2
C. Minor modifications (mainly replacing I
Doc ID 15703 Rev 1
STM32-MEMS development kit
2
C in names of functions with
2
C
31/42